Skip to content

Commit

Permalink
Merge pull request #7 from optuna/use-future-annotations
Browse files Browse the repository at this point in the history
Use __future__.annotations
  • Loading branch information
HideakiImamura authored May 15, 2024
2 parents cf3c822 + 2446a94 commit f0fc229
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/samplers/simple/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import abc
from typing import Any

Expand Down
2 changes: 2 additions & 0 deletions package/samplers/simulated_annealing/simulated_annealing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from typing import Any

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections.abc import Sequence

import optuna
Expand Down
2 changes: 2 additions & 0 deletions recipes/001_first.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

###################################################################################################
# First of all, import `optuna`, `optunahub`, and other necessary modules.
from __future__ import annotations

import os
from typing import Any

Expand Down
2 changes: 2 additions & 0 deletions update_readme.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from enum import Enum
from enum import unique
import glob
Expand Down

0 comments on commit f0fc229

Please sign in to comment.