KotlinIsland / KotlinIsland/basedmypy

Additional errors appearing when running on one file

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
bug ide needs egg :egg: p-3 topic-any
Dominant language
Python
Stars
202
Forks
6
PR merge metrics
No merged PRs in 30d

Description

A very specific circular import can cause the reported error to be reported differently, and the error deduplicator is affected:

1. run on specific file `mypy test.py`:
- expression contains Any "Untyped"
- expression contains Any "Any (unannotated)"
2. run on whole project `mypy .`:
- expression contains Any "Untyped"
- expression contains Any "Untyped" (removed by deduplicator)

this is especially an issue in IDEs that run mypy against a single file

TODO: insert egg

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with `mypy test.py` and `mypy .`, focusing on the circular-import case and the error deduplicator mentioned in the issue. Trace the diagnostics produced by each entry point; done means single-file and whole-project runs report the intended errors consistently without an incorrect duplicate or changed wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.