Issue 9732: remove use of __class__ in inspect.getattr_static and note the mro exception to code execution
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 57d8c72..97e99aa 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -1092,7 +1092,7 @@
     instance_result = _sentinel
     if not isinstance(obj, type):
         instance_result = _check_instance(obj, attr)
-        klass = obj.__class__
+        klass = type(obj)
     else:
         klass = obj