Skip to content

Commit 50861a8

Browse files
committed
This has been a redirect for >5 years?
1 parent 27c7f68 commit 50861a8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ffcx/codegeneration/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# SPDX-License-Identifier: LGPL-3.0-or-later
66
"""Utilities."""
77

8-
from importlib import import_module
98
from importlib.util import find_spec
109

1110
import numpy as np
@@ -71,11 +70,8 @@ def numba_ufcx_kernel_signature(dtype: npt.DTypeLike, xdtype: npt.DTypeLike):
7170
ImportError: If ``numba`` cannot be imported.
7271
"""
7372
try:
74-
types = import_module(
75-
"numba" + (".core" if numba.__version__ >= (0, 66, 0) else "") + ".types"
76-
)
77-
7873
from numba import from_dtype
74+
from numba.core import types
7975

8076
return types.void(
8177
types.CPointer(from_dtype(dtype)),

0 commit comments

Comments
 (0)