File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
python/ql/lib/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -469,14 +469,15 @@ module AiohttpWebModel {
469
469
}
470
470
471
471
/**
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.
475
475
*/
476
- class AiohttpHeuristicRequestHandlerRequestParam extends Request:: InstanceSource ,
476
+ class AiohttpRequestParamFromTypeAnnotation extends Request:: InstanceSource ,
477
477
DataFlow:: ParameterNode , RemoteFlowSource:: Range
478
478
{
479
- AiohttpHeuristicRequestHandlerRequestParam ( ) {
479
+ AiohttpRequestParamFromTypeAnnotation ( ) {
480
+ not this instanceof AiohttpRequestHandlerRequestParam and
480
481
this .getParameter ( ) .getAnnotation ( ) =
481
482
API:: moduleImport ( "aiohttp" )
482
483
.getMember ( "web" )
You can’t perform that action at this time.
0 commit comments