From 36a4b7d48c0f7a066f36935b87a14bcc58e7ea11 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Mon, 13 Feb 2023 19:15:35 +0000 Subject: [PATCH] Update flake8 and fix issue found --- jedi/inference/syntax_tree.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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': [