Skip to content

Commit d7cb2fc

Browse files
authored
Merge pull request #3191 from A5rocks/fix-parent-setter-type
Update type hint for the `CancelStatus.parent` setter
2 parents ab6c9bd + d11481b commit d7cb2fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trio/_core/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def parent(self) -> CancelStatus | None:
394394
return self._parent
395395

396396
@parent.setter
397-
def parent(self, parent: CancelStatus) -> None:
397+
def parent(self, parent: CancelStatus | None) -> None:
398398
if self._parent is not None:
399399
self._parent._children.remove(self)
400400
self._parent = parent

0 commit comments

Comments
 (0)