mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
PY-62301 Not highlight Self in __new__ method
GitOrigin-RevId: 099d4ca6f34b30e757ad030f418c9db827a71abe
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c15b293135
commit
2854de57c0
@@ -219,7 +219,7 @@ class PyTypeHintsInspection : PyInspection() {
|
||||
|
||||
val functionParent = PsiTreeUtil.getParentOfType(node, PyFunction::class.java)
|
||||
if (functionParent != null) {
|
||||
if (PyAstFunction.Modifier.STATICMETHOD == functionParent.modifier) {
|
||||
if (PyAstFunction.Modifier.STATICMETHOD == functionParent.modifier && PyNames.NEW != functionParent.name) {
|
||||
registerProblemForSelves(PyPsiBundle.message("INSP.type.hints.self.use.in.staticmethod"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user