Skip to content

Commit

Permalink
fixup! pr_labeler: re-architect triager script
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 committed Sep 13, 2024
1 parent 8842965 commit fb068eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hacking/pr_labeler/pr_labeler/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@

from __future__ import annotations

from typing import Any
from typing import Any, cast

from jinja2 import Environment, FileSystemLoader, StrictUndefined, select_autoescape

from .constants import HERE
from jinja2 import Environment, PackageLoader, StrictUndefined, select_autoescape

JINJA2_ENV = Environment(
loader=FileSystemLoader(HERE / "data"),
loader=PackageLoader(cast(str, __package__), "data"),
autoescape=select_autoescape(),
trim_blocks=True,
undefined=StrictUndefined,
Expand Down

0 comments on commit fb068eb

Please sign in to comment.