Rearrange declarations to avoid circular imports.
Circular imports make import pxd's order sensitive, and violating this order results in hard to understand errors. As far as I can tell, this rearrangement removes the circular nature, and has no other side affects. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
# distutils: language = c++
|
||||
|
||||
from libc.stdint cimport *
|
||||
from capnp.includes.capnp_cpp cimport DynamicOrphan
|
||||
from capnp.helpers.non_circular cimport reraise_kj_exception
|
||||
|
||||
from capnp.includes.types cimport *
|
||||
@@ -20,6 +19,11 @@ cdef extern from "capnp/dynamic.h" namespace " ::capnp":
|
||||
cdef cppclass DynamicStruct_Builder" ::capnp::DynamicStruct::Builder":
|
||||
pass
|
||||
|
||||
cdef extern from "capnp/orphan.h" namespace " ::capnp":
|
||||
cdef cppclass DynamicOrphan" ::capnp::Orphan< ::capnp::DynamicValue>":
|
||||
DynamicValue.Builder get()
|
||||
DynamicValue.Reader getReader()
|
||||
|
||||
cdef extern from "capnp/schema.h" namespace " ::capnp":
|
||||
cdef cppclass Schema:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user