mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Flask model now ready to be publicly exposed
With a single call-out for a member-predicate that is only for internal use.
This commit is contained in:
@@ -15,7 +15,7 @@ private import semmle.python.ApiGraphs
|
||||
* Provides models for the `flask` PyPI package.
|
||||
* See https://flask.palletsprojects.com/en/1.1.x/.
|
||||
*/
|
||||
private module FlaskModel {
|
||||
module Flask {
|
||||
/** Provides models for flask view classes (defined in the `flask.views` module) */
|
||||
module Views {
|
||||
/**
|
||||
@@ -188,7 +188,10 @@ private module FlaskModel {
|
||||
result.getName() = "dispatch_request"
|
||||
}
|
||||
|
||||
/** Gets a reference to the result of calling the `as_view` classmethod of this class. */
|
||||
/**
|
||||
* INTERNAL: Do not use.
|
||||
* Gets a reference to the result of calling the `as_view` classmethod of this class.
|
||||
*/
|
||||
API::Node asViewResult() { result = api_node.getMember("as_view").getReturn() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user