PY-57582 dataclasses: field with default value preceding KW_ONLY shows false-positive warning

- support marker field typed with KW_ONLY
- adjust other inspection message

GitOrigin-RevId: 28f30ffcc3400bc719c63eacd76e432a547a1a9c
This commit is contained in:
Marcus Mews
2025-09-26 07:22:47 +00:00
committed by intellij-monorepo-bot
parent 041ec1f6e2
commit eb3eeb0fca
12 changed files with 99 additions and 44 deletions
@@ -523,6 +523,10 @@ INSP.GROUP.python=Python
INSP.abstract.class.set.as.metaclass=Set ''{0}'' as metaclass
INSP.abstract.class.add.to.superclasses=Add ''{0}'' to superclasses
INSP.named.tuple=Invalid definition of 'typing.NamedTuple'
INSP.named.tuple.default.value.order.local=Fields with a default value must come after any fields without a default.
INSP.named.tuple.default.value.order.superclass=Non-default argument(s) follows default argument(s) defined in {0}
INSP.named.tuple.default.value.order.inherited=Inherited non-default argument(s) defined in {0} follows inherited default argument defined in {1}
INSP.shadows.name.from.outer.scope=Shadows name ''{0}'' from outer scope
INSP.trailing.semicolon=Trailing semicolon in the statement
INSP.protected.member.ignore.annotations=Ignore annotations