Skip to content

Commit 2b73948

Browse files
authored
TYP: temporarily ignore the numpy==2.2.1 mypy errors (scipy#22162)
1 parent 6a5e348 commit 2b73948

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scipy/io/arff/tests/test_arffread.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
missing = pjoin(data_path, 'missing.arff')
4141
expect_missing_raw = np.array([[1, 5], [2, 4], [np.nan, np.nan]])
4242
expect_missing = np.empty(3, [('yop', float), ('yap', float)])
43-
expect_missing['yop'] = expect_missing_raw[:, 0]
44-
expect_missing['yap'] = expect_missing_raw[:, 1]
43+
expect_missing['yop'] = expect_missing_raw[:, 0] # type: ignore[call-overload]
44+
expect_missing['yap'] = expect_missing_raw[:, 1] # type: ignore[call-overload]
4545

4646

4747
class TestData:
@@ -328,7 +328,7 @@ def test_data(self):
328328
class TestQuotedNominal:
329329
"""
330330
Regression test for issue #10232:
331-
331+
332332
Exception in loadarff with quoted nominal attributes.
333333
"""
334334

@@ -376,7 +376,7 @@ def test_data(self):
376376
class TestQuotedNominalSpaces:
377377
"""
378378
Regression test for issue #10232:
379-
379+
380380
Exception in loadarff with quoted nominal attributes.
381381
"""
382382

scipy/io/matlab/_mio5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def to_writeable(source):
512512
class VarWriter5:
513513
''' Generic matlab matrix writing class '''
514514
mat_tag = np.zeros((), NDT_TAG_FULL)
515-
mat_tag['mdtype'] = miMATRIX
515+
mat_tag['mdtype'] = miMATRIX # type: ignore[call-overload]
516516

517517
def __init__(self, file_writer):
518518
self.file_stream = file_writer.file_stream

0 commit comments

Comments
 (0)