Skip to content
Myr

update pre-commit hooks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 5c8a105 · Browse files · 3 files+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+8 added−8 removed

  • other:+8 added−8 removed

3 files+8 added−8 removed

modified:src/jinja2/compiler.py+2 added-2 removed
1404 unmodified lines
1405 finalize = None14061407 if pass_arg is None:14081409 def finalize(value: t.Any) -> t.Any:1409 def finalize(value: t.Any) -> t.Any: # noqa: F8111410 return default(env_finalize(value))14111412 else:1413 src = f"{src}{pass_arg}, "14141415 if pass_arg == "environment":14161417 def finalize(value: t.Any) -> t.Any:1417 def finalize(value: t.Any) -> t.Any: # noqa: F8111418 return default(env_finalize(self.environment, value))14191420 self._finalize = self._FinalizeInfo(finalize, src)1421 return self._finalize
535 unmodified lines
modified:src/jinja2/parser.py+1 added-1 removed
857 unmodified lines
858 args.append(None)859 else:860 args.append(None)861862 return nodes.Slice(lineno=lineno, *args)862 return nodes.Slice(lineno=lineno, *args) # noqa: B026863864 def parse_call_args(self) -> t.Tuple:865 token = self.stream.expect("lparen")866 args = []
168 unmodified lines
modified:.pre-commit-config.yaml+5 added-5 removed