mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Python: Add aiohttp.ClientSession model
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
f5bed2d955
commit
947aa099e0
@@ -16,6 +16,7 @@ private import semmle.python.frameworks.Stdlib
|
||||
private import semmle.python.frameworks.Requests
|
||||
private import semmle.python.frameworks.Starlette
|
||||
private import semmle.python.frameworks.ClickhouseDriver
|
||||
private import semmle.python.frameworks.Aiohttp
|
||||
import semmle.python.frameworks.data.internal.ApiGraphModelsExtensions as Extensions
|
||||
|
||||
class FlaskViewClasses extends FindSubclassesSpec {
|
||||
@@ -241,6 +242,14 @@ class ClickhouseClient extends FindSubclassesSpec {
|
||||
override API::Node getAlreadyModeledClass() { result = ClickhouseDriver::Client::subclassRef() }
|
||||
}
|
||||
|
||||
class AiohttpSession extends FindSubclassesSpec {
|
||||
AiohttpSession() { this = "aiohttp.ClientSession~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() {
|
||||
result = AiohttpClientModel::ClientSession::classRef()
|
||||
}
|
||||
}
|
||||
|
||||
bindingset[fullyQualified]
|
||||
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
|
||||
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |
|
||||
|
||||
Reference in New Issue
Block a user