Python: Fix documentation for Function.isInitMethod

This commit is contained in:
Rasmus Wriedt Larsen
2019-09-18 17:15:18 +02:00
parent 7a57a3c743
commit f0479687d8

View File

@@ -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__"
}