We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report
sometimes dmypy puts a : for some annotations instead of a . and is inconsistent with some types from typing
:
.
typing
To Reproduce
class C: pass def f1(): return [C()] def f2(): return [1] def f3(): return (C(),) def f4(): return (1,)
[mypy] check_untyped_defs = true
Expected Behavior
$ dmypy run . ... $ dmypy suggest t.f1 () -> List[t.C] $ dmypy suggest t.f2 () -> List[int] $ dmypy suggest t.f3 () -> Tuple[t.C] $ dmypy suggest t.f4 () -> Tuple[int]
Actual Behavior
$ dmypy run . ... $ dmypy suggest t.f1 () -> typing:List[t.C] $ dmypy suggest t.f2 () -> typing.List[int] $ dmypy suggest t.f3 () -> Tuple[t.C] $ dmypy suggest t.f4 () -> Tuple[int]
two separate oddities here:
typing:List
typing.List
mypy/mypy/suggestions.py
Line 853 in 454989f
mod.Class.NestedClass
mod.submod.Class
List
Tuple
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
sometimes dmypy puts a
:
for some annotations instead of a.
and is inconsistent with some types fromtyping
To Reproduce
Expected Behavior
Actual Behavior
two separate oddities here:
typing:List
(with a colon) instead oftyping.List
(the colon appears to come from here --mypy/mypy/suggestions.py
Line 853 in 454989f
mod.Class.NestedClass
vsmod.submod.Class
? though it seems to make no sense forList
heretyping.List
andTuple
should either both be fully qualified or neitherYour Environment
mypy.ini
(and other config files): see aboveThe text was updated successfully, but these errors were encountered: