PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API.
I don't know if I'm doing something wrong or if not supportable, in the second case i want to request your help to do it, in order to extend the library.
Also i want to know if exist someway to construct an invariant into an object.
Hello,
I trying to doing a contract that return a post-condition as:
I don't know if I'm doing something wrong or if not supportable, in the second case i want to request your help to do it, in order to extend the library. Also i want to know if exist someway to construct an invariant into an object.
Thanks.