mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix processing empty parameters (EA-124905)
This commit is contained in:
@@ -510,7 +510,8 @@ class PyDataclassInspection : PyInspection() {
|
||||
ProblemHighlightType.LIKE_UNUSED_SYMBOL)
|
||||
}
|
||||
|
||||
val parameters = ContainerUtil.subList(postInit.getParameters(myTypeEvalContext), 1)
|
||||
val implicitParameters = postInit.getParameters(myTypeEvalContext)
|
||||
val parameters = if (implicitParameters.isEmpty()) emptyList<PyCallableParameter>() else ContainerUtil.subList(implicitParameters, 1)
|
||||
val message = "'$DUNDER_POST_INIT' should take all init-only variables in the same order as they are defined"
|
||||
|
||||
if (parameters.size != initVars.size) {
|
||||
|
||||
Reference in New Issue
Block a user