Skip to content

Add type fullname to AnalyzeTypeContext #6503

@mkurnikov

Description

@mkurnikov

In the hooks returned from

    def get_type_analyze_hook(self, fullname: str
                              ) -> Optional[Callable[[AnalyzeTypeContext], Type]]: pass

user needs to create Instance objects in the hook, so fullname required there, but UnboundType does not have it.

Surely, user can make a callable factory and initialize it wil a fullname, but it would be so much easier just to get it from context object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions