mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
fix whats_left to support __annotate__
This commit is contained in:
1 parent
dc93614f5a
commit
37cc6b44f9
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user