@@ -78,7 +78,7 @@ def push_forward(
7878 Returns:
7979 Physical coordinates of the points reference points ``X``.
8080 """
81- return self ._cpp_object .push_forward (X , cell_geometry )
81+ return self ._cpp_object .push_forward (X , cell_geometry ) # type: ignore[arg-type, return-value]
8282
8383 def pull_back (
8484 self ,
@@ -100,7 +100,7 @@ def pull_back(
100100 Returns:
101101 Reference coordinates of the physical points ``x``.
102102 """
103- return self ._cpp_object .pull_back (x , cell_geometry )
103+ return self ._cpp_object .pull_back (x , cell_geometry ) # type: ignore[arg-type, return-value]
104104
105105 @property
106106 def variant (self ) -> int :
@@ -146,7 +146,7 @@ def coordinate_element(
146146 raise RuntimeError ("Unsupported dtype." )
147147
148148
149- @coordinate_element .register (basix .finite_element .FiniteElement )
149+ @coordinate_element .register (basix .finite_element .FiniteElement ) # type: ignore[misc]
150150def _ (e : basix .finite_element .FiniteElement ):
151151 """Create a Lagrange CoordinateElement from a Basix finite element.
152152
@@ -191,7 +191,7 @@ def __eq__(self, other):
191191 @property
192192 def dtype (self ) -> np .dtype :
193193 """Geometry type of the mesh that the space is defined on."""
194- return self ._cpp_object .dtype
194+ return self ._cpp_object .dtype # type: ignore[return-value]
195195
196196 @property
197197 def basix_element (self ) -> basix .finite_element .FiniteElement :
@@ -296,7 +296,7 @@ def T_apply(
296296 cells. Please see `basix.numba_helpers` for performant
297297 versions.
298298 """
299- self ._cpp_object .T_apply (x , cell_permutations , dim )
299+ self ._cpp_object .T_apply (x , cell_permutations , dim ) # type: ignore[arg-type]
300300
301301 def Tt_apply (
302302 self , x : npt .NDArray [np .floating ], cell_permutations : npt .NDArray [np .uint32 ], dim : int
@@ -310,7 +310,7 @@ def Tt_apply(
310310 cell_permutations: Permutation data for the cells
311311 dim: Number of columns in ``data``.
312312 """
313- self ._cpp_object .Tt_apply (x , cell_permutations , dim )
313+ self ._cpp_object .Tt_apply (x , cell_permutations , dim ) # type: ignore[arg-type]
314314
315315 def Tt_inv_apply (
316316 self , x : npt .NDArray [np .floating ], cell_permutations : npt .NDArray [np .uint32 ], dim : int
@@ -324,7 +324,7 @@ def Tt_inv_apply(
324324 cell_permutations: Permutation data for the cells
325325 dim: Number of columns in ``data``.
326326 """
327- self ._cpp_object .Tt_inv_apply (x , cell_permutations , dim )
327+ self ._cpp_object .Tt_inv_apply (x , cell_permutations , dim ) # type: ignore[arg-type]
328328
329329
330330def finiteelement (
@@ -343,7 +343,7 @@ def finiteelement(
343343 if np .issubdtype (FiniteElement_dtype , np .float32 ):
344344 CppElement = _cpp .fem .FiniteElement_float32
345345 elif np .issubdtype (FiniteElement_dtype , np .float64 ):
346- CppElement = _cpp .fem .FiniteElement_float64
346+ CppElement = _cpp .fem .FiniteElement_float64 # type: ignore[assignment]
347347 else :
348348 raise ValueError (f"Unsupported dtype: { FiniteElement_dtype } " )
349349
@@ -352,7 +352,7 @@ def finiteelement(
352352 finiteelement (cell_type , e , FiniteElement_dtype )._cpp_object # type: ignore
353353 for e in ufl_e .sub_elements
354354 ]
355- return FiniteElement (CppElement (elements ))
355+ return FiniteElement (CppElement (elements )) # type: ignore[arg-type]
356356 elif ufl_e .is_quadrature :
357357 return FiniteElement (
358358 CppElement (
0 commit comments