Python: Improve load_file signature's return type

This commit is contained in:
Simon Hausmann 2025-02-12 23:15:18 +01:00 committed by Simon Hausmann
parent f0f2880430
commit 5a31ad437e

View file

@ -238,7 +238,7 @@ def load_file(
typing.List[str | os.PathLike[Any] | pathlib.Path]
] = None,
translation_domain: typing.Optional[str] = None,
) -> Any:
) -> types.SimpleNamespace:
compiler = native.Compiler()
if style is not None: