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: a: int = 10 @property def foo(self) -> int: return 1 @foo.setter def foo(self, value: int) -> None: ... class B(A): a: bool = True @property def foo(self) -> bool: return True @foo.setter def foo(self, value: bool) -> None: ... def foo(a: A) -> None: a.a = 10 a.foo = 10 b = B() foo(b) reveal_type(b.a) # bool, at runtime it's int reveal_type(b.foo) # bool, at runtime it's int
https://mypy-play.net/?mypy=master&python=3.10&flags=strict&gist=9433ff90606ac67ec9728212af1edec1
The text was updated successfully, but these errors were encountered:
Thanks, duplicate of #3208
Sorry, something went wrong.
No branches or pull requests
https://mypy-play.net/?mypy=master&python=3.10&flags=strict&gist=9433ff90606ac67ec9728212af1edec1
The text was updated successfully, but these errors were encountered: