BayesianOptimization
BayesianOptimization copied to clipboard
support PEP 484
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.
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.