From fd4556941d9f3c812b15eab715ccc72a365cf69c Mon Sep 17 00:00:00 2001 From: David Lord Date: Mon, 4 Apr 2022 10:59:19 -0700 Subject: [PATCH] fix flake8-bugbear finding --- src/werkzeug/debug/repr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/werkzeug/debug/repr.py b/src/werkzeug/debug/repr.py index 7d847b03..3cc45d5d 100644 --- a/src/werkzeug/debug/repr.py +++ b/src/werkzeug/debug/repr.py @@ -83,8 +83,8 @@ def _add_subclass_info( inner: str, obj: object, base: t.Union[t.Type, t.Tuple[t.Type, ...]] ) -> str: if isinstance(base, tuple): - for base in base: - if type(obj) is base: + for cls in base: + if type(obj) is cls: return inner elif type(obj) is base: return inner -- 2.33.0