-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
previewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
previewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule