Skip to content

Simplest list assignment fails #2023

@elazarg

Description

@elazarg

Adding the following test crashes:

[case testListSimplest]
a = [1]

Results

  ...
  File ".../mypy/mypy/checker.py", line 2238, in lookup_qualified
    return n.names[parts[-1]]
KeyError: 'list'

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