@@ -348,7 +348,7 @@ class CancelStatus:
348
348
# become effectively cancelled when they do, unless scope.shield
349
349
# is True. May be None (for the outermost CancelStatus in a call
350
350
# to trio.run(), briefly during TaskStatus.started(), or during
351
- # recovery from mis-nesting of cancel scopes).
351
+ # recovery from misnesting of cancel scopes).
352
352
_parent : CancelStatus | None = attrs .field (default = None , repr = False , alias = "parent" )
353
353
354
354
# All of the CancelStatuses that have this CancelStatus as their parent.
@@ -362,7 +362,7 @@ class CancelStatus:
362
362
363
363
# Set to True on still-active cancel statuses that are children
364
364
# of a cancel status that's been closed. This is used to permit
365
- # recovery from mis-nested cancel scopes (well, at least enough
365
+ # recovery from misnested cancel scopes (well, at least enough
366
366
# recovery to show a useful traceback).
367
367
abandoned_by_misnesting : bool = attrs .field (default = False , init = False , repr = False )
368
368
@@ -595,7 +595,7 @@ def _close(self, exc: BaseException | None) -> BaseException | None:
595
595
return new_exc
596
596
scope_task = current_task ()
597
597
if scope_task ._cancel_status is not self ._cancel_status :
598
- # Cancel scope mis-nesting : this cancel scope isn't the most
598
+ # Cancel scope misnesting : this cancel scope isn't the most
599
599
# recently opened by this task (that's still open). That is,
600
600
# our assumptions about context managers forming a stack
601
601
# have been violated. Try and make the best of it.
0 commit comments