Skip to content

Commit 0333ee7

Browse files
Merge pull request #609 from insertinterestingnamehere/pxd_cleanup
Pxd cleanup
2 parents cae0423 + d456970 commit 0333ee7

17 files changed

Lines changed: 22 additions & 26 deletions

dynd/cpp/array.pxd

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ from libcpp.map cimport map
55
from libcpp.string cimport string
66
from libcpp.vector cimport vector
77
from .type cimport type
8-
from .func.callable cimport callable
98

109
cdef extern from 'dynd/array.hpp' namespace 'dynd::nd' nogil:
1110

@@ -31,8 +30,6 @@ cdef extern from 'dynd/array.hpp' namespace 'dynd::nd' nogil:
3130

3231
array p(string)
3332

34-
map[string, callable] get_properties()
35-
3633
char *data() const
3734
const char *cdata() const
3835

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ from libc.string cimport const_char
22
from libcpp.pair cimport pair
33
from libcpp cimport bool
44

5-
from ...config cimport translate_exception
6-
from ..array cimport array
7-
from ..type cimport type
5+
from ..config cimport translate_exception
6+
from .array cimport array
7+
from .type cimport type
88

99
ctypedef const_char* const_charptr
1010

@@ -21,4 +21,3 @@ cdef extern from 'dynd/callable.hpp' namespace 'dynd::nd' nogil:
2121

2222
callable make_callable 'dynd::nd::callable::make'[T](...) except +translate_exception
2323

24-
callable apply[T](T) except +translate_exception
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from libcpp.string cimport string
33

44
from .callable cimport callable
55

6-
from ...config cimport translate_exception
6+
from ..config cimport translate_exception
77

88
cdef extern from "dynd/callable_registry.hpp" namespace "dynd::nd" nogil:
99
cdef cppclass callable_registry:

dynd/cpp/func/elwise.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .callable cimport callable
1+
from ..callable cimport callable
22
from ...config cimport translate_exception
33

44
cdef extern from 'dynd/func/elwise.hpp' namespace 'dynd::nd::functional' nogil:

dynd/cpp/func/reduction.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .callable cimport callable
1+
from ..callable cimport callable
22
from ...config cimport translate_exception
33

44
cdef extern from 'dynd/func/reduction.hpp' namespace 'dynd::nd::functional' nogil:

dynd/cpp/functional.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from ..config cimport translate_exception
2+
from .callable cimport callable
3+
4+
cdef extern from "dynd/functional.hpp" namespace "dynd::nd::functional" nogil:
5+
callable apply(...) except +translate_exception

dynd/cpp/json_parser.pxd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ from .array cimport array
77
cdef extern from 'dynd/json_parser.hpp' namespace 'dynd::ndt::json':
88
type discover(string) except +translate_exception
99

10-
#cdef extern from 'dynd/parse.hpp' namespace 'dynd::nd::json':
11-
# array parse(type, string) except +translate_exception

dynd/cpp/type.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from .types.type_id cimport *
66

77
from ..config cimport translate_exception
88
from .array cimport array
9-
from .func.callable cimport callable
9+
from .callable cimport callable
1010

1111
cdef extern from 'dynd/type.hpp' namespace 'dynd::ndt' nogil:
1212
cdef cppclass type:

dynd/nd/array.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from cpython.object cimport PyObject
22

33
from ..cpp.array cimport array as _array
4-
from ..cpp.func.callable cimport callable as _callable
4+
from ..cpp.callable cimport callable as _callable
55
from ..cpp.type cimport type as _type
66

77
cdef api class array(object)[object dynd_nd_array_pywrapper,

0 commit comments

Comments
 (0)