Skip to content

Commit 9a42f2f

Browse files
committed
Python: Add missing QLdoc for FlaskMethodViewClass
1 parent bb2613b commit 9a42f2f

File tree

1 file changed

+8
-1
lines changed
  • python/ql/src/semmle/python/frameworks

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ module Flask {
171171
// ---------------------------------------------------------------------------
172172
// routing modeling
173173
// ---------------------------------------------------------------------------
174-
/** A flask View class defined in project code. */
174+
/**
175+
* A class that is a subclass of the `flask.views.View` class,
176+
* thereby being able to handle incoming HTTP requests.
177+
*/
175178
class FlaskViewClass extends Class {
176179
API::Node api_node;
177180

@@ -195,6 +198,10 @@ module Flask {
195198
API::Node asViewResult() { result = api_node.getMember("as_view").getReturn() }
196199
}
197200

201+
/**
202+
* A class that is a subclass of the `flask.views.MethodView` class.
203+
* thereby being able to handle incoming HTTP requests.
204+
*/
198205
class FlaskMethodViewClass extends FlaskViewClass {
199206
FlaskMethodViewClass() {
200207
this.getABase() = Views::MethodView::subclassRef().getAUse().asExpr() and

0 commit comments

Comments
 (0)