Skip to content

Commit 182a192

Browse files
committed
Python: Regenerate dbscheme/AST
1 parent 36d8974 commit 182a192

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

python/ql/lib/semmle/python/AstGenerated.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,9 @@ class ParamSpec_ extends @py_ParamSpec, TypeParameter {
11261126
/** Gets the name of this parameter spec. */
11271127
Expr getName() { py_exprs(result, _, this, 1) }
11281128

1129+
/** Gets the default of this parameter spec. */
1130+
Expr getDefault() { py_exprs(result, _, this, 2) }
1131+
11291132
override string toString() { result = "ParamSpec" }
11301133
}
11311134

@@ -1466,6 +1469,9 @@ class TypeVar_ extends @py_TypeVar, TypeParameter {
14661469
/** Gets the bound of this type variable. */
14671470
Expr getBound() { py_exprs(result, _, this, 2) }
14681471

1472+
/** Gets the default of this type variable. */
1473+
Expr getDefault() { py_exprs(result, _, this, 3) }
1474+
14691475
override string toString() { result = "TypeVar" }
14701476
}
14711477

@@ -1474,6 +1480,9 @@ class TypeVarTuple_ extends @py_TypeVarTuple, TypeParameter {
14741480
/** Gets the name of this type variable tuple. */
14751481
Expr getName() { py_exprs(result, _, this, 1) }
14761482

1483+
/** Gets the default of this type variable tuple. */
1484+
Expr getDefault() { py_exprs(result, _, this, 2) }
1485+
14771486
override string toString() { result = "TypeVarTuple" }
14781487
}
14791488

python/ql/lib/semmlecode.python.dbscheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ py_extracted_version(int module : @py_Module ref,
617617

618618
/* <Field> ParamSpec.location = 0, location */
619619
/* <Field> ParamSpec.name = 1, expr */
620+
/* <Field> ParamSpec.default = 2, expr */
620621

621622
/* <Field> Pass.location = 0, location */
622623

@@ -715,9 +716,11 @@ py_extracted_version(int module : @py_Module ref,
715716
/* <Field> TypeVar.location = 0, location */
716717
/* <Field> TypeVar.name = 1, expr */
717718
/* <Field> TypeVar.bound = 2, expr */
719+
/* <Field> TypeVar.default = 3, expr */
718720

719721
/* <Field> TypeVarTuple.location = 0, location */
720722
/* <Field> TypeVarTuple.name = 1, expr */
723+
/* <Field> TypeVarTuple.default = 2, expr */
721724

722725
/* <Field> UnaryExpr.location = 0, location */
723726
/* <Field> UnaryExpr.parenthesised = 1, bool */

0 commit comments

Comments
 (0)