Skip to content

Commit 8d69bd1

Browse files
committed
Fix mypy error code 'import-untyped'
1 parent 35c2d5f commit 8d69bd1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ disable_error_code = [
9191
"assignment",
9292
"attr-defined",
9393
"import-not-found",
94-
"import-untyped",
9594
"method-assign",
9695
"misc",
9796
"operator",

ufl/mathfunctions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def evaluate(self, x, mapping, component, index_values):
421421
"""Evaluate."""
422422
a = self.ufl_operands[1].evaluate(x, mapping, component, index_values)
423423
try:
424-
import scipy.special
424+
import scipy.special # type: ignore
425425
except ImportError:
426426
raise ValueError(
427427
"You must have scipy installed to evaluate bessel functions in python."

0 commit comments

Comments
 (0)