Type tracking conditionally extended empty tuple #1359
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Reproducer & Actual behaviour
I reduced my problem to following code that can reproduce it:
This give the following error on the second for line:
Problem seems related to the fact that on the empty tuple() assignment the type of t is
tuple[_T_co@tuple]
and not the explicitly specified type. When I move the first t += statement outside the loop all is honky dory.Expected behaviour
No typing error given.
The text was updated successfully, but these errors were encountered: