diff --git a/odoo-stubs/tools/rendering_tools.pyi b/odoo-stubs/tools/rendering_tools.pyi index 9ea673c..ccc52bd 100644 --- a/odoo-stubs/tools/rendering_tools.pyi +++ b/odoo-stubs/tools/rendering_tools.pyi @@ -1,11 +1,14 @@ -from typing import Any +from re import Pattern +from typing import Any, Iterable -INLINE_TEMPLATE_REGEX: Any +from markupsafe import Markup + +INLINE_TEMPLATE_REGEX: Pattern def relativedelta_proxy(*args, **kwargs): ... -template_env_globals: Any +template_env_globals: dict[str, Any] -def parse_inline_template(text): ... -def convert_inline_template_to_qweb(template): ... -def render_inline_template(template_instructions, variables): ... +def parse_inline_template(text: str) -> list[tuple[str, str]]: ... +def convert_inline_template_to_qweb(template: str) -> Markup: ... +def render_inline_template(template_instructions: Iterable[tuple[str, str]], variables: dict) -> str: ...