@@ -285,6 +285,15 @@ class ClassExpr_ extends @py_ClassExpr, Expr {
285285 /** Gets the class scope of this class definition. */
286286 Class getInnerScope ( ) { py_Classes ( result , this ) }
287287
288+ /** Gets the type parameters of this class definition. */
289+ TypeParameterList getTypeParameters ( ) { py_type_parameter_lists ( result , this ) }
290+
291+ /** Gets the nth type parameter of this class definition. */
292+ TypeParameter getTypeParameter ( int index ) { result = this .getTypeParameters ( ) .getItem ( index ) }
293+
294+ /** Gets a type parameter of this class definition. */
295+ TypeParameter getATypeParameter ( ) { result = this .getTypeParameters ( ) .getAnItem ( ) }
296+
288297 override string toString ( ) { result = "ClassExpr" }
289298}
290299
@@ -554,6 +563,15 @@ class Function_ extends @py_Function {
554563 /** Whether the async property of this function is true. */
555564 predicate isAsync ( ) { py_bools ( this , 6 ) }
556565
566+ /** Gets the type parameters of this function. */
567+ TypeParameterList getTypeParameters ( ) { py_type_parameter_lists ( result , this ) }
568+
569+ /** Gets the nth type parameter of this function. */
570+ TypeParameter getTypeParameter ( int index ) { result = this .getTypeParameters ( ) .getItem ( index ) }
571+
572+ /** Gets a type parameter of this function. */
573+ TypeParameter getATypeParameter ( ) { result = this .getTypeParameters ( ) .getAnItem ( ) }
574+
557575 /** Gets a parent of this function */
558576 FunctionParent getParent ( ) { py_Functions ( this , result ) }
559577
@@ -1103,6 +1121,14 @@ class Param_ extends @py_Param, ExprContext {
11031121 override string toString ( ) { result = "Param" }
11041122}
11051123
1124+ /** INTERNAL: See the class `ParamSpec` for further information. */
1125+ class ParamSpec_ extends @py_ParamSpec, TypeParameter {
1126+ /** Gets the name of this parameter spec. */
1127+ Expr getName ( ) { py_exprs ( result , _, this , 1 ) }
1128+
1129+ override string toString ( ) { result = "ParamSpec" }
1130+ }
1131+
11061132/** INTERNAL: See the class `Pass` for further information. */
11071133class Pass_ extends @py_Pass, Stmt {
11081134 override string toString ( ) { result = "Pass" }
@@ -1412,6 +1438,45 @@ class Tuple_ extends @py_Tuple, Expr {
14121438 override string toString ( ) { result = "Tuple" }
14131439}
14141440
1441+ /** INTERNAL: See the class `TypeAlias` for further information. */
1442+ class TypeAlias_ extends @py_TypeAlias, Stmt {
1443+ /** Gets the name of this type alias. */
1444+ Expr getName ( ) { py_exprs ( result , _, this , 1 ) }
1445+
1446+ /** Gets the type_parameters of this type alias. */
1447+ TypeParameterList getTypeParameters ( ) { py_type_parameter_lists ( result , this ) }
1448+
1449+ /** Gets the nth type_parameter of this type alias. */
1450+ TypeParameter getTypeParameter ( int index ) { result = this .getTypeParameters ( ) .getItem ( index ) }
1451+
1452+ /** Gets a type_parameter of this type alias. */
1453+ TypeParameter getATypeParameter ( ) { result = this .getTypeParameters ( ) .getAnItem ( ) }
1454+
1455+ /** Gets the value of this type alias. */
1456+ Expr getValue ( ) { py_exprs ( result , _, this , 3 ) }
1457+
1458+ override string toString ( ) { result = "TypeAlias" }
1459+ }
1460+
1461+ /** INTERNAL: See the class `TypeVar` for further information. */
1462+ class TypeVar_ extends @py_TypeVar, TypeParameter {
1463+ /** Gets the name of this type variable. */
1464+ Expr getName ( ) { py_exprs ( result , _, this , 1 ) }
1465+
1466+ /** Gets the bound of this type variable. */
1467+ Expr getBound ( ) { py_exprs ( result , _, this , 2 ) }
1468+
1469+ override string toString ( ) { result = "TypeVar" }
1470+ }
1471+
1472+ /** INTERNAL: See the class `TypeVarTuple` for further information. */
1473+ class TypeVarTuple_ extends @py_TypeVarTuple, TypeParameter {
1474+ /** Gets the name of this type variable tuple. */
1475+ Expr getName ( ) { py_exprs ( result , _, this , 1 ) }
1476+
1477+ override string toString ( ) { result = "TypeVarTuple" }
1478+ }
1479+
14151480/** INTERNAL: See the class `UAdd` for further information. */
14161481class UAdd_ extends @py_UAdd, Unaryop {
14171482 override string toString ( ) { result = "UAdd" }
@@ -1908,6 +1973,39 @@ class StrParent_ extends @py_str_parent {
19081973 string toString ( ) { result = "StrParent" }
19091974}
19101975
1976+ /** INTERNAL: See the class `TypeParameter` for further information. */
1977+ class TypeParameter_ extends @py_type_parameter {
1978+ /** Gets the location of this type parameter. */
1979+ Location getLocation ( ) { py_locations ( result , this ) }
1980+
1981+ /** Gets a parent of this type parameter */
1982+ TypeParameterList getParent ( ) { py_type_parameters ( this , _, result , _) }
1983+
1984+ /** Gets a textual representation of this element. */
1985+ string toString ( ) { result = "TypeParameter" }
1986+ }
1987+
1988+ /** INTERNAL: See the class `TypeParameterList` for further information. */
1989+ class TypeParameterList_ extends @py_type_parameter_list {
1990+ /** Gets a parent of this type parameter list */
1991+ TypeParameterListParent getParent ( ) { py_type_parameter_lists ( this , result ) }
1992+
1993+ /** Gets an item of this type parameter list */
1994+ TypeParameter getAnItem ( ) { py_type_parameters ( result , _, this , _) }
1995+
1996+ /** Gets the nth item of this type parameter list */
1997+ TypeParameter getItem ( int index ) { py_type_parameters ( result , _, this , index ) }
1998+
1999+ /** Gets a textual representation of this element. */
2000+ string toString ( ) { result = "TypeParameterList" }
2001+ }
2002+
2003+ /** INTERNAL: See the class `TypeParameterListParent` for further information. */
2004+ class TypeParameterListParent_ extends @py_type_parameter_list_parent {
2005+ /** Gets a textual representation of this element. */
2006+ string toString ( ) { result = "TypeParameterListParent" }
2007+ }
2008+
19112009/** INTERNAL: See the class `Unaryop` for further information. */
19122010class Unaryop_ extends @py_unaryop {
19132011 /** Gets a parent of this unary operation */
0 commit comments