mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
PY-49946 fix: correct handling of KW_ONLY marker in dataclasses fields order check
GitOrigin-RevId: e57fb14748a631069169b6a121530053c6c604a6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
712eebd082
commit
6170b77faf
@@ -143,7 +143,10 @@ class PyNamedTupleInspection : PyInspection() {
|
||||
if (isDataclass && isKwOnlyMarker(element, context)) {
|
||||
kwOnlyMarkerVisited = true
|
||||
}
|
||||
else if (hasAssignedValue(element) || kwOnlyMarkerVisited) {
|
||||
else if (kwOnlyMarkerVisited) {
|
||||
return true
|
||||
}
|
||||
else if (hasAssignedValue(element)) {
|
||||
fieldsWithDefaultValue.add(element)
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user