Skip to content

Commit 6d4e993

Browse files
committed
Python: remove named parameter filename
1 parent aa4fd19 commit 6d4e993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/codeql/codeql-language-guides/customizing-library-models-for-python.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Note that this source is already known by the CodeQL Python analysis, but for th
167167
data:
168168
- [
169169
"django.db.models.FileField!",
170-
"Call.Argument[0,upload_to:].Parameter[1,filenam:]",
170+
"Call.Argument[0,upload_to:].Parameter[1]",
171171
"remote",
172172
]
173173
@@ -180,7 +180,7 @@ Note that this source is already known by the CodeQL Python analysis, but for th
180180

181181
- **Call** selects calls to the class. That is, constructor calls.
182182
- **Argument[0,upload_to:]** selects the first positional argument, or the named argument named **upload_to**. Note that the colon at the end of the argument name indicates that we are looking for a named argument.
183-
- **Parameter[1,filename:]** selects parameters of the callback function. We provide two parameters to search for, namely the second positional parameter and the named parameter **filename**.
183+
- **Parameter[1]** selects the second parameter of the callback function, which is the parameter receiving the filename.
184184

185185
- Finally, the kind **remote** indicates that this is considered a source of remote flow.
186186

0 commit comments

Comments
 (0)