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

Please do not call basicConfig for the root logger #60

Closed Echsecutor closed 6 years ago

Echsecutor commented 7 years ago

If you call basicConfig, I can not change the basicConfig (format, level, etc.) after importing your package, which I typically do up front.

wtanaka commented 6 years ago

it seems to have been merged https://github.com/AndreaCensi/contracts/pull/57#issuecomment-331695393

AndreaCensi commented 6 years ago

Yes, sorry for the delay. I only recently understood the importance of this.

shigengyu commented 6 years ago

Thanks for fixing. I noticed there were pull requests before that but none of them passed the CI.