Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkumar committed Jun 24, 2024
1 parent 63fa27a commit 66b09f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions src/simsopt/_core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
This module contains small utility functions and classes.
"""

from typing import Union, Sequence, Any
from typing import Union, Sequence # , Any
from numbers import Integral, Real

# from nptyping import NDArray, Float, Int, Bool
import numpy as np
from numpy.typing import NDArray

# RealArray is a type alias for numpy double array or RealArray
RealArray = Union[Sequence[Real], NDArray[np.double]]
IntArray = Union[Sequence[Integral], NDArray[np.int_]]
StrArray = Sequence[str]
Expand Down
3 changes: 0 additions & 3 deletions src/simsopt/geo/surfaceobjectives.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from typing import Any

import numpy as np
# from nptyping import NDArray, Float

import simsoptpp as sopp
from .._core.optimizable import Optimizable
Expand Down

0 comments on commit 66b09f3

Please sign in to comment.