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
This updates protocol semantic according to the discussion in python/typing#464:
None should be considered a subtype of an empty protocol
method = None rule should apply only to callable protocol members
issublcass() is prohibited for protocols with non-method members.
Fixes#3906Fixes#3938Fixes#3939
Currently this gives an incompatible type error with
--strict-optional
, although it works with plainobject
:The text was updated successfully, but these errors were encountered: