Python: Fix broken queries

This commit is contained in:
Taus
2025-12-05 13:48:28 +00:00
parent fd7b123ee3
commit 51ebec9164
3 changed files with 12 additions and 9 deletions

View File

@@ -59,7 +59,9 @@ predicate ok_to_fail(ImportExpr ie) {
os_specific_import(ie) != get_os()
}
class VersionTest extends ControlFlowNode {
final class FinalControlFlowNode = ControlFlowNode;
class VersionTest extends FinalControlFlowNode {
VersionTest() {
exists(string name |
name.matches("%version%") and
@@ -70,7 +72,7 @@ class VersionTest extends ControlFlowNode {
)
}
override string toString() { result = "VersionTest" }
string toString() { result = "VersionTest" }
}
/** A guard on the version of the Python interpreter */