mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-09 03:58:59 +00:00
add type hint
This commit is contained in:
parent
fabd544d68
commit
a16ba6eb1c
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ def _normalize_ip(value: str) -> str:
|
|||
|
||||
|
||||
def _normalize_data_ips(data: dict) -> dict:
|
||||
result = {}
|
||||
result: dict = {}
|
||||
for key, value in data.items():
|
||||
if isinstance(value, list):
|
||||
result[key] = [_normalize_ip(v) if isinstance(v, str) else v for v in value]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue