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
mypy is unable to correctly disambiguate a union when there is a dependent function type.
The call meow(s)(s) is always valid as s is either int or str and should not be able to take on both in the line.
However, the dependency of the return type of meow(s) on s is not remembered and mypy becomes upset.
Bug Report
mypy is unable to correctly disambiguate a union when there is a dependent function type.
The call
meow(s)(s)
is always valid ass
is eitherint
orstr
and should not be able to take on both in the line.However, the dependency of the return type of
meow(s)
ons
is not remembered and mypy becomes upset.To Reproduce
https://mypy-play.net/?mypy=latest&python=3.11&gist=50bc3d85db8bc5120d881d37b891fd2a
Expected Behavior
Expected Behavior
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: