Skip to content

Commit 2db06f9

Browse files
author
Mark Shannon
authored
Merge pull request #1282 from taus-semmle/python-various-dist-compare-fixes
Python: Add missing `override` annotations.
2 parents 3231b60 + c8cbae3 commit 2db06f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/ql/src/Variables/Undefined.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private predicate maybe_call_to_exiting_function(CallNode call) {
127127
/** Prune edges where the predecessor block looks like it might contain a call to an exit function. */
128128
class ExitFunctionGuardedEdge extends DataFlowExtension::DataFlowVariable {
129129

130-
predicate prunedSuccessor(EssaVariable succ) {
130+
override predicate prunedSuccessor(EssaVariable succ) {
131131
exists(CallNode exit_call |
132132
succ.(PhiFunction).getInput(exit_call.getBasicBlock()) = this and
133133
maybe_call_to_exiting_function(exit_call)

python/ql/src/semmle/python/security/SensitiveData.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ class SensitiveDataSource extends TaintSource {
9191
this.(ControlFlowNode).getNode() instanceof SensitiveExpr
9292
}
9393

94-
string toString() {
94+
override string toString() {
9595
result = "sensitive.data.source"
9696
}
9797

98-
predicate isSourceOf(TaintKind kind) {
98+
override predicate isSourceOf(TaintKind kind) {
9999
kind instanceof SensitiveData
100100
}
101101

0 commit comments

Comments
 (0)