From 37cc6b44f92f7fcd5eddbfb1d1569cf9255ab210 Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" Date: Fri, 16 Jan 2026 21:47:45 +0900 Subject: [PATCH] fix whats_left to support __annotate__ --- whats_left.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whats_left.py b/whats_left.py index 3ae2d2c0f..99b840f9d 100755 --- a/whats_left.py +++ b/whats_left.py @@ -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)