Skip to content

Commit

Permalink
ignore ChainedUndefined.__getitem__ return-type annotation
Browse files Browse the repository at this point in the history
* base impl/assignment is improperly annotated, but it was already ignored
  • Loading branch information
nitzmahone committed Oct 1, 2024
1 parent 7d0b64c commit 5a95332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jinja2/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ def __getattr__(self, name: str) -> "ChainableUndefined":

return self

def __getitem__(self, _: str) -> "ChainableUndefined":
def __getitem__(self, _: str) -> "ChainableUndefined": # type: ignore
return self


Expand Down

0 comments on commit 5a95332

Please sign in to comment.