Version 7.11.1¶
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.maxinput typing: theMultiplicityconstructor andmaxsetter now declareint | Literal["*"]instead of plainint."*"has always been accepted and normalised toUNLIMITED_MAX_MULTIPLICITYat runtime, but the old signature claimedint, so callers — and static type checkers — passing"*"saw a false type error. The getter staysint, since a normalised value is always returned. Docstrings were updated to match.Idiomatic empty lists:
Methodparameter / precondition / postcondition initialisation uses the[]literal instead oflist()(SonarQube rulepython:S7498).
No runtime behaviour changes, and no metamodel or API contract changes.