Python: Enable auto-model BaseHttpRequestHandler

This commit is contained in:
Rasmus Wriedt Larsen
2023-09-18 13:48:24 +02:00
parent ba19f95d3e
commit af6c5ccead
2 changed files with 12 additions and 1 deletions

View File

@@ -75,6 +75,14 @@ class WSGIServer extends FindSubclassesSpec {
}
}
class StdlibBaseHttpRequestHandler extends FindSubclassesSpec {
StdlibBaseHttpRequestHandler() { this = "http.server.BaseHTTPRequestHandler~Subclass" }
override API::Node getAlreadyModeledClass() {
result = StdlibPrivate::BaseHttpRequestHandler::subclassRef()
}
}
bindingset[fullyQualified]
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |