deadpixi / contracts

An implementation of contracts for Python.
GNU Lesser General Public License v3.0
342 stars 18 forks source link

Improve granularity of error reporting, for easier debugging and better integration #10

Closed Zac-HD closed 6 years ago

Zac-HD commented 6 years ago

This pull request closes #9, by adding the PreconditionError and PostconditionError exception types, both subclasses of AssertionError. This is a backwards-compatible change, with two benefits:

deadpixi commented 6 years ago

Thank you!