Skip to content

error listed twice with wrong filename(capitalization) in output #11690

Closed
@KotlinIsland

Description

@KotlinIsland

given:

folder/
├─ src/
│  ├─ __init__.py
│  ├─ thing.py
├─ test.py

src/__init__.py:

from src.thing import Thing as Thing

src/thing.py:

class Thing(asdf): ...

test.py:

from src import Thing
> mypy -V
mypy 0.920+dev.1393e3fec49a9505fd3a31f3406ddd4e2e1c54b8
> mypy --strict test.py
src/thing.py:1: error: Name "asdf" is not defined
src/Thing.py:1: error: Name "asdf" is not defined

Edit:
This is observed with WSL on the windows file system and not WSL on the Linux fs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions