From 898dc9cd72f8b9b7ee4099340c5a99fc100b7b5b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 9 Nov 2022 09:46:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyupgrade/_plugins/typing_pep604.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyupgrade/_plugins/typing_pep604.py b/pyupgrade/_plugins/typing_pep604.py index 85aee7c1..63bfa3ae 100644 --- a/pyupgrade/_plugins/typing_pep604.py +++ b/pyupgrade/_plugins/typing_pep604.py @@ -154,8 +154,8 @@ def visit_Subscript( ) ) if ( - has_forward_annotation - and 'annotations' not in state.from_imports['__future__'] + has_forward_annotation and + 'annotations' not in state.from_imports['__future__'] ): return