Skip to content

Commit 0936804

Browse files
authored
Merge pull request #94 from rsokl/fix-cancel-scope
Fix return type of `CancelScope.__exit__` such that it can suppresses errors
2 parents 4d7cb8c + cfe4e42 commit 0936804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trio-stubs/__init__.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class CancelScope(metaclass=ABCMeta):
121121
exc_type: type[BaseException] | None,
122122
exc_val: BaseException | None,
123123
exc_tb: TracebackType | None,
124-
) -> bool | None: ...
124+
) -> bool: ...
125125
def cancel(self) -> None: ...
126126

127127
@final

0 commit comments

Comments
 (0)