Icontract

Latest version: v2.7.1

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

Scan your dependencies

Page 7 of 11

1.7.1

=====
* Refactored implementation and tests into smaller modules

1.7.0

=====
* Added ``snapshot`` decorator to capture "old" values (prior to function invocation) for postconditions that verify
state transitions

1.6.1

=====
* Replaced ``typing.Type`` with ``type`` so that icontract works with Python 3.5.2

1.6.0

=====
* Added ``error`` argument to the contracts

1.5.9

=====
* Removed ``ast_graph`` module which was only used for debugging
* Prefixed internal modules with an underscore (``_represent`` and ``_recompute``)

1.5.8

=====
* ``recompute`` propagates to children of generator expressions and comprehensions
* Optimized parsing of condition lambdas by considering only lines local to the decorator

Page 7 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.