Skip to content

Commit

Permalink
Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
peterallenwebb committed Dec 10, 2024
1 parent f72d183 commit 525700c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_jinja.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 525700c

Please sign in to comment.