Icontract

Latest version: v2.6.6

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

Scan your dependencies

Page 7 of 10

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

1.5.7

=====
* Exempted ``__init__`` from inheritance of preconditions and postconditions if defined in the
concrete class.

1.5.6

=====
* Contracts are observed and inherited with property getters, setters and deleters.
* Weakining of preconditions of a base function without any preconditions raises ``TypeError``.
* ``__getattribute__``, ``__setattr__` and ``__delattr__`` are exempted from invariants.
* Slot wrappers are properly handled.
* Fixed representation of conditions with attributes in generator expressions
* Added reference to sphinx-contract

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.