Skip to content

errors in other files are reported when running mypy on a file with lowercase drive letter #18590

Open
@DetachHead

Description

@DetachHead
# foo.py
from sandpit.bar import asdf
# bar.py
asdf: int = ""
> mypy c:\Users\user\project\sandpit\foo.py
c:\Users\user\project\sandpit\bar.py:1: error: Incompatible types in assignment (expression has type "str", variable has type "int")  [assignment]
Found 1 error in 1 file (checked 1 source file)
> mypy C:\Users\user\project\sandpit\foo.py
Success: no issues found in 1 source file

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