We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b9120 commit c52e453Copy full SHA for c52e453
python/ql/lib/semmle/python/frameworks/FastApi.qll
@@ -161,9 +161,8 @@ private module FastApi {
161
or
162
// user-defined subclasses
163
exists(Class cls, API::Node base |
164
+ base = getModeledResponseClass(_).getASubclass*() and
165
cls.getABase() = base.getAUse().asExpr() and
- // since we _know_ that the base has an API Node, that means there is a subclass
166
- // edge leading to the `ClassExpr` for the class.
167
responseClass.getAnImmediateUse().asExpr().(ClassExpr) = cls.getParent()
168
|
169
exists(Assign assign | assign = cls.getAStmt() |
0 commit comments