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
implicit-any-attribute reported for __slots__ = () in numpy #3381
The type of __slots__ class attributes is trivial, so there should be no need to explicitly annotate the type of __slots__ = (). However, when implicit-any is enabled, then starting with Pyrefly 0.64.0, an implicit-any-attribute will be reported:
classA:
__slots__= ()
ERROR sandbox.py:2:17-19: This expression is implicitly inferred to be tuple[Any, ...]. Please provide an explicit type annotation. [implicit-any-attribute]
Activity
jorenham commentedon May 14, 2026
Thanks @yangdanny97
don't emit implicit any error for `__slots__`
don't emit implicit any error for `__slots__`