Skip to content

Commit

Permalink
Merge pull request #94 from rsokl/fix-cancel-scope
Browse files Browse the repository at this point in the history
Fix return type of `CancelScope.__exit__` such that it can suppresses errors
  • Loading branch information
oremanj authored Aug 9, 2024
2 parents 4d7cb8c + cfe4e42 commit 0936804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trio-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CancelScope(metaclass=ABCMeta):
exc_type: type[BaseException] | None,
exc_val: BaseException | None,
exc_tb: TracebackType | None,
) -> bool | None: ...
) -> bool: ...
def cancel(self) -> None: ...

@final
Expand Down

0 comments on commit 0936804

Please sign in to comment.