Skip to content

Commit

Permalink
Do not cast directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jun 3, 2023
1 parent aeb1726 commit 15c70ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(
assert jinja2 is not None, "jinja2 must be installed to use Jinja2Templates"
assert directory or env, "either 'directory' or 'env' arguments must be passed"
self.context_processors = context_processors or []
self.env = env or self._create_env(str(directory), **env_options)
self.env = env or self._create_env(directory, **env_options)

def _create_env(
self,
Expand Down

0 comments on commit 15c70ed

Please sign in to comment.