Skip to content

Commit be5fa30

Browse files
fix: Remove beartype
1 parent 161acec commit be5fa30

File tree

12 files changed

+13
-14
lines changed

12 files changed

+13
-14
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ classifiers = [
2323
]
2424
dependencies = [
2525
"pyvista >= 0.43.0,<1",
26-
"beartype >= 0.17.0,<1",
2726
"websockets >= 12.0,< 14",
2827
"trame >= 3.6.0,<4",
2928
"trame-vtk >= 2.8.7,<3",

src/ansys/tools/visualization_interface/backends/_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222

2323
"""Module for the backend base class."""
2424
from abc import ABC, abstractmethod
25-
26-
from beartype.typing import Any, Iterable
25+
from typing import Any, Iterable
2726

2827

2928
class BaseBackend(ABC):

src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"""Provides a wrapper to aid in plotting."""
2323
from abc import abstractmethod
2424
import importlib.util
25+
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
2526

26-
from beartype.typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
2727
import pyvista as pv
2828
from vtkmodules.vtkCommonCore import vtkCommand
2929
from vtkmodules.vtkInteractionWidgets import vtkHoverWidget

src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
# SOFTWARE.
2222
"""Provides plotting for various PyAnsys objects."""
2323
import re
24-
from typing import Union
24+
from typing import Any, Dict, List, Optional, Union
2525

26-
from beartype.typing import Any, Dict, List, Optional
2726
import pyvista as pv
2827
from pyvista.plotting.plotter import Plotter as PyVistaPlotter
2928

src/ansys/tools/visualization_interface/backends/pyvista/trame_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# from the websocket. This is a trusted source, so we can ignore this vulnerability.
2525
# Potentially, someone could send a malicious pickle object and execute arbitrary code.
2626
import pickle # nosec B403
27+
from typing import Union
2728

28-
from beartype.typing import Union
2929
import pyvista as pv
3030
from websockets.sync.client import connect
3131

src/ansys/tools/visualization_interface/backends/pyvista/widgets/hide_buttons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# SOFTWARE.
2222
"""Provides the hide buttons widget for the PyAnsys plotter."""
2323
from pathlib import Path
24+
from typing import TYPE_CHECKING
2425

25-
from beartype.typing import TYPE_CHECKING
2626
from vtk import vtkActor, vtkButtonWidget, vtkPNGReader
2727

2828
from ansys.tools.visualization_interface.backends.pyvista.widgets.widget import PlotterWidget

src/ansys/tools/visualization_interface/backends/pyvista/widgets/measure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# SOFTWARE.
2222
"""Provides the measure widget for the PyAnsys plotter."""
2323
from pathlib import Path
24+
from typing import TYPE_CHECKING
2425

25-
from beartype.typing import TYPE_CHECKING
2626
from vtk import vtkActor, vtkButtonWidget, vtkPNGReader
2727

2828
from ansys.tools.visualization_interface.backends.pyvista.widgets.widget import PlotterWidget

src/ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# SOFTWARE.
2222
"""Provides the measure widget for the PyAnsys plotter."""
2323
from pathlib import Path
24+
from typing import TYPE_CHECKING
2425

25-
from beartype.typing import TYPE_CHECKING
2626
import pyvista as pv
2727
from vtk import vtkActor, vtkButtonWidget, vtkPNGReader
2828

src/ansys/tools/visualization_interface/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# SOFTWARE.
2222

2323
"""Module for the Plotter class."""
24-
from beartype.typing import Any
24+
from typing import Any
2525

2626
from ansys.tools.visualization_interface.backends._base import BaseBackend
2727
from ansys.tools.visualization_interface.backends.pyvista.pyvista import PyVistaBackend

src/ansys/tools/visualization_interface/types/edge_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"""Provides the edge type for plotting."""
2323

2424

25-
from beartype.typing import TYPE_CHECKING, Any
25+
from typing import TYPE_CHECKING, Any
26+
2627
import pyvista as pv
2728

2829
if TYPE_CHECKING:

0 commit comments

Comments
 (0)