Skip to content

Commit 2230ce8

Browse files
committed
ssh: mark all keyword arguments as keyword-only
We would never dare to use them otherwise, and type hints overloads will require to order them differently in some overloads. Signed-off-by: Yann Dirson <[email protected]>
1 parent b9402cd commit 2230ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
133133
# The actual code is in _ssh().
134134
# This function is kept short for shorter pytest traces upon SSH failures, which are common,
135135
# as pytest prints the whole function definition that raised the SSHCommandFailed exception
136-
def ssh(hostname_or_ip, cmd, check=True, simple_output=True, suppress_fingerprint_warnings=True,
136+
def ssh(hostname_or_ip, cmd, *, check=True, simple_output=True, suppress_fingerprint_warnings=True,
137137
background=False, decode=True, options=[]):
138138
success, result_or_exc = _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warnings,
139139
background, decode, options)

0 commit comments

Comments
 (0)