contracts icon indicating copy to clipboard operation
contracts copied to clipboard

An implementation of contracts for Python.

Results 10 contracts issues
Sort by recently updated
recently updated
newest added

I came here due to a PyCon talk. It appears the work on this project has stopped. Could you provide a short statement why it's not actively maintained? **Did you...

My verbose hypothesis feedback is clean and I'm not seeing any sign of dpcontracts.[any]Error. I expected that either requiring x to be a float while feeding in ints or requiring...

Building a namedtuple is expensive, this takes the overhead from over 1000 200 times. Before ``` ---------------------------------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------------------------------- Name (time in ns) Min Max Mean StdDev Median...

Followup on #23, commits from that PR are included.

This will help for distributions in packaging .

Is this performance to be expected? There seems to be a lot of time spent in building namedtuples... ``` $ python --version Python 3.6.6 :: Anaconda, Inc. $ cat test_dp.py...

Hi deadpixi, First of all, just want to tell you that this library has been immensely helpful - small, simple, and works great. Awesome way to introduce great ideas into...

Hi, I'm trying to push for a standardized contracts library in Python, and so far there was some discussion on python-ideas mail list, please see [this thread](https://groups.google.com/forum/#!topic/python-ideas/JtMgpSyODTU) which was later...

I just noticed, in dpcontracts.py and in README.rst. Is that intentional ? it might be tricky to keep them both in sync...