mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
@@ -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