From 399a4ea25244972f74e9c1a7b8edb0124206caa0 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Sun, 13 Sep 2026 18:13:13 +0300 Subject: [PATCH] OsOperations::cwd returns str (typing) --- src/os_ops.py | 2 +- src/remote_ops.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os_ops.py b/src/os_ops.py index 8600237..c7d235c 100644 --- a/src/os_ops.py +++ b/src/os_ops.py @@ -132,7 +132,7 @@ def environ(self, var_name: str) -> typing.Optional[str]: assert var_name != "" RaiseError.MethodIsNotImplemented(__class__, "environ") - def cwd(self): + def cwd(self) -> str: RaiseError.MethodIsNotImplemented(__class__, "cwd") def find_executable(self, executable: str) -> typing.Optional[str]: diff --git a/src/remote_ops.py b/src/remote_ops.py index 40c1a43..ffadc8a 100644 --- a/src/remote_ops.py +++ b/src/remote_ops.py @@ -347,7 +347,7 @@ def environ(self, var_name: str) -> typing.Optional[str]: out=stdout, ) - def cwd(self): + def cwd(self) -> str: cmd = 'pwd' stdout = self.exec_command(cmd, encoding=get_default_encoding()) assert type(stdout) is str