Skip to content

Commit 1468cac

Browse files
committed
ci: Fix return type of do_get_template filter
1 parent a38f9cd commit 1468cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mkdocstrings_handlers/python/_internal/rendering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from collections.abc import Iterable, Iterator, Sequence
3737

3838
from griffe import Attribute, Class, Function, Module
39-
from jinja2 import Environment, Template
39+
from jinja2 import Environment
4040
from jinja2.runtime import Context
4141
from mkdocstrings import CollectorItem
4242

@@ -528,7 +528,7 @@ def formatter(code: str, line_length: int) -> str:
528528
@pass_environment
529529
# YORE: Bump 2: Replace `env: Environment, ` with `` within line.
530530
# YORE: Bump 2: Replace `str | ` with `` within line.
531-
def do_get_template(env: Environment, obj: str | Object) -> str | Template:
531+
def do_get_template(env: Environment, obj: str | Object) -> str:
532532
"""Get the template name used to render an object.
533533
534534
Parameters:

0 commit comments

Comments
 (0)