Skip to content

Commit 94e4bd8

Browse files
authored
Merge pull request #1063 from taus-semmle/python-fix-compilation-warnings
Python: Fix compilation warnings.
2 parents 77185f1 + a74a206 commit 94e4bd8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/ql/src/semmle/python/Exprs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class Dict extends Dict_ {
502502
result = this.getAValue() or result = this.getAKey()
503503
}
504504

505-
AstNode getAChildNode() {
505+
override AstNode getAChildNode() {
506506
result = this.getAnItem()
507507
}
508508

python/ql/src/semmle/python/pointsto/PointsTo.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ module PointsTo {
16251625
context.isRuntime() and
16261626
exists(ControlFlowNode param |
16271627
param = def.getDefiningNode() |
1628-
varargs_points_to(param, cls) and value = theEmptyTupleObject() and origin = param
1628+
varargs_points_to(param, cls) and value = TupleObject::empty() and origin = param
16291629
or
16301630
varargs_points_to(param, cls) and value = param and origin = param
16311631
or

python/ql/src/semmle/python/types/ClassObject.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class ClassObject extends Object {
385385
result.getFunction().refersTo(this)
386386
}
387387

388-
predicate notClass() {
388+
override predicate notClass() {
389389
none()
390390
}
391391

python/ql/src/semmle/python/types/Object.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Object extends @py_object {
130130
or
131131
this = theFalseObject() and result = false
132132
or
133-
this = theEmptyTupleObject() and result = false
133+
this = TupleObject::empty() and result = false
134134
or
135135
exists(Tuple t | t = this.getOrigin() |
136136
exists(t.getAnElt()) and result = true

0 commit comments

Comments
 (0)