Skip to content

Commit

Permalink
Update src/skgmsh/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 committed Mar 2, 2024
1 parent f4eb665 commit a9e4eaa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/skgmsh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ def __init__(
)


class Plotter(pv.Plotter): # type: ignore[misc]
class PlotterBase:
"""
Plotting object to display vtk meshes or numpy arrays.
Base class with common behaviour for a gmsh aware plotter.
See :class:`pyvista.Plotter`.
Expand All @@ -328,7 +328,7 @@ class Plotter(pv.Plotter): # type: ignore[misc]
"""

def __init__(self: Plotter, *args, **kwargs) -> None: # type: ignore[no-untyped-def] # noqa: ANN002, ANN003
def __init__(self: PlotterBase, *args, **kwargs) -> None: # type: ignore[no-untyped-def] # noqa: ANN002, ANN003
"""
Create gmsh aware plotter.
Expand All @@ -346,7 +346,11 @@ def __init__(self: Plotter, *args, **kwargs) -> None: # type: ignore[no-untyped
"""
super().__init__(*args, **kwargs)
super().enable_parallel_projection()
super().enable_parallel_projection() # type: ignore[misc]


class Plotter(PlotterBase, pv.Plotter): # type: ignore[misc]
"""Plotting object to display vtk meshes or numpy arrays."""


class PolyData(pv.PolyData): # type: ignore[misc]
Expand Down

0 comments on commit a9e4eaa

Please sign in to comment.