logo
首页技术栈工具库讨论
PyContracts3

PyContracts3

PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, in a decorator, or inside a docstring :type: and :rtype: tags. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts (notably for Numpy arrays), as well as an extension API.
由 
bruceshi2021-01-14 收录
--
推荐
不推荐
更多信息
GitHub iconAndreaCensi/contracts342
PYPI
pip install PyContracts3
查看
标签
根据用户添加的标签生成
暂无标签