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
Argument 1 to "transform_value" has incompatible type "_T_co"; expected "str" [arg-type]
when calling a function taking type argument and returning a list of tuple with generic type, and using the de-structuring operator to access one of the tuple members:
looks like this is fixed in master, I'd claim #17235 fixed it, but could be wrong...
... in any case, anyone care to confirm that this test case passes on master? (The fix would be in mypy >1.10.)
Bug Report
mypy prints
when calling a function taking type argument and returning a
list
oftuple
with generic type, and using the de-structuring operator to access one of thetuple
members:To Reproduce
See Gist:
Actual Behavior
Revealed type for
first
inrun_query_1
is_T_co
rather thanstr
:run_query_2
passes with no error (expected behavior).Your Environment
Python 3.11.5
mypy 1.5.1 (compiled: yes)
Mypy extension for VS Code
The text was updated successfully, but these errors were encountered: