Skip to content

Commit a3466a4

Browse files
committed
TYP: Update ignore comments
1 parent e753a58 commit a3466a4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

nibabel/_compression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .optpkg import optional_package
1818

1919
if ty.TYPE_CHECKING: # pragma: no cover
20-
import indexed_gzip # type: ignore[import-not-found]
20+
import indexed_gzip # type: ignore[import]
2121
import pyzstd
2222

2323
HAVE_INDEXED_GZIP = True

nibabel/benchmarks/bench_arrayproxy_slicing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
# if memory_profiler is installed, we get memory usage results
2828
try:
29-
from memory_profiler import memory_usage # type: ignore[import-not-found]
29+
from memory_profiler import memory_usage # type: ignore[import]
3030
except ImportError:
3131
memory_usage = None
3232

nibabel/cmdline/dicomfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class dummy_fuse:
2525

2626

2727
try:
28-
import fuse # type: ignore[import-not-found]
28+
import fuse # type: ignore[import]
2929

3030
uid = os.getuid()
3131
gid = os.getgid()

nibabel/minc2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class Minc2Image(Minc1Image):
163163
def from_file_map(klass, file_map, *, mmap=True, keep_file_open=None):
164164
# Import of h5py might take awhile for MPI-enabled builds
165165
# So we are importing it here "on demand"
166-
import h5py # type: ignore[import-not-found]
166+
import h5py # type: ignore[import]
167167

168168
holder = file_map['image']
169169
if holder.filename is None:

nibabel/spm99analyze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def from_file_map(klass, file_map, *, mmap=True, keep_file_open=None):
275275
contents = matf.read()
276276
if len(contents) == 0:
277277
return ret
278-
import scipy.io as sio # type: ignore[import-not-found]
278+
import scipy.io as sio # type: ignore[import]
279279

280280
mats = sio.loadmat(BytesIO(contents))
281281
if 'mat' in mats: # this overrides a 'M', and includes any flip

0 commit comments

Comments
 (0)