From 525700c26a4e4ff05feee80c0b7d91ab819957db Mon Sep 17 00:00:00 2001 From: Peter Allen Webb Date: Tue, 10 Dec 2024 16:27:29 -0500 Subject: [PATCH] Fix type annotations --- tests/unit/test_jinja.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_jinja.py b/tests/unit/test_jinja.py index 3a35abf..2247374 100644 --- a/tests/unit/test_jinja.py +++ b/tests/unit/test_jinja.py @@ -1,6 +1,8 @@ import jinja2 import unittest +from typing import Any, Dict + from dbt_common.clients._jinja_blocks import BlockTag from dbt_common.clients.jinja import ( extract_toplevel_blocks, @@ -521,7 +523,7 @@ def test_if_list_filter() -> None: {%- endif -%} """ # Check with list variable - ctx = {"my_var": ["one", "two"]} + ctx: Dict[str, Any] = {"my_var": ["one", "two"]} template = get_template(jinja_string, ctx) rendered = render_template(template, ctx) assert "Found a list" in rendered