Icontract

Latest version: v2.6.6

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

Scan your dependencies

Page 5 of 10

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.

2.0.4

=====
* Added contract location to the message of the violation error

2.0.3

=====
* Fixed representation of numpy conditions
* Updated pylint to 2.3.1

Page 5 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.