fix circular import
This commit is contained in:
parent
4cc824526b
commit
bfabd351c4
@ -1,17 +1,19 @@
|
|||||||
from typing import Dict, Tuple, List, Optional, Union, Any, cast, Sequence
|
from typing import Dict, Tuple, List, Optional, Union, Any, cast, Sequence, TYPE_CHECKING
|
||||||
from pprint import pformat
|
from pprint import pformat
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
from numpy import pi
|
from numpy import pi
|
||||||
from numpy.typing import ArrayLike
|
from numpy.typing import ArrayLike
|
||||||
|
|
||||||
from .devices import Port
|
|
||||||
from ..utils import rotation_matrix_2d
|
from ..utils import rotation_matrix_2d
|
||||||
from ..error import BuildError
|
from ..error import BuildError
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from .devices import Port
|
||||||
|
|
||||||
|
|
||||||
def ell(
|
def ell(
|
||||||
ports: Dict[str, Port],
|
ports: Dict[str, 'Port'],
|
||||||
ccw: Optional[bool],
|
ccw: Optional[bool],
|
||||||
bound_type: str,
|
bound_type: str,
|
||||||
bound: Union[float, ArrayLike],
|
bound: Union[float, ArrayLike],
|
||||||
|
Loading…
Reference in New Issue
Block a user