Skip to content

Commit 2686e20

Browse files
authored
Add missing tag attribute to TypeIgnore stub (#5238)
This attribute was [added in 3.8]. This change lets mypy resolve the type correctly instead of failing with an attr-defined error. [added in 3.8]: python/cpython#13479
1 parent fc07756 commit 2686e20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/_ast.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class mod(AST): ...
2525

2626
if sys.version_info >= (3, 8):
2727
class type_ignore(AST): ...
28-
class TypeIgnore(type_ignore): ...
28+
class TypeIgnore(type_ignore):
29+
tag: str
2930
class FunctionType(mod):
3031
argtypes: typing.List[expr]
3132
returns: expr

0 commit comments

Comments
 (0)