Movatterモバイル変換


[0]ホーム

URL:


CodeQL documentation
CodeQL resources

Wrong name for an argument in a call

ID: py/call/wrong-named-argumentKind: problemSecurity severity: Severity: errorPrecision: very-highTags:   - quality   - reliability   - correctness   - external/cwe/cwe-628Query suites:   - python-security-and-quality.qls

Click to see the query in the CodeQL repository

Using a named argument whose name does not correspond to a parameter of the called function (or method), will result in aTypeError at runtime.

Recommendation

Check for typos in the name of the arguments and fix those. If the name is clearly different, then this suggests a logical error. The change required to correct the error will depend on whether the wrong argument has been specified or whether the wrong function (or method) has been specified.

References


[8]ページ先頭

©2009-2025 Movatter.jp