Skip to content

Commit

Permalink
Ignore mypy issue on jinja2.contextfunction function (#1554)
Browse files Browse the repository at this point in the history
* Ignore mypy issue on jinja2 function

* Add pin on jinja2

* Update requirements.txt

* Update requirements.txt
  • Loading branch information
Kludex committed Mar 27, 2022
1 parent e086fc2 commit 710aa62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pytest==7.0.1
trio==0.19.0

# Documentation
mkdocs==1.2.3
mkdocs==1.2.4
mkdocs-material==8.1.3
mkautodoc==0.1.0

Expand Down
2 changes: 1 addition & 1 deletion starlette/templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if hasattr(jinja2, "pass_context"):
pass_context = jinja2.pass_context
else: # pragma: nocover
pass_context = jinja2.contextfunction
pass_context = jinja2.contextfunction # type: ignore[attr-defined]
except ImportError: # pragma: nocover
jinja2 = None # type: ignore

Expand Down

0 comments on commit 710aa62

Please sign in to comment.