Skip to content

Commit

Permalink
refactor: Pass globals to parent constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 29, 2025
1 parent 72d25d8 commit ea4567b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/copier_templates_extensions/extensions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
parent: dict[str, Any],
name: str | None,
blocks: dict[str, Callable],
globals: MutableMapping[str, Any] | None = None, # noqa: A002,ARG002
globals: MutableMapping[str, Any] | None = None, # noqa: A002
):
if extension_self.update is not _sentinel: # type: ignore[attr-defined]
warnings.warn(
Expand All @@ -54,7 +54,7 @@ def __init__(
stacklevel=1,
)

super().__init__(env, parent, name, blocks)
super().__init__(env, parent, name, blocks, globals)

environment.context_class = ContextClass

Expand Down

0 comments on commit ea4567b

Please sign in to comment.