reportRedeclaration
diagnostics for redeclared property setters and deleters
#8166
Closed
InSyncWithFoo
started this conversation in
General
Replies: 1 comment
-
Pyright is working as intended here. While you're correct that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproducible example (playground):
Since at runtime
@p.setter
just overwritesC.p
with a newproperty
object containing the latest setter method, I think it would make sense to consider this as a redeclaration and report it accordingly.Instance attribute redeclarations with the same annotations also don't trigger this rule, but this seems to be intentional.
Beta Was this translation helpful? Give feedback.
All reactions