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
from multiprocessing.managers import DictProxy
from multiprocessing import Manager
d: DictProxy[str, float] = Manager().dict()
d["hallo"] = 4.2
d["test"] = 2.8
print(sum(d.values()))
It should give no typing errors, as the values of DictProxy should be an Iterable[float]. Instead however, i receive error: Argument 1 to "sum" has incompatible type "List[Tuple[str, float]]"; expected "Iterable[bool]" for line 9 (the print-line)
Is this an issue with typeshed or more with the python multiprocessing-library?
The text was updated successfully, but these errors were encountered:
If I run mypy with the following code:
It should give no typing errors, as the values of DictProxy should be an Iterable[float]. Instead however, i receive
error: Argument 1 to "sum" has incompatible type "List[Tuple[str, float]]"; expected "Iterable[bool]"
for line 9 (the print-line)Is this an issue with typeshed or more with the python multiprocessing-library?
The text was updated successfully, but these errors were encountered: