Update flake8 and fix issue found

This commit is contained in:
Peter Law
2023-02-13 19:15:35 +00:00
parent b0025ee6ba
commit 36a4b7d48c
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -44,7 +44,7 @@ setup(name='jedi',
'attrs',
],
'qa': [
'flake8==3.8.3',
'flake8==5.0.4',
'mypy==0.782',
],
'docs': [