mirror of
https://github.com/github/codeql.git
synced 2026-05-11 09:49:26 +02:00
Python: Support flask.blueprints.Blueprint
Thanks to @haby0 who originally proposed this as part of https://github.com/github/codeql/pull/6977
This commit is contained in:
@@ -73,7 +73,11 @@ module Flask {
|
||||
*/
|
||||
module Blueprint {
|
||||
/** Gets a reference to the `flask.Blueprint` class. */
|
||||
API::Node classRef() { result = API::moduleImport("flask").getMember("Blueprint") }
|
||||
API::Node classRef() {
|
||||
result = API::moduleImport("flask").getMember("Blueprint")
|
||||
or
|
||||
result = API::moduleImport("flask").getMember("blueprints").getMember("Blueprint")
|
||||
}
|
||||
|
||||
/** Gets a reference to an instance of `flask.Blueprint`. */
|
||||
API::Node instance() { result = classRef().getReturn() }
|
||||
|
||||
Reference in New Issue
Block a user