diff --git a/elastica/systems/protocol.py b/elastica/systems/protocol.py index a9462536a..c2864f608 100644 --- a/elastica/systems/protocol.py +++ b/elastica/systems/protocol.py @@ -1,6 +1,6 @@ __doc__ = """Base class for elastica system""" -from typing import Protocol, Any +from typing import Protocol from elastica.typing import StateType from elastica.rod.data_structures import _KinematicState, _DynamicState diff --git a/elastica/timestepper/explicit_steppers.py b/elastica/timestepper/explicit_steppers.py index ca21f8dea..11ac06e97 100644 --- a/elastica/timestepper/explicit_steppers.py +++ b/elastica/timestepper/explicit_steppers.py @@ -1,6 +1,6 @@ __doc__ = """Explicit timesteppers and concepts""" -from typing import Any, Tuple +from typing import Tuple import numpy as np from copy import copy diff --git a/elastica/timestepper/symplectic_steppers.py b/elastica/timestepper/symplectic_steppers.py index 645f9f256..ea28aca6f 100644 --- a/elastica/timestepper/symplectic_steppers.py +++ b/elastica/timestepper/symplectic_steppers.py @@ -1,6 +1,6 @@ __doc__ = """Symplectic time steppers and concepts for integrating the kinematic and dynamic equations of rod-like objects. """ -from typing import Tuple, Callable, Any, List +from typing import Any, Callable, List from elastica.typing import ( SystemCollectionType, diff --git a/elastica/timestepper/tag.py b/elastica/timestepper/tag.py index 158f0c66b..85814e490 100644 --- a/elastica/timestepper/tag.py +++ b/elastica/timestepper/tag.py @@ -1,4 +1,4 @@ -from typing import Type, List, Callable +from typing import Callable, Type # TODO: Maybe move this for common utility diff --git a/elastica/typing.py b/elastica/typing.py index 6334bfd4c..b6bd654e6 100644 --- a/elastica/typing.py +++ b/elastica/typing.py @@ -5,9 +5,7 @@ from typing import TYPE_CHECKING from typing import Type, Union, Callable, Any -from typing import Protocol, TypeAlias - -import numpy as np +from typing import TypeAlias if TYPE_CHECKING: