fix whats_left to support __annotate__

This commit is contained in:
Jeong, YunWon committed 2026-01-17 19:21:11 +09:00
1 parent dc93614f5a
commit 37cc6b44f9
1 file changed
+3
+3
View File
@@ -195,6 +195,9 @@ def gen_methods():
typ = eval(typ_code)
attrs = []
for attr in dir(typ):
# Skip attributes in dir() but not actually accessible (e.g., descriptor that raises)
if not hasattr(typ, attr):
continue
if attr_is_not_inherited(typ, attr):
attrs.append((attr, extra_info(getattr(typ, attr))))
methods[typ.__name__] = (typ_code, extra_info(typ), attrs)