implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
This commit is contained in:
parent
669c82a10b
commit
82a87e7ea9
15 changed files with 34 additions and 27 deletions
|
@ -51,7 +51,7 @@ def run_ssh_command(cmd: list[str] = [],
|
|||
return run_cmd(full_cmd)
|
||||
|
||||
|
||||
def scp_put_files(src: list[str], dst: str, user: str = None, host: str = SSH_DEFAULT_HOST, port: int = SSH_DEFAULT_PORT):
|
||||
def scp_put_files(src: list[str], dst: str, user: Optional[str] = None, host: str = SSH_DEFAULT_HOST, port: int = SSH_DEFAULT_PORT):
|
||||
check_programs_wrap(['scp'])
|
||||
if not user:
|
||||
user = config.get_profile()['username']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue