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
typing._allow_reckless_class_checks doesn't work when _abc doesn't exist. #136047
When typing._caller's sys._getframe fallback is triggered without _abc module, _typing._allow_reckless_class_checks fails to check _py_abc while running abc.ABCMeta.__instancecheck__.
Without _abc module, _typing._allow_reckless_class_checksfails to check _py_abc
changed the title [-]_py_abc.ABCMeta.__instancecheck__ is not compatible to abc.ABCMeta.__instancecheck__[/-][+]typing._allow_reckless_class_checks doesn't work when sys._getframemodulename and _abc don't exist.[/+]on Jun 30, 2025
changed the title [-]typing._allow_reckless_class_checks doesn't work when sys._getframemodulename and _abc don't exist.[/-][+]typing._allow_reckless_class_checks doesn't work when _abc doesn't exist.[/+]on Jun 30, 2025
Activity
youknowone commentedon Jun 27, 2025
Sorry, though the error is different, I couldn't confirm it leads actual behavior difference. I will open it again if it cause actual problem.Revised the content with the real cause
[-]_py_abc.ABCMeta.__instancecheck__ is not compatible to abc.ABCMeta.__instancecheck__[/-][+]typing._allow_reckless_class_checks doesn't work when sys._getframemodulename and _abc don't exist.[/+]Revert "pythongh-136047 Allow typing._allow_reckless_class_checks to …
[-]typing._allow_reckless_class_checks doesn't work when sys._getframemodulename and _abc don't exist.[/-][+]typing._allow_reckless_class_checks doesn't work when _abc doesn't exist.[/+]gh-136047: Allow typing._allow_reckless_class_checks to check `_py_ab…
pythongh-136047: Allow typing._allow_reckless_class_checks to check `…
pythongh-136047: Allow typing._allow_reckless_class_checks to check `…
pythongh-136047: Allow typing._allow_reckless_class_checks to check `…
pythongh-136047: Allow typing._allow_reckless_class_checks to check `…
pythongh-136047: Allow typing._allow_reckless_class_checks to check `…