File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
python/ql/src/semmle/python Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,8 @@ class Parameter extends Parameter_ {
258
258
/** An expression that generates a callable object, either a function expression or a lambda */
259
259
abstract class CallableExpr extends Expr {
260
260
/**
261
- * Gets the parameters of this callable.
261
+ * Gets The default values and annotations (type-hints) for the arguments of this callable.
262
+ *
262
263
* This predicate is called getArgs(), rather than getParameters() for compatibility with Python's AST module.
263
264
*/
264
265
abstract Arguments getArgs ( ) ;
@@ -314,7 +315,12 @@ class Lambda extends Lambda_, CallableExpr {
314
315
override Arguments getArgs ( ) { result = Lambda_ .super .getArgs ( ) }
315
316
}
316
317
317
- /** The arguments in a function definition */
318
+ /**
319
+ * The default values and annotations (type hints) for the arguments in a function definition.
320
+ *
321
+ * Annotations (PEP 3107) is a general mechanism for providing annotations for a function,
322
+ * that is generally only used for type hints today (PEP 484).
323
+ */
318
324
class Arguments extends Arguments_ {
319
325
Expr getASubExpression ( ) {
320
326
result = this .getAKwDefault ( ) or
You can’t perform that action at this time.
0 commit comments