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