mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add basic typing for module_utils.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user