Skip to content

Commit 9f520cc

Browse files
authored
fix numpy typing import (#2395)
* fix numpy typing import * Update the image cache * Update the image cache * call _apply_default_theme only if pyvista can be imported --------- Co-authored-by: Gryfenfer97 <[email protected]>
1 parent b84acb7 commit 9f520cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ansys/mapdl/core/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999

100100
_HAS_ANSYS = _check_has_ansys()
101101

102-
_apply_default_theme()
102+
if _HAS_PYVISTA:
103+
_apply_default_theme()
103104

104105
BUILDING_GALLERY = False
105106
RUNNING_TESTS = False

src/ansys/mapdl/core/mapdl.py

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

1919
from matplotlib.colors import to_rgba
2020
import numpy as np
21-
from numpy._typing import DTypeLike
22-
from numpy.typing import NDArray
21+
from numpy.typing import DTypeLike, NDArray
2322

2423
from ansys.mapdl import core as pymapdl
2524
from ansys.mapdl.core import LOG as logger
3.42 KB
Loading

0 commit comments

Comments
 (0)