From 5a95332a8de4509b2a7ccb0fb139ddf805fc46d6 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Tue, 1 Oct 2024 12:49:18 -0700 Subject: [PATCH] ignore `ChainedUndefined.__getitem__` return-type annotation * base impl/assignment is improperly annotated, but it was already ignored --- src/jinja2/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jinja2/runtime.py b/src/jinja2/runtime.py index 06df6f8bf..dc173e9bb 100644 --- a/src/jinja2/runtime.py +++ b/src/jinja2/runtime.py @@ -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