jsocol / pystatsd

A Python client for statsd
http://statsd.readthedocs.io/
MIT License
542 stars 177 forks source link

Add type hints to all public APIs #184

Open tkukushkin opened 1 year ago

tkukushkin commented 1 year ago

fixes #146

I used pyright --verifytypes to check type completeness of public API. Unfortunately I had to move tests to a separate package to exclude them from pyright check.

charettes commented 6 months ago

If that can be of any help I confirm the types provided in this PR addressed the issues we were running into with @stats.Timer decoration of function having loose their return type and preventing type checkers from doing their job.

chuangfengwang commented 3 weeks ago

Valuable work!