Skip to content

Commit af131f8

Browse files
committed
release: v7.11.1 — honest Multiplicity.max typing + idiomatic empty lists
- Bump setup.cfg 7.11.0 -> 7.11.1 and add v7.11.1 release notes. - Backend: Multiplicity.max input typing (int | Literal["*"]) and list() -> [] in Method init/pre/post (#564, thanks @ichxorya). No runtime change.
1 parent 861abee commit af131f8

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

docs/source/releases/v7.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Version 7
44
.. toctree::
55
:maxdepth: 1
66

7+
v7/v7.11.1
78
v7/v7.11.0
89
v7/v7.10.0
910
v7/v7.9.1
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Version 7.11.1
2+
===============
3+
4+
Patch release: **honest** ``Multiplicity.max`` **typing and idiomatic empty-list
5+
literals**. A metamodel type-hint and lint cleanup with no behavioural change —
6+
it only aligns the declared types with existing runtime behaviour.
7+
8+
Highlights
9+
----------
10+
11+
- **Honest** ``Multiplicity.max`` **input typing**: the ``Multiplicity``
12+
constructor and ``max`` setter now declare ``int | Literal["*"]`` instead of
13+
plain ``int``. ``"*"`` has always been accepted and normalised to
14+
``UNLIMITED_MAX_MULTIPLICITY`` at runtime, but the old signature claimed
15+
``int``, so callers — and static type checkers — passing ``"*"`` saw a false
16+
type error. The getter stays ``int``, since a normalised value is always
17+
returned. Docstrings were updated to match.
18+
- **Idiomatic empty lists**: ``Method`` parameter / precondition / postcondition
19+
initialisation uses the ``[]`` literal instead of ``list()`` (SonarQube rule
20+
``python:S7498``).
21+
22+
No runtime behaviour changes, and no metamodel or API contract changes.
23+
24+
Thanks to `@ichxorya <https://github.com/ichxorya>`_ for the contribution
25+
(`#564 <https://github.com/BESSER-PEARL/BESSER/pull/564>`_).

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = besser
3-
version = 7.11.0
3+
version = 7.11.1
44
author = Luxembourg Institute of Science and Technology
55
description = BESSER
66
long_description = file: README.md

0 commit comments

Comments
 (0)