Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 18, 2024
1 parent 01c08d7 commit b7447d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ansys/mapdl/core/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
import string
import tempfile
from threading import Thread
from typing import Callable, Dict, Iterable, Tuple, Union
from typing import Callable, Dict, Iterable, List, Tuple, Union
from warnings import warn

import numpy as np

from ansys.mapdl.core import _HAS_PYVISTA, LOG, Mapdl
from ansys.mapdl.core import _HAS_PYVISTA, LOG

# path of this module
MODULE_PATH = os.path.dirname(inspect.getfile(inspect.currentframe()))
Expand Down Expand Up @@ -202,7 +202,7 @@ def wrapper(*args, **kwargs):
return wrapper


def unique_rows(arr: np.ndarray) -> Tuple(Union[np.ndarray, np.ndarray, np.ndarray]):
def unique_rows(arr: np.ndarray) -> Tuple[Union[np.ndarray, np.ndarray, np.ndarray]]:
"""Returns unique rows of `arr` and indices of those rows"""
if not arr.flags.c_contiguous:
arr = np.ascontiguousarray(arr)

Check warning on line 208 in src/ansys/mapdl/core/misc.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/misc.py#L207-L208

Added lines #L207 - L208 were not covered by tests
Expand Down Expand Up @@ -288,7 +288,7 @@ def get_bounding_box(nodes_xyz: np.ndarray) -> np.ndarray:
return max_ - min_


def load_file(mapdl: Mapdl, fname: str, priority_mapdl_file: bool = None) -> str:
def load_file(mapdl: "Mapdl", fname: str, priority_mapdl_file: bool = None) -> str:
"""
Provide a file to the MAPDL instance.
Expand Down

0 comments on commit b7447d2

Please sign in to comment.