Various stdlib dunders: correct parameter names; improve types; add defaults (#9761)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2023-02-19 23:44:20 +01:00
committed by GitHub
parent 74112dc189
commit c5b5dd4bf4
8 changed files with 31 additions and 23 deletions

View File

@@ -110,7 +110,7 @@ if sys.platform == "linux":
def __exit__(
self,
__exc_type: type[BaseException] | None = None,
__exc_val: BaseException | None = ...,
__exc_value: BaseException | None = ...,
__exc_tb: TracebackType | None = None,
) -> None: ...
def close(self) -> None: ...