From 733b4fc89c96603944edd0b22ac2046142dc840f Mon Sep 17 00:00:00 2001 From: Zakir Jiwani <108548454+JiwaniZakir@users.noreply.github.com> Date: Tue, 17 Mar 2026 04:35:34 +0000 Subject: [PATCH] Add return type annotation to Path.cwd() --- path/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path/__init__.py b/path/__init__.py index 33dd979..57606af 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`