Skip to content

Commit 0db535b

Browse files
committed
Python: Minor naming update
1 parent 991d5cc commit 0db535b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,15 @@ module AiohttpWebModel {
469469
}
470470

471471
/**
472-
* An heuristic source that considers a method parameter with a type hint of `aiohttp.web.Request`
473-
* as a parameter that will receive an `aiohttp.web.Request` instance when a request
474-
* handler is invoked.
472+
* A parameter that has a type annotation of `aiohttp.web.Request`, so with all
473+
* likelihood will receive an `aiohttp.web.Request` instance at some point when a
474+
* request handler is invoked.
475475
*/
476-
class AiohttpHeuristicRequestHandlerRequestParam extends Request::InstanceSource,
476+
class AiohttpRequestParamFromTypeAnnotation extends Request::InstanceSource,
477477
DataFlow::ParameterNode, RemoteFlowSource::Range
478478
{
479-
AiohttpHeuristicRequestHandlerRequestParam() {
479+
AiohttpRequestParamFromTypeAnnotation() {
480+
not this instanceof AiohttpRequestHandlerRequestParam and
480481
this.getParameter().getAnnotation() =
481482
API::moduleImport("aiohttp")
482483
.getMember("web")

0 commit comments

Comments
 (0)