1
0
Fork 0
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:
Alexei Znamensky 2026-05-31 14:38:17 +12:00
parent fabd544d68
commit a16ba6eb1c

View file

@ -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]