Skip to content

How to type annotate __main__? #4360

@PeterJCLaw

Description

@PeterJCLaw

At run-time you can import __main__ and it's occasionally useful to do so (for example: jedi does this in utils for setting up REPLs).

While __main__ likely doesn't have a useful members we can put in the typeshed, it could be useful to have it present and importable.

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