Skip to content

v7.11.1

Choose a tag to compare

@ArmenSl ArmenSl released this 06 Jul 12:26
9a8044c

Patch release: honest Multiplicity.max typing and idiomatic empty-list literals. A metamodel type-hint and lint cleanup with no behavioural change — it only aligns the declared types with existing runtime behaviour.

Highlights

  • Honest Multiplicity.max input typing: the Multiplicity constructor and max setter now declare int | Literal["*"] instead of plain int. "*" has always been accepted and normalized to UNLIMITED_MAX_MULTIPLICITY at runtime, but the old signature claimed int, so callers — and static type checkers — passing "*" saw a false type error. The getter stays int, since a normalized value is always returned.
  • Idiomatic empty lists: Method parameter / precondition / postcondition initialization uses the [] literal instead of list() (SonarQube python:S7498).

No runtime behaviour changes, and no metamodel or API contract changes.

Thanks to @ichxorya for the contribution (#564).