Skip to content

Commit fbe340f

Browse files
committed
Restore mistakenly deleted code.
1 parent 626f913 commit fbe340f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sphinx_jinja2_compat/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def environmentfilter(f: F) -> F:
6868
def contextfunction(f: F) -> F:
6969
return jinja2.utils.pass_context(f)
7070

71+
jinja2.utils.contextfunction = contextfunction # type: ignore[attr-defined]
72+
jinja2.contextfunction = contextfunction # type: ignore[attr-defined]
7173

7274
# This all has to be up here so it's triggered first.
7375
if sys.version_info >= (3, 10):

0 commit comments

Comments
 (0)