Skip to content

Mypy doesn't recognize __loader__ global in Python 3.6 #4182

Description

@rowillia
$ mypy --python-version 3.6 -c 'print(__loader__.name)'
<string>:1: error: Name '__loader__' is not defined

This might be a typeshed issue, but I can't figure out where globals like __name__ defined in typeshed. Feel free to redirect me!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions