Skip to content

Commit

Permalink
Released 2.7.0
Browse files Browse the repository at this point in the history
* Allowed to enforce invariants on attribute setting (#292)

  Originally, we had enforced invariants only at calls to "normal"
  methods, and excluded ``__setattr__`` since it is usually too
  expensive to verify invariants whenever setting an attribute.

  However, there are use cases where the users prefer to incur to
  computational overhead for correctness. To that end, we introduced the
  feature to steer when the invariants are enforced (at method calls,
  on setting attributes, or in both situations).
  • Loading branch information
mristin committed Sep 17, 2024
1 parent 4c0daf9 commit 2681d25
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
2.7.0
=====
* Allowed to enforce invariants on attribute setting (#292)

Originally, we had enforced invariants only at calls to "normal"
methods, and excluded ``__setattr__`` since it is usually too expensive
to verify invariants whenever setting an attribute.

However, there are use cases where the users prefer to incur to
computational overhead for correctness. To that end, we introduced the
feature to steer when the invariants are enforced (at method calls,
on setting attributes, or in both situations).

2.6.6
=====
* Updated typeguard and deal to latest versions (#284)
Expand Down
2 changes: 1 addition & 1 deletion icontract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# imports in setup.py.

# Don't forget to update the version in __init__.py and CHANGELOG.rst!
__version__ = "2.6.6"
__version__ = "2.7.0"
__author__ = "Marko Ristin"
__copyright__ = "Copyright 2019 Parquery AG"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
setup(
name="icontract",
# Don't forget to update the version in __init__.py and CHANGELOG.rst!
version="2.6.6",
version="2.7.0",
description="Provide design-by-contract with informative violation messages.",
long_description=long_description,
url="https://github.com/Parquery/icontract",
Expand Down

0 comments on commit 2681d25

Please sign in to comment.