Skip to content

Module-level __annotations__ variable is flagged as undefined #10330

Description

@erictraut

To repro, run mypy on the following:

print(__annotations__)
test.py:1: error: Name '__annotations__' is not defined
Found 1 error in 1 file (checked 1 source file)

A pyright user recently noted the same issue in pyright, which I have fixed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions