From b5da8c68aa50cbc29b3c9ad9bbe84dbbfecdb1a7 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Mon, 14 Aug 2023 13:30:23 +0100 Subject: [PATCH] mypy --- python/basix/ufl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/basix/ufl.py b/python/basix/ufl.py index 89688e8bb..16c038251 100644 --- a/python/basix/ufl.py +++ b/python/basix/ufl.py @@ -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.") @@ -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