diff --git a/stdlib/pathlib.pyi b/stdlib/pathlib.pyi index 348784b94..95e3586f6 100644 --- a/stdlib/pathlib.pyi +++ b/stdlib/pathlib.pyi @@ -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):