Skip to content

Commit 76aeda3

Browse files
committed
chore: add clarifying comment on jinja2.Environment import
1 parent 3d4e11a commit 76aeda3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql_server/render_graphiql.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import re
55
from typing import Any, Dict, Optional, Tuple
66

7+
# This Environment import is only for type checking purpose,
8+
# and only relevant if rendering GraphiQL with Jinja
79
try:
810
from jinja2 import Environment
911
except ImportError:

0 commit comments

Comments
 (0)