Skip to content

Commit 7e7c363

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent 3fa6651 commit 7e7c363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/frameworks/FastApi.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private module FastApi {
117117
*/
118118
private API::Node getModeledResponseClass(string name) {
119119
name = "Response" and
120-
result = API::moduleImport("fastapi").getMember("Response")
120+
result = API::moduleImport("fastapi").getMember(name)
121121
or
122122
// see https://github.com/tiangolo/fastapi/blob/master/fastapi/responses.py
123123
name in [

0 commit comments

Comments
 (0)