You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect missing-attribute when valid class attribute is included in __slots__ #2444
$ pyrefly check test.py
ERROR Instance-only attribute `__name__` of class `Foo` is not visible on the class [missing-attribute]
--> test.py:7:7
|
8 | print(Foo.__name__)
| ^^^^^^^^^^^^
|
INFO 1 error
Activity
rchen152 commentedon Feb 16, 2026
Thanks for the report! This looks related to #630. We currently have no, or very minimal, support for
__slots__, I believe.__slots__#630yangdanny97 commentedon Mar 18, 2026
#630 is closed but the bug still repros
fix false positive for `__slots__` when attribute is defined on metac…