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.
http://andreacensi.github.io/contracts/
Other
398 stars 62 forks source link

in Python 3.10 the file miscellaneous_aliases.py needs to import collections.abc #101

Open SembeiNorimaki opened 1 year ago

SembeiNorimaki commented 1 year ago

In python 3.10 the attributes of container used in miscellaneous_aliases.py need to be attributes of container.abc

This hack will solve the issue for python3.10

Change the import collections at the top of the file for import collections.abc as collections