We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb231d commit a7701bfCopy full SHA for a7701bf
flake8_pyi/visitor.py
@@ -437,9 +437,12 @@ def _is_bad_TypedDict(node: ast.Call) -> bool:
437
return False
438
439
for key in typed_dict_annotations.keys:
440
- if not isinstance(key, ast.Constant) or type(key.value) is not str:
441
- return False
442
- if not key.value.isidentifier() or iskeyword(key.value):
+ if not (
+ isinstance(key, ast.Constant)
+ and type(key.value) is str
443
+ and key.value.isidentifier()
444
+ and not iskeyword(key.value)
445
+ ):
446
447
return True
448
0 commit comments