1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-30 23:48:54 +00:00

Add more module_utils typing (#11283)

Add more module_utils typing.
This commit is contained in:
Felix Fontein 2025-12-15 19:46:51 +01:00 committed by GitHub
parent df34945991
commit ef632145e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 340 additions and 274 deletions

View file

@ -9,7 +9,7 @@ import typing as t
class ModuleHelperException(Exception):
def __init__(self, msg: str, update_output: dict[str, t.Any] | None = None, *args, **kwargs):
def __init__(self, msg: str, update_output: dict[str, t.Any] | None = None, *args, **kwargs) -> None:
self.msg: str = msg or f"Module failed with exception: {self}"
if update_output is None:
update_output = {}