Skip to content

Commit

Permalink
Fix mypyc compat issue w/ AST safety check (GH-2628)
Browse files Browse the repository at this point in the history
I can't wait for when we drop Python 2 support FWIW :)
  • Loading branch information
ichard26 committed Nov 19, 2021
1 parent 19f6aa8 commit 9a73bb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/black/parsing.py
Expand Up @@ -169,6 +169,7 @@ def stringify_ast(

yield f"{' ' * depth}{node.__class__.__name__}("

type_ignore_classes: Tuple[Type[Any], ...]
for field in sorted(node._fields): # noqa: F402
# TypeIgnore will not be present using pypy < 3.8, so need for this
if not (_IS_PYPY and sys.version_info < (3, 8)):
Expand Down

0 comments on commit 9a73bb8

Please sign in to comment.