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
Have you been able to test the type annotation on __bool__, and does it work? We could add that under a Python version check so that folks using newer versions will get the benefit (with an issue to ourselves to remove the check once we drop 3.7 support later this year)
Is your feature request related to a problem? Please describe.
mypy doesn't understand that
Unset
is always falsyDescribe the solution you'd like
I would like mypy to understand this automatically
Type annotation on
Unset.__bool__()
could beLiteral[False]
instead ofbool
, but typing.Literal is not available for python < 3.8.The text was updated successfully, but these errors were encountered: