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
{{ message }}
Repository navigation
Using DictProxy.values() yields false positives #8814
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?
Activity
Fix multiprocessing.DictProxy.values()
AlexWaygood commentedon Sep 30, 2022
Definitely typeshed :)
I've filed #8815
Fix multiprocessing.DictProxy.values() (#8815)