We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dfbc8f commit 88a5730Copy full SHA for 88a5730
marimo/_save/stubs/__init__.py
@@ -42,7 +42,13 @@ def maybe_register_stub(value: Any) -> bool:
42
return True
43
44
# Walk MRO to find matching base class
45
- for cls in value_type.__mro__:
+ try:
46
+ mro_list = value_type.mro()
47
+ except BaseException:
48
+ # Some exotic metaclasses or broken types may raise when calling mro
49
+ mro_list = [value_type]
50
+
51
+ for cls in mro_list:
52
if not (hasattr(cls, "__module__") and hasattr(cls, "__name__")):
53
continue
54
0 commit comments