Nested empty container gets inferred to object
#5045
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-join-v-union
Using join vs. using unions
Using
mypy 0.600
, runningmypy
onshows
If this doesn't have the empty list, then
mypy
infers'builtins.list[builtins.list*[builtins.int]]'
forIdeally,
mypy
would be able to inferList[List[int]]
even when there's an empty list.The text was updated successfully, but these errors were encountered: