mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Python: Fix documentation for Function.isInitMethod
This commit is contained in:
@@ -41,7 +41,7 @@ class Function extends Function_, Scope, AstNode {
|
||||
exists(YieldFrom y | y.getScope() = this)
|
||||
}
|
||||
|
||||
/** Whether this function is declared in a class and is named "__init__" */
|
||||
/** Whether this function is declared in a class and is named `__init__` */
|
||||
predicate isInitMethod() {
|
||||
this.isMethod() and this.getName() = "__init__"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user