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

logging.basicConfig() #61

Closed shigengyu closed 6 years ago

shigengyu commented 6 years ago

Hi pycontracts contributors,

Wonder is it possible to remove logging.basicConfig() in contracts/src/contracts/init.py:5.

Usually when importing pycontracts as a lib, we have our own logging handlers setup, and calling basicConfig will cause duplicated logging.

Thanks Gengyu

AndreaCensi commented 6 years ago

fixed.