Skip to content

Commit 4567a63

Browse files
committed
Drop unused extra "args" argument to run_winrm()
Repported by mypy
1 parent d45b633 commit 4567a63

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.readthedocs.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ version: 2
22
build:
33
os: ubuntu-22.04
44
tools:
5-
python: "3.9"
5+
python: "3.11"
66
python:
77
install:
8-
- requirements: dev-requirements.txt
8+
- method: pip
9+
path: .
10+
extra_requirements:
11+
- doc

testinfra/backend/winrm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ def __init__(
7979
def run(self, command: str, *args: str, **kwargs: Any) -> base.CommandResult:
8080
return self.run_winrm(self.get_command(command, *args))
8181

82-
def run_winrm(self, command: str, *args: str) -> base.CommandResult:
82+
def run_winrm(self, command: str) -> base.CommandResult:
8383
p = winrm.protocol.Protocol(**self.conn_args)
8484
shell_id = p.open_shell()
85-
command_id = p.run_command(shell_id, command, *args)
85+
command_id = p.run_command(shell_id, command)
8686
stdout, stderr, rc = p.get_command_output(shell_id, command_id)
8787
p.cleanup_command(shell_id, command_id)
8888
p.close_shell(shell_id)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ commands=
3030
pre-commit run -a
3131

3232
[testenv:docs]
33-
deps=-rdev-requirements.txt
33+
extras =
34+
doc
3435
commands=sphinx-build -W -b html doc/source doc/build
3536

3637
[testenv:packaging]

0 commit comments

Comments
 (0)