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.
PythonNOASSERTION
Issues
- 0
Broken documentation links
#103 opened by sonnygeorge - 0
in Python 3.10 the file miscellaneous_aliases.py needs to import collections.abc
#101 opened by SembeiNorimaki - 0
attr() doesn't seem to work with attributes that have an underscore in their name.
#99 opened by jesnie - 0
Likely bug that can't render contract violation
#95 opened by Aceticia - 1
Incompatibility with pyparsing >= 3
#98 opened by lindycoder - 2
2.0.1 release missing from pypi
#92 opened by mgorny - 0
Type hinting does not pass through the decorator
#94 opened by slorg1 - 5
- 2
pycontracts==1.8.14 is no longer available in pypi
#91 opened by regisb - 0
1.8.14 removed from PyPI?
#90 opened by nedbat - 0
unhandled exception in check_contract
#89 opened by HitLuca - 0
Check type on annotated class
#78 opened by Delja - 0
- 0
No release of newest changes
#86 opened by owensearls - 1
hello warrning due to deprecation
#82 opened by LucaPaterlini - 0
- 0
Front ... for dimensionality
#76 opened by srush - 1
Abstraction of dimensionality?
#75 opened by srush - 0
- 0
Add numpy 'object' data type contract
#71 opened by ddasilva - 1
- 0
- 0
Error to extend the library
#69 opened by Chuzz1996 - 1
- 0
String contracts don't accept ! (not)
#68 opened by jcrmatos - 0
Suggestion: Accept '0 <= int < $square_size' and 'tuple(A, B), 0 <= A < $nr_rows, 0 <= B < $nr_cols' kind of conditions in contracts
#67 opened by jcrmatos - 1
Contracts does not stop execution immediately having found an unexpected OR null input
#65 opened by AldarisPale - 0
- 2
Better support for generic iterators
#46 opened by averagehat - 1
contracts on class structure
#59 opened by asmodehn - 1
- 1
Variable binding in new_contract
#56 opened by darrnshn - 1
Documentation needs to be completed
#58 opened by runekaagaard - 1
logging.basicConfig()
#61 opened by shigengyu - 2
- 2
- 0
Please keep changelog up to date.
#52 opened by nedbat - 1
pyparsing 2.1.6 breaks pycontracts
#50 opened by suranap - 4
- 0
Simplify isinstance in docstring
#49 opened by vanadium23 - 0
`number` does not respect `long`
#47 opened by averagehat - 0
Docstring can't see local variables
#45 opened by averagehat - 3
- 2
Add isNotNone support
#38 opened by gsemet - 1
- 5
Simpler syntax for checking type name
#23 opened by AndreaCensi - 2
Unicode strings for contract names
#40 opened by brokenseal - 0
Add 'in' support
#37 opened by gsemet - 1
- 10
How to define parametrized contracts?
#26 opened by ChrisBeaumont