Skip to content

Commit 534bc1d

Browse files
committed
tools: format like func.pyx.
1 parent 31a0349 commit 534bc1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/generate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
5454
from .common cimport _ta_check_success
5555
56-
ctypedef int TA_RetCode
57-
5856
cdef double NaN = nan
5957
6058
cdef extern from "numpy/arrayobject.h":
@@ -66,6 +64,7 @@
6664
np.import_array() # Initialize the NumPy C API
6765
6866
cimport libc as lib
67+
from libc cimport TA_RetCode
6968
""")
7069

7170
# cleanup variable names to make them more pythonic

0 commit comments

Comments
 (0)