Skip to content

Commit 529f085

Browse files
committed
Small updates
1 parent cd05a3c commit 529f085

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ffcx/codegeneration/utils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import typing
99

1010
import numpy as np
11-
import numpy.typing as _npt
11+
import numpy.typing as npt
1212

1313

14-
def dtype_to_c_type(dtype: typing.Union[_npt.DTypeLike, str]) -> str:
14+
def dtype_to_c_type(dtype: typing.Union[npt.DTypeLike, str]) -> str:
1515
"""For a NumPy dtype, return the corresponding C type.
1616
1717
Args:
@@ -37,7 +37,7 @@ def dtype_to_c_type(dtype: typing.Union[_npt.DTypeLike, str]) -> str:
3737
raise RuntimeError(f"Unknown NumPy type for: {dtype}")
3838

3939

40-
def dtype_to_scalar_dtype(dtype: typing.Union[_npt.DTypeLike, str]) -> np.dtype:
40+
def dtype_to_scalar_dtype(dtype: typing.Union[npt.DTypeLike, str]) -> np.dtype:
4141
"""For a NumPy dtype, return the corresponding real dtype.
4242
4343
Args:
@@ -56,7 +56,7 @@ def dtype_to_scalar_dtype(dtype: typing.Union[_npt.DTypeLike, str]) -> np.dtype:
5656
raise RuntimeError(f"Cannot get value dtype for '{dtype}'. ")
5757

5858

59-
def numba_ufcx_kernel_signature(dtype: _npt.DTypeLike, xdtype: _npt.DTypeLike):
59+
def numba_ufcx_kernel_signature(dtype: npt.DTypeLike, xdtype: npt.DTypeLike):
6060
"""Return a Numba C signature for the UFCx ``tabulate_tensor`` interface.
6161
6262
Args:

ffcx/ir/analysis/graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def _count_nodes_with_unique_post_traversal(expressions, skip_terminal_modifiers
213213
def getops(e):
214214
"""Get a modifiable list of operands of e.
215215
216-
Pptionally treating modified terminals as a unit.
216+
Optionally treating modified terminals as a unit.
217217
"""
218218
# TODO: Maybe use e._ufl_is_terminal_modifier_
219219
if e._ufl_is_terminal_ or (skip_terminal_modifiers and is_modified_terminal(e)):

0 commit comments

Comments
 (0)