From df474ebe311bf47dbb0cc486a096c62979b886d2 Mon Sep 17 00:00:00 2001 From: Seung Hyun Kim Date: Tue, 30 Apr 2024 11:46:57 -0500 Subject: [PATCH] formatting: remove any unused imports --- elastica/systems/protocol.py | 2 +- elastica/timestepper/explicit_steppers.py | 2 +- elastica/timestepper/symplectic_steppers.py | 2 +- elastica/timestepper/tag.py | 2 +- elastica/typing.py | 4 +--- 5 files changed, 5 insertions(+), 7 deletions(-) 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: