BayesianOptimization icon indicating copy to clipboard operation
BayesianOptimization copied to clipboard

support PEP 484

Open phi-friday opened this issue 7 months ago • 6 comments

Is your feature request related to a problem? Please describe.

No type hint is written, resulting in a static analysis that differs from annotations. ex: xi accepts float, but is inferred to be int because of the default.

스크린샷 2024-07-09 오전 9 04 26

This also causes some issues with static analysis and using the IDE.

Describe the solution you'd like Add the correct type hint.

References or alternative approaches https://peps.python.org/pep-0484/

Additional context If you decide to support type hint, I'll contribute. However, since a lot of changes are planned in #447 , i'll start with modules that are not related to #447 .

Are you able and willing to implement this feature yourself and open a pull request?

  • [X] Yes, I can provide this feature.

phi-friday avatar Jul 09 '24 00:07 phi-friday