Replies: 1 comment 1 reply
-
Seems like you should add |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I hope this question is not too basic. Consider the case in which I want to provide a
Protocol
with a default implementation that performs some action on the setter of one of its properties (so it is not simply declaring an attribute):Here Mypy complains because
self._my_property
is not part of theProtocol
. Is there an accepted way to achieve this?Beta Was this translation helpful? Give feedback.
All reactions