Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typed_ast: Add missing field to
typed_ast.ast3.TypeIgnore
(#9868)
```pycon >>> import typed_ast.ast3 as ast3 >>> x = ast3.parse('def foo(): ... # type: ignore[attr-defined]') >>> ast3.dump(x) "Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=None, type_comment=None)], type_ignores=[TypeIgnore(lineno=1, tag='[attr-defined]')])" ```
- Loading branch information