Skip to content

Commit

Permalink
Merge pull request #3191 from A5rocks/fix-parent-setter-type
Browse files Browse the repository at this point in the history
Update type hint for the `CancelStatus.parent` setter
  • Loading branch information
jakkdl authored Jan 29, 2025
2 parents ab6c9bd + d11481b commit d7cb2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def parent(self) -> CancelStatus | None:
return self._parent

@parent.setter
def parent(self, parent: CancelStatus) -> None:
def parent(self, parent: CancelStatus | None) -> None:
if self._parent is not None:
self._parent._children.remove(self)
self._parent = parent
Expand Down

0 comments on commit d7cb2fc

Please sign in to comment.