diff options
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/type_check.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/lib/type_check.py b/numpy/lib/type_check.py index 1073613c9..90b1e9a6e 100644 --- a/numpy/lib/type_check.py +++ b/numpy/lib/type_check.py @@ -75,10 +75,7 @@ def mintypecode(typechars, typeset='GDFgdf', default='d'): return default if 'F' in intersection and 'd' in intersection: return 'D' - l = [] - for t in intersection: - i = _typecodes_by_elsize.index(t) - l.append((i, t)) + l = [(_typecodes_by_elsize.index(t), t) for t in intersection] l.sort() return l[0][1] |