Skip to main content

python-pycontracts

#post

python-pycontracts

A concise way to express input/output constraints on a function via a @contract decorator.

Not intended as a replacement for type hints, but for value checking. For example: