Skip to content

Commit bb2613b

Browse files
committed
Python: Flask model now ready to be publicly exposed
With a single call-out for a member-predicate that is only for internal use.
1 parent 35876f1 commit bb2613b

File tree

1 file changed

+5
-2
lines changed
  • python/ql/src/semmle/python/frameworks

1 file changed

+5
-2
lines changed

python/ql/src/semmle/python/frameworks/Flask.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private import semmle.python.ApiGraphs
1515
* Provides models for the `flask` PyPI package.
1616
* See https://flask.palletsprojects.com/en/1.1.x/.
1717
*/
18-
private module FlaskModel {
18+
module Flask {
1919
/** Provides models for flask view classes (defined in the `flask.views` module) */
2020
module Views {
2121
/**
@@ -188,7 +188,10 @@ private module FlaskModel {
188188
result.getName() = "dispatch_request"
189189
}
190190

191-
/** Gets a reference to the result of calling the `as_view` classmethod of this class. */
191+
/**
192+
* INTERNAL: Do not use.
193+
* Gets a reference to the result of calling the `as_view` classmethod of this class.
194+
*/
192195
API::Node asViewResult() { result = api_node.getMember("as_view").getReturn() }
193196
}
194197

0 commit comments

Comments
 (0)