-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
value_receiver
vs _value_receiver
?
#566
Comments
This is completely intended. def __init__(
...
value_receiver: ReceiverType | None = None,
):
...
self._value_receiver = None
....
self.value_receiver: ReceiverType = value_receiver
...
@value_receiver.setter
def value_receiver(self, new_partner: Self | None):
if new_partner is not None:
... |
self.value_receiver: ReceiverType = value_receiver The type hint is misleading as it suggests a declaration shadowing your property. |
You're right that the attribute doesn't need a hint since the property has one, but the property hint should actually be |
Fallen into my own trap... I am still confused by the meaning of Channel. But yes, of course, you are right. |
Is this a bug, or is this intended?
value_receiver
vs_value_receiver
?The text was updated successfully, but these errors were encountered: