From fb004f8bc610b0cf52342d35314a9e0a0434e745 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Tue, 1 Aug 2017 17:40:56 +0000 Subject: MAINT: Stop using the undocumented coercion-then-downcast feature of subdtype --- numpy/core/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/function_base.py') diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index 7098b8b91..0415e16ac 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -339,7 +339,7 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None): # complex and another is negative and log would produce NaN otherwise start = start + (stop - stop) stop = stop + (start - start) - if _nx.issubdtype(dtype, complex): + if _nx.issubdtype(dtype, _nx.complexfloating): start = start + 0j stop = stop + 0j -- cgit v1.2.1