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.
In python 3.10 the attributes of
container
used inmiscellaneous_aliases.py
need to be attributes ofcontainer.abc
This hack will solve the issue for python3.10
Change the
import collections
at the top of the file forimport collections.abc as collections