You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.py:10: note: Revealed type is 'builtins.object'
main.py:11: error: No overload variant of "list" matches argument type "object"
main.py:11: note: Possible overload variant:
main.py:11: note: def [_T] __init__(self, iterable: Iterable[_T]) -> List[_T]
main.py:11: note: <1 more non-matching overload not shown>
when running mypy test.py on 0.780.
Running the same through mypy 0.770 works fine and doesn't produce a warning.
(Also, running the example works fine of course)
The text was updated successfully, but these errors were encountered:
Hm, in 0.770 the revealed type is tuple[Any], which is arguably better indeed, and seems to match what happens at runtime. zip's type is a complex overload -- maybe something changed there since 0.770?
This code:
produces the warning:
when running
mypy test.py
on 0.780.Running the same through mypy 0.770 works fine and doesn't produce a warning.
(Also, running the example works fine of course)
The text was updated successfully, but these errors were encountered: