Skip to content

Commit deadc55

Browse files
authored
Release 2.7.2 (#310)
* Fix child invariants checked in ``super().__init__`` (#301) * Support Python 3.13 (#309) * Add support for Python 3.12 (#308) This is a critical bugfix patch version. Previously, we determined the invariants based on the ``self`` passed to the function. However, in case of ``super().__init__``, the invariants that need to be checked after the call are those belonging to to the super class, not the current (child) class. This lead to erroneous invariant checks, where the invariants of the child class where checked after the super-init call in the parent class.
1 parent 44fbab4 commit deadc55

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2.7.2
2+
=====
3+
* Fix child invariants checked in ``super().__init__`` (#301)
4+
* Support Python 3.13 (#309)
5+
* Add support for Python 3.12 (#308)
6+
7+
This is a critical bugfix patch version. Previously, we determined
8+
the invariants based on the ``self`` passed to the function. However,
9+
in case of ``super().__init__``, the invariants that need to be checked
10+
after the call are those belonging to to the super class, not
11+
the current (child) class. This lead to erroneous invariant checks, where
12+
the invariants of the child class where checked after the super-init call
13+
in the parent class.
14+
115
2.7.1
216
=====
317
* Fixed invariants leak between related classes (#297)

icontract/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# imports in setup.py.
99

1010
# Don't forget to update the version in __init__.py and CHANGELOG.rst!
11-
__version__ = "2.7.1"
11+
__version__ = "2.7.2"
1212
__author__ = "Marko Ristin"
1313
__copyright__ = "Copyright 2019 Parquery AG"
1414
__license__ = "MIT"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
setup(
2727
name="icontract",
2828
# Don't forget to update the version in __init__.py and CHANGELOG.rst!
29-
version="2.7.1",
29+
version="2.7.2",
3030
description="Provide design-by-contract with informative violation messages.",
3131
long_description=long_description,
3232
url="https://github.com/Parquery/icontract",

0 commit comments

Comments
 (0)