AndreaCensi / contracts

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.
http://andreacensi.github.io/contracts/
Other
398 stars 62 forks source link

Add attr validator integration #81

Open slorg1 opened 5 years ago

slorg1 commented 5 years ago

Added an integration to another project that I have used and it is very complementary to this one.

The linking code should not trigger unless imported (expect a NOOP)

slorg1 commented 5 years ago

@AndreaCensi kindly, please take a look at this PR. Thank you.