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
{{ message }}
Repository navigation
runtime_checkable error in newer versions caused by a protocol subclass #207
@AlexWaygood I'm having similar issues. One thing I noticed in my issue you might look at, if you run debug on the error is the error thrown with cls == Sized or on cls == MySized. I noticed the TypeError was thrown on any of protocol without runtime_checkable.
Activity
AlexWaygood commentedon May 31, 2023
vnmabus commentedon May 31, 2023
I am NOT using
isinstancewithMySized, please check the code again.AlexWaygood commentedon May 31, 2023
Yikes, that's not good! Thanks for the report. Apologies for misreading your example.
jgbos commentedon Jun 2, 2023
@AlexWaygood I'm having similar issues. One thing I noticed in my issue you might look at, if you run debug on the error is the error thrown with
cls == Sizedor oncls == MySized. I noticed theTypeErrorwas thrown on any of protocol withoutruntime_checkable.AlexWaygood commentedon Jun 2, 2023
@jgbos are you still experiencing this issue with the latest version of
typing_extensions(4.6.3)?jgbos commentedon Jun 2, 2023
@AlexWaygood I just saw your other comment, checking now.