Skip to content

Commit 3e1442c

Browse files
committed
Use postponed annotations (PEP 563)
1 parent b057090 commit 3e1442c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

optimas/utils/ax/ax_model_manager.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
"""Contains the definition of the AxModelManager class."""
22

3-
from typing import Optional, Union, List, Tuple, Dict, Any, Literal
3+
from __future__ import annotations
4+
5+
from typing import (
6+
Optional,
7+
Union,
8+
List,
9+
Tuple,
10+
Dict,
11+
Any,
12+
Literal,
13+
TYPE_CHECKING,
14+
)
415

516
import numpy as np
617
from numpy.typing import NDArray
@@ -34,6 +45,10 @@
3445
from optimas.core import VaryingParameter, Objective
3546
from optimas.utils.other import convert_to_dataframe
3647

48+
if TYPE_CHECKING:
49+
from ax.service.ax_client import AxClient
50+
from ax.modelbridge.torch import TorchModelBridge
51+
3752

3853
class AxModelManager:
3954
"""Class for building and exploring GP models using an ``AxClient``.

0 commit comments

Comments
 (0)