Missing type definition for dict(List[List[str]]) #4762
Labels
reason: inexpressable
Closed, because this can't be expressed within the current type system
stubs: false positive
Type checkers report false errors
The following code example, specifically the instantiation of a dictionary containing list of lists, gets marked as illegal by Pylance, which seems to be due a missing type definition in the typshed repo:
Error message from Pylance:
The code above runs without any complaints from Python itself. Also, the Python docs state that the positional argument must be an iterable object, and lists are iterable objects:
Reference to Pylance issue: microsoft/pylance-release#594
The text was updated successfully, but these errors were encountered: