Skip to content

Commit 2fbff73

Browse files
Make attributes required on AST type_param classes
Refs python/cpython#106224
1 parent ed201da commit 2fbff73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/_ast.pyi

+3-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,9 @@ if sys.version_info >= (3, 10):
586586
patterns: list[pattern]
587587

588588
if sys.version_info >= (3, 12):
589-
class type_param(AST): ...
589+
class type_param(AST):
590+
end_lineno: int
591+
end_col_offset: int
590592

591593
class TypeVar(type_param):
592594
__match_args__ = ("name", "bound")

0 commit comments

Comments
 (0)