summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-01-15 18:56:58 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2021-01-19 17:05:42 +0100
commitdb018a5d52b9773107325a8221a88eea0cbd79aa (patch)
tree3121e4fc3f97b15636678673e08e8ec6ecf01b7e /numpy
parent4ef10a55103ddf98730305db11461457cfc93e6e (diff)
downloadnumpy-db018a5d52b9773107325a8221a88eea0cbd79aa.tar.gz
MAINT: Adjusted the return-type of `number` ops to `Any`
Diffstat (limited to 'numpy')
-rw-r--r--numpy/typing/_callable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/typing/_callable.py b/numpy/typing/_callable.py
index 77e3ee0c4..e1fdee3ba 100644
--- a/numpy/typing/_callable.py
+++ b/numpy/typing/_callable.py
@@ -314,7 +314,7 @@ if TYPE_CHECKING or HAVE_PROTOCOL:
) -> complexfloating[Union[_NBit1, _NBit2], Union[_NBit1, _NBit2]]: ...
class _NumberOp(Protocol):
- def __call__(self, __other: _NumberLike_co) -> number: ...
+ def __call__(self, __other: _NumberLike_co) -> Any: ...
class _ComparisonOp(Protocol[_T]):
@overload