Skip to content
Prev Previous commit
Update Lib/typing.py
  • Loading branch information
AlexWaygood authored Apr 5, 2023
commit 08af61593d85db78efa1abef197f8d8e510a7913
1 change: 1 addition & 0 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,7 @@ def __instancecheck__(cls, instance):
):
raise TypeError("Instance and class checks can only be used with"
" @runtime_checkable protocols")

if super().__instancecheck__(instance):
Comment thread
AlexWaygood marked this conversation as resolved.
return True

Expand Down