Skip to content

mypy fails to recognise assignment as a form of module aliasing #1778

Closed

Description

@Diggsey

Example:

# a.pyi
class Foo:
    ...
# b.py
import a

a2 = a

x = a2.Foo  # error: module has no attribute Foo

Activity

  1. added this to the milestone on Jul 7, 2016
  2. removed this from the milestone on Mar 29, 2017
  3. added 2 commits that reference this issue on May 24, 2017
    86db3f0
    ad646b9
  4. added a commit that references this issue on Jun 3, 2017
    7b7c7ad
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