KEMBAR78
Mypy doesn't recognize `__loader__` global in Python 3.6 · Issue #4182 · python/mypy · GitHub
Skip to content

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

@rowillia

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions