Skip to content

Commit d11481b

Browse files
committed
Update type hint for the CancelStatus.parent setter
1 parent ed2a7d3 commit d11481b

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
@@ -378,7 +378,7 @@ def parent(self) -> CancelStatus | None:
378378
return self._parent
379379

380380
@parent.setter
381-
def parent(self, parent: CancelStatus) -> None:
381+
def parent(self, parent: CancelStatus | None) -> None:
382382
if self._parent is not None:
383383
self._parent._children.remove(self)
384384
self._parent = parent

0 commit comments

Comments
 (0)