We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class A: @property def foo(self) -> str: return "hi" class B(A): @A.foo.setter # "(A) -> str" has no attribute "setter" [attr-defined] def foo(self, value: str): print(value) B().foo = "a" B().foo = 1 # no error
Define additional prop getter in derived class
class A: @property def foo(self) -> str: return "hi" class B(A): @property def foo(self)-> str: return super().foo @foo.setter def foo(self, value: str): print(value) B().foo = "a" B().foo = 1 # yes error
The text was updated successfully, but these errors were encountered:
Duplicate of #1465. (or #5936... wow we have a lot of duplicates)
Sorry, something went wrong.
No branches or pull requests
Workaround
Define additional prop getter in derived class
The text was updated successfully, but these errors were encountered: