pathlib.Path.__exit__ always returns None (#7192)

Source code here: 0ae4019179/Lib/pathlib.py (L893)

It has always returned `None`, by the looks of things.
This commit is contained in:
Alex Waygood
2022-02-14 01:14:13 +00:00
committed by GitHub
parent 0109a371d6
commit 68e2a74a79

View File

@@ -65,7 +65,7 @@ class Path(PurePath):
def __enter__(self: Self) -> Self: ...
def __exit__(
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
) -> bool | None: ...
) -> None: ...
@classmethod
def cwd(cls: type[Self]) -> Self: ...
if sys.version_info >= (3, 10):