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
I don't think that eq-without-hash (PLW1641) should apply to stubs (it currently does).
Stubs authors should aim to faithfully represent the runtime implementation. And if the runtime doesn't implement __hash__, the stubs shouldn't define it either.
Third-party stub authors have no control on this. First-party stubs would get FURB189 in their source .py files.
Ruff: 0.8.5 (rule is currently in preview)
(this report is extracted from #14535 (comment) for ease of tracking and discussion)
The text was updated successfully, but these errors were encountered:
I don't think that eq-without-hash (PLW1641) should apply to stubs (it currently does).
Stubs authors should aim to faithfully represent the runtime implementation. And if the runtime doesn't implement
__hash__
, the stubs shouldn't define it either.Third-party stub authors have no control on this. First-party stubs would get
FURB189
in their source.py
files.Ruff: 0.8.5 (rule is currently in preview)
(this report is extracted from #14535 (comment) for ease of tracking and discussion)
The text was updated successfully, but these errors were encountered: