bayesian-optimization / BayesianOptimization

A Python implementation of global optimization with gaussian processes.
https://bayesian-optimization.github.io/BayesianOptimization/index.html
MIT License
7.95k stars 1.55k forks source link

Apply PEP561 #520

Closed phi-friday closed 2 months ago

phi-friday commented 2 months ago

closes: #493 PEP561: https://peps.python.org/pep-0561/

Based on the previous discussion, type hinting using TypeVar was ruled out as it would be a barrier to entry for casual users. Instead, #507 was merged in.

In my opinion, this library fully meets the needs of the existing contributors and users, so it makes sense to add py.typed to let users know that this library provides sufficient type hints.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.31%. Comparing base (aed6a25) to head (5069ca9). Report is 4 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #520 +/- ## ========================================== + Coverage 96.19% 96.31% +0.12% ========================================== Files 10 11 +1 Lines 867 869 +2 ========================================== + Hits 834 837 +3 + Misses 33 32 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.