Skip to content

Commit 358eee7

Browse files
BUG: mypy: ignore the file in mypy.ini
This adds the file `scipy/_lib/_uarray/_backend.py` to the ignore lists in `mypy.ini` as mypy 0.770 detects a syntax error (on Python 3.9.0a5) which cannot be ignored via directives like `# type: ignore`.
1 parent 657a20d commit 358eee7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ ignore_errors = True
385385
[mypy-scipy.spatial.tests.test_distance]
386386
ignore_errors = True
387387

388+
[mypy-scipy._lib._uarray._backend]
389+
ignore_errors = True
390+
388391
#
389392
# Files referencing compiled code that needs stubs added.
390393
#

scipy/_lib/_uarray/_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def generate_multimethod(
9393
argument_extractor: ArgumentExtractorType,
9494
argument_replacer: ArgumentReplacerType,
9595
domain: str,
96-
default: typing.Optional[typing.Callable] = None, # type: ignore
96+
default: typing.Optional[typing.Callable] = None,
9797
):
9898
"""
9999
Generates a multimethod.

0 commit comments

Comments
 (0)