ionelmc / pytest-benchmark

py.test fixture for benchmarking code
BSD 2-Clause "Simplified" License
1.22k stars 115 forks source link

Add type annotations #212

Open RobertCraigie opened 2 years ago

RobertCraigie commented 2 years ago

Type annotations would improve the editor experience and support static type checking. Type annotations would only really have to be added to user facing code but it would still be beneficial to type the whole codebase as well.

I'd be happy to help with this if it is deemed acceptable :)

LewisGaul commented 1 year ago

I think the only thing needed to allow users to annotate their code is to expose the BenchmarkFixture class from __init__.py?

RobertCraigie commented 1 year ago

Potentially. A py.typed file would have to be added as well.