ruff: more fixes, mainly missing docstrings

This commit is contained in:
James R. Barlow
2023-04-14 02:16:38 -07:00
parent 4924b11b6b
commit 33b70be7d5
10 changed files with 149 additions and 16 deletions
+6 -1
View File
@@ -43,11 +43,16 @@ def run(
Arguments should be identical to ``subprocess.run``, except for following:
Arguments:
Args:
args: Positional arguments to pass to ``subprocess.run``.
env: A set of environment variables. If None, the OS environment is used.
logs_errors_to_stdout: If True, indicates that the process writes its error
messages to stdout rather than stderr, so stdout should be logged
if there is an error. If False, stderr is logged. Could be used with
stderr=STDOUT, stdout=PIPE for example.
check: If True, raise an exception if the process exits with a non-zero
status code. If False, the return value will indicate success or failure.
kwargs: Additional arguments to pass to ``subprocess.run``.
"""
args, env, process_log, _text = _fix_process_args(args, env, kwargs)
+1 -1
View File
@@ -32,7 +32,7 @@ else:
spec=['HKEYType', 'EnumKey', 'EnumValue', 'HKEY_LOCAL_MACHINE', 'OpenKey']
)
# mypy does not understand winreg.HKeyType where winreg is a Mock (fair enough!)
HKEYType: TypeAlias = Any
HKEYType: TypeAlias = Any # type: ignore
log = logging.getLogger(__name__)