Skip to content

Commit

Permalink
Fix value receiver hinting
Browse files Browse the repository at this point in the history
Signed-off-by: liamhuber <[email protected]>
  • Loading branch information
liamhuber committed Jan 21, 2025
1 parent 14be21b commit 1fbb47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_workflow/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def __init__(
self.strict_hints = strict_hints
self.default = default
self.value = default # Implicitly type check your default by assignment
self.value_receiver: ReceiverType = value_receiver
self.value_receiver = value_receiver

@property
def value(self):
Expand All @@ -399,7 +399,7 @@ def _type_check_new_value(self, new_value):
)

@property
def value_receiver(self) -> Self | None:
def value_receiver(self) -> ReceiverType | None:
"""
Another data channel of the same type to whom new values are always pushed
(without type checking of any sort, not even when forming the couple!)
Expand Down

0 comments on commit 1fbb47f

Please sign in to comment.