diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 23454120..81910792 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -25,5 +25,6 @@ Otherwise, please check the following TODO list: - [ ] Replace `` in `LICENSE` of your package with your name - [ ] Fill out `README.md` in your package - [ ] Add import statements of your function or class names to be used in `__init__.py` +- [ ] (Optional) Add `from __future__ import annotations` at the head of any Python files that include typing to support older Python versions - [ ] Apply the formatter based on the tips in [`README.md`](https://github.com/optuna/optunahub-registry/tree/main) - [ ] Check whether your module works as intended based on the tips in [`README.md`](https://github.com/optuna/optunahub-registry/tree/main) diff --git a/package/samplers/nelder_mead/generate_initial_simplex.py b/package/samplers/nelder_mead/generate_initial_simplex.py index 1114e3d9..94e65167 100644 --- a/package/samplers/nelder_mead/generate_initial_simplex.py +++ b/package/samplers/nelder_mead/generate_initial_simplex.py @@ -22,6 +22,8 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +from __future__ import annotations + import numpy as np diff --git a/package/samplers/plmbo/plmbo.py b/package/samplers/plmbo/plmbo.py index d6ed9f2d..8355f2ad 100644 --- a/package/samplers/plmbo/plmbo.py +++ b/package/samplers/plmbo/plmbo.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from typing import Any import GPy