Icontract

Latest version: v2.7.1

Safety actively analyzes 714973 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 11

2.3.0

=====
* Disabled recursion in the contracts
* Upgraded min version of asttokens to 2

2.2.0

=====
* Made compatible with Python 3.8

2.1.0

=====
* Made snapshot accept multiple arguments

2.0.7

=====
* Fixed mypy complaints in clients due to import aliases
* Made compliant to mypy 0.750 --strict

2.0.6

=====
* Added location to errors on calls with missing arguments

2.0.5

=====
* Improved error message on unexpected arguments in a call
* Distinguished between optional and mandatory arguments in conditions.
Default argument values in conditions are accepted instead of raising a misleading "missing argument" exception.
* Added a boolyness check to detect if the condition evaluation can be negated.
If the condition evaluation lacks boolyness, a more informative exception is now raised.
For example, this is important for all the code operating with numpy arrays where boolyness is not given.
* Added contract location to ``require``, ``ensure`` and ``snapshot``.
This feature had been erroneously omitted in 2.0.4.

Page 5 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.