From 5f022533c494af3b2fd62423cc766aa08cd34bf2 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Thu, 17 Sep 2026 11:52:42 +0300 Subject: [PATCH] [rename] T_OS_RUN_INPUT -> T_OS_EXEC_INPUT --- src/helpers.py | 4 ++-- src/local_ops.py | 6 +++--- src/os_ops.py | 6 +++--- src/remote_ops.py | 8 ++++---- src/types.py | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/helpers.py b/src/helpers.py index 3a7ac4a..19f2972 100644 --- a/src/helpers.py +++ b/src/helpers.py @@ -1,6 +1,6 @@ from __future__ import annotations -from .types import T_OS_RUN_INPUT +from .types import T_OS_EXEC_INPUT import locale import typing @@ -52,7 +52,7 @@ def get_default_encoding(): @staticmethod def prepare_process_input( - input: typing.Optional[T_OS_RUN_INPUT], + input: typing.Optional[T_OS_EXEC_INPUT], encoding: typing.Optional[str], ) -> typing.Optional[bytes]: assert encoding is None or type(encoding) is str diff --git a/src/local_ops.py b/src/local_ops.py index e2845f6..384b9d2 100644 --- a/src/local_ops.py +++ b/src/local_ops.py @@ -32,7 +32,7 @@ from .os_ops import T_OS_TIMEOUT from .os_ops import T_OS_IO from .os_ops import T_OS_IO_ID -from .os_ops import T_OS_RUN_INPUT +from .os_ops import T_OS_EXEC_INPUT from .os_ops import T_OS_EXEC_ENV from .raise_error import RaiseError from .helpers import Helpers @@ -104,7 +104,7 @@ def returncode(self) -> typing.Optional[int]: def communicate( self, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, timeout: typing.Optional[T_OS_TIMEOUT] = None, ) -> OsProcessController.T_COMMUNICATE_RESULT: assert timeout is None or type(timeout) in [int, float] @@ -573,7 +573,7 @@ def run( text: typing.Optional[bool] = None, encoding: typing.Optional[str] = None, shell: bool = False, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, stdin: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stdout: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stderr: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, diff --git a/src/os_ops.py b/src/os_ops.py index bf62ee8..c236cc8 100644 --- a/src/os_ops.py +++ b/src/os_ops.py @@ -5,7 +5,7 @@ from .types import T_OS_TIMEOUT from .types import T_OS_IO from .types import T_OS_IO_ID -from .types import T_OS_RUN_INPUT +from .types import T_OS_EXEC_INPUT from .types import T_OS_EXEC_ENV from .raise_error import RaiseError @@ -82,7 +82,7 @@ def returncode(self) -> typing.Optional[int]: def communicate( self, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, timeout: typing.Optional[T_OS_TIMEOUT] = None ) -> T_COMMUNICATE_RESULT: assert input is None or type(input) in [str, bytes] @@ -234,7 +234,7 @@ def run( text: typing.Optional[bool] = None, encoding: typing.Optional[str] = None, shell: bool = False, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, stdin: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stdout: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stderr: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, diff --git a/src/remote_ops.py b/src/remote_ops.py index dc56303..424f674 100644 --- a/src/remote_ops.py +++ b/src/remote_ops.py @@ -27,7 +27,7 @@ from .os_ops import T_OS_TIMEOUT from .os_ops import T_OS_IO from .os_ops import T_OS_IO_ID -from .os_ops import T_OS_RUN_INPUT +from .os_ops import T_OS_EXEC_INPUT from .os_ops import T_OS_EXEC_ENV from .raise_error import RaiseError from .helpers import Helpers @@ -194,7 +194,7 @@ def returncode(self) -> typing.Optional[int]: def communicate( self, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, timeout: typing.Optional[T_OS_TIMEOUT] = None, ) -> OsProcessController.T_COMMUNICATE_RESULT: assert timeout is None or type(timeout) in [int, float] @@ -740,7 +740,7 @@ def run( text: typing.Optional[bool] = None, encoding: typing.Optional[str] = None, shell: bool = False, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, stdin: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stdout: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stderr: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, @@ -1869,7 +1869,7 @@ def _transport_run( text: typing.Optional[bool] = None, encoding: typing.Optional[str] = None, shell: bool = False, - input: typing.Optional[T_OS_RUN_INPUT] = None, + input: typing.Optional[T_OS_EXEC_INPUT] = None, stdin: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stdout: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, stderr: typing.Optional[T_OS_IO_ID] = subprocess.PIPE, diff --git a/src/types.py b/src/types.py index 050b364..0d50f4c 100644 --- a/src/types.py +++ b/src/types.py @@ -8,5 +8,5 @@ T_OS_TIMEOUT = typing.Union[int, float] T_OS_IO = typing.IO[typing.Any] T_OS_IO_ID = typing.Union[int, T_OS_IO] -T_OS_RUN_INPUT = typing.Union[str, bytes] +T_OS_EXEC_INPUT = typing.Union[str, bytes] T_OS_EXEC_ENV = typing.Dict[str, typing.Optional[str]]