Skip to content

Commit

Permalink
BUG: mypy: fix a typing error
Browse files Browse the repository at this point in the history
This just adds `# type: ignore` to the line in
`scipy/_lib/_uarray/_backend.py` to ignore the
syntax error detected by `mypy`. This error seems
to be present only on Python 3.9.0a5 with mypy 0.770.
  • Loading branch information
tirthasheshpatel committed Feb 26, 2021
1 parent 219ea19 commit 657a20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/_lib/_uarray/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def generate_multimethod(
argument_extractor: ArgumentExtractorType,
argument_replacer: ArgumentReplacerType,
domain: str,
default: typing.Optional[typing.Callable] = None,
default: typing.Optional[typing.Callable] = None, # type: ignore
):
"""
Generates a multimethod.
Expand Down

0 comments on commit 657a20d

Please sign in to comment.