mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-09 21:47:17 +00:00
Add basic typing for module_utils.
This commit is contained in:
parent
fb2f34ba85
commit
e74033eac1
48 changed files with 209 additions and 142 deletions
|
|
@ -11,7 +11,7 @@ from __future__ import annotations
|
|||
import os
|
||||
|
||||
|
||||
def determine_config_file(user, config_file):
|
||||
def determine_config_file(user: str | None, config_file: str | None) -> str:
|
||||
if user:
|
||||
config_file = os.path.join(os.path.expanduser(f"~{user}"), ".ssh", "config")
|
||||
elif config_file is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue