mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
![]() paramiko `set_missing_host_key_policy` has mandatory positional arg. The [current documentation](https://docs.astral.sh/ruff/rules/ssh-no-host-key-verification/#example) leads to non-running code ``` >>> from paramiko import client >>> ssh_client = client.SSHClient() >>> ssh_client.set_missing_host_key_policy() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: SSHClient.set_missing_host_key_policy() missing 1 required positional argument: 'policy' ``` This PR modifies the documentation to set the policy to the [default `RejectPolicy`](https://docs.paramiko.org/en/latest/api/client.html#paramiko.client.SSHClient.set_missing_host_key_policy) Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> |
||
---|---|---|
.. | ||
ruff_benchmark | ||
ruff_cache | ||
ruff_cli | ||
ruff_dev | ||
ruff_diagnostics | ||
ruff_formatter | ||
ruff_index | ||
ruff_linter | ||
ruff_macros | ||
ruff_notebook | ||
ruff_python_ast | ||
ruff_python_codegen | ||
ruff_python_formatter | ||
ruff_python_index | ||
ruff_python_literal | ||
ruff_python_parser | ||
ruff_python_resolver | ||
ruff_python_semantic | ||
ruff_python_stdlib | ||
ruff_python_trivia | ||
ruff_shrinking | ||
ruff_source_file | ||
ruff_text_size | ||
ruff_wasm | ||
ruff_workspace |