From 914e00a569a8a0c626d3f94e4ec30be3a0516d82 Mon Sep 17 00:00:00 2001 From: Stefan Zimmermann Date: Fri, 23 Jan 2026 21:10:27 +0100 Subject: [PATCH] Add missing return type annotation for Path.cwd() Closes https://github.com/jaraco/path/issues/243 --- path/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path/__init__.py b/path/__init__.py index 33dd979..96cf525 100644 --- a/path/__init__.py +++ b/path/__init__.py @@ -251,7 +251,7 @@ def __exit__(self, *_) -> None: os.chdir(self._old_dir) @classmethod - def cwd(cls): + def cwd(cls) -> Path: """Return the current working directory as a path object. .. seealso:: :func:`os.getcwd`