Compare commits

...

1 Commits

1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ async def maybe_open_nursery(
yield nursery yield nursery
else: else:
async with lib.open_nursery(**kwargs) as nursery: async with lib.open_nursery(**kwargs) as nursery:
if lib == trio:
nursery.cancel_scope.shield = shield nursery.cancel_scope.shield = shield
yield nursery yield nursery