Skip to content

Commit 9af1834

Browse files
author
Vahid Tavanashad
committed
remove unused imports
1 parent da8e646 commit 9af1834

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mkl_umath/generate_umath.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@
2727

2828
import os
2929
import re
30-
import struct
31-
import sys
3230
import textwrap
33-
import numpy
3431

35-
# identity objectsv
32+
# identity objects
3633
Zero = "PyLong_FromLong(0)"
3734
One = "PyLong_FromLong(1)"
3835
True_ = "(Py_INCREF(Py_True), Py_True)"
@@ -123,6 +120,9 @@ def build_func_data(types, f):
123120
return func_data
124121

125122
def TD(types, f=None, astype=None, in_=None, out=None, simd=None):
123+
"""
124+
Generate a TypeDescription instance for each item in types
125+
"""
126126
if f is not None:
127127
if isinstance(f, str):
128128
func_data = build_func_data(types, f)
@@ -161,7 +161,7 @@ class Ufunc:
161161
----------
162162
nin : number of input arguments
163163
nout : number of output arguments
164-
identity : identity element for a two-argument function
164+
identity : identity element for a two-argument function (like Zero)
165165
docstring : docstring for the ufunc
166166
type_descriptions : list of TypeDescription objects
167167
"""
@@ -241,7 +241,7 @@ def english_upper(s):
241241
# We sometimes need int64, but we have no obvious char for it, use k and
242242
# define it as `int64` below.
243243
'k': 'int64',
244-
'K': 'uint64',
244+
'K': 'uint64',
245245
'q': 'longlong',
246246
'Q': 'ulonglong',
247247
'e': 'half',

0 commit comments

Comments
 (0)