Closed
Description
I get Argument 1 to "f" has incompatible type Dict[frozenset[str], int]; expected Dict[AbstractSet[str], int]
with the following code:
from typing import AbstractSet, Dict
def f(v: Dict[AbstractSet[str], int]):
pass
f({frozenset(['a']): 1}) # this works
x = {frozenset(['a']): 1}
f(x) # this fails
Metadata
Metadata
Assignees
Labels
No labels