mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-04-28 17:35:33 +08:00
pathlib.Path.__exit__ always returns None (#7192)
Source code here: https://github.com/python/cpython/blob/0ae40191793da1877a12d512f0116d99301b2c51/Lib/pathlib.py#L893 It has always returned `None`, by the looks of things.
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user