Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 14, 2023
1 parent 2d5e054 commit b5da8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/basix/ufl.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def has_custom_quadrature(self) -> bool:
"""True if the element has a custom quadrature rule."""
return False

def custom_quadrature(self) -> _typing.Tuple(_npt.NDArray[_np.float64], _npt.NDArray[_np.float64]):
def custom_quadrature(self) -> _typing.Tuple[_npt.NDArray[_np.float64], _npt.NDArray[_np.float64]]:
"""True if the element has a custom quadrature rule."""
raise ValueError("Element does not have a custom quadrature rule.")

Expand Down Expand Up @@ -1360,7 +1360,7 @@ def has_custom_quadrature(self) -> bool:
"""True if the element has a custom quadrature rule."""
return True

def custom_quadrature(self) -> _typing.Tuple(_npt.NDArray[_np.float64], _npt.NDArray[_np.float64]):
def custom_quadrature(self) -> _typing.Tuple[_npt.NDArray[_np.float64], _npt.NDArray[_np.float64]]:
"""True if the element has a custom quadrature rule."""
return self._points, self._weights

Expand Down

0 comments on commit b5da8c6

Please sign in to comment.