@@ -345,11 +345,11 @@ abstract class DataFlowFunction extends DataFlowCallable, TFunction {
345
345
)
346
346
or
347
347
// `**kwargs`
348
- // since dataflow library has restriction that we can only have ONE result per
348
+ // since the dataflow library has the restriction that we can only have ONE result per
349
349
// parameter position, if there is both a synthetic **kwargs and a real **kwargs
350
350
// parameter, we only give the result for the synthetic, and add local flow from the
351
351
// synthetic to the real. It might seem more natural to do it in the other
352
- // direction, but since we have a clearStep on the real **kwargs parameter, we that
352
+ // direction, but since we have a clearStep on the real **kwargs parameter, we would have that
353
353
// content-clearing would also affect the synthetic parameter, which we don't want.
354
354
ppos .isDictSplat ( ) and
355
355
if exists ( func .getArgByName ( _) )
@@ -1193,7 +1193,7 @@ predicate getCallArg(CallNode call, Function target, CallType type, Node arg, Ar
1193
1193
type instanceof CallTypeNormalMethod and
1194
1194
apos .isSelf ( ) and
1195
1195
resolveMethodCall ( call , target , type , arg ) and
1196
- // dataflow lib has requirement that arguments and calls are in same enclosing
1196
+ // the dataflow library has a requirement that arguments and calls are in same enclosing
1197
1197
// callable. This requirement would be broken if we used `my_obj` as the self
1198
1198
// argument in the `f()` call in the example below:
1199
1199
// ```py
@@ -1206,7 +1206,7 @@ predicate getCallArg(CallNode call, Function target, CallType type, Node arg, Ar
1206
1206
cfgNode .getEnclosingCallable ( ) = arg .getEnclosingCallable ( )
1207
1207
)
1208
1208
or
1209
- // cls argument for classmethod calls -- see ntoe above about bound methods
1209
+ // cls argument for classmethod calls -- see note above about bound methods
1210
1210
type instanceof CallTypeClassMethod and
1211
1211
apos .isSelf ( ) and
1212
1212
resolveMethodCall ( call , target , type , arg ) and
0 commit comments