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

udpdate miscellaneous_aliases to remove Deprecated Error #83

Closed LucaPaterlini closed 1 year ago

LucaPaterlini commented 5 years ago

hello, this is a minor change just to not get the Deprecated Warning from due to this import

collections.Iterable instead of from collections import Iterable

Best Regards, LP

LucaPaterlini commented 5 years ago

I have checked again, there are loads of deprecated, I use go then

slorg1 commented 5 years ago

@LucaPaterlini thank you for your PR, it looks like we had the same idea. Could you please look at my PR #84 I did similar changes but made the code compatible with python 3.6+ (by moving to use collections.abc)?

LucaPaterlini commented 1 year ago

closing pull request as PR #84 covers the same issue