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
error: "Generator" expects 3 type arguments, but 1 given
I can silence mypy by doing:
Generator[int, None, None]
But given that the majority of generators just yield, rarely return or send, I think it would make sense to allow the last 2 parameters to have a default value of None.
YodaEmbedding, zeth, keith-hall-vmp, haakonvt, david-shiko and 1 more