Should subclass-builtin (FURB189)
not apply to stubs?
#15291
Labels
rule
Implementing or modifying a lint rule
subclass-builtin (FURB189)
not apply to stubs?
#15291
I don't think that subclass-builtin (FURB189) should apply to stubs (it currently does).
Stubs authors should aim to faithfully represent the runtime implementation. And if the runtime subclasses
dict
,list
orstr
. So should the stubs.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: