diff --git a/jedi/inference/syntax_tree.py b/jedi/inference/syntax_tree.py index 1d8b4e2e..2cd2a140 100644 --- a/jedi/inference/syntax_tree.py +++ b/jedi/inference/syntax_tree.py @@ -329,8 +329,8 @@ def infer_atom(context, atom): c = atom.children # Parentheses without commas are not tuples. if c[0] == '(' and not len(c) == 2 \ - and not(c[1].type == 'testlist_comp' - and len(c[1].children) > 1): + and not (c[1].type == 'testlist_comp' + and len(c[1].children) > 1): return context.infer_node(c[1]) try: diff --git a/setup.py b/setup.py index 5b04c3ce..216bd1b6 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ setup(name='jedi', 'attrs', ], 'qa': [ - 'flake8==3.8.3', + 'flake8==5.0.4', 'mypy==0.782', ], 'docs': [