
#
# Autogenerated by Thrift
#
# DO NOT EDIT
#  @generated
#

from cpython.ref cimport PyObject
from libcpp.utility cimport move as __move
from folly.iobuf cimport (
    from_unique_ptr as __IOBuf_from_unique_ptr,
    IOBuf as __IOBuf,
)
from thrift.python.serializer import (
    deserialize as __deserialize,
    Protocol as __Protocol,
    serialize_iobuf as __serialize_iobuf,
)
import module.thrift_types as __thrift_types

cdef api int can_extract__module__Mixin1(object __obj) except -1:
    return 1 if isinstance(__obj, __thrift_types.Mixin1) else 0


cdef api object init__module__Mixin1(object data):
    return __thrift_types.Mixin1._fbthrift_create(data)

cdef api int can_extract__module__Mixin2(object __obj) except -1:
    return 1 if isinstance(__obj, __thrift_types.Mixin2) else 0


cdef api object init__module__Mixin2(object data):
    return __thrift_types.Mixin2._fbthrift_create(data)

cdef api int can_extract__module__Mixin3Base(object __obj) except -1:
    return 1 if isinstance(__obj, __thrift_types.Mixin3Base) else 0


cdef api object init__module__Mixin3Base(object data):
    return __thrift_types.Mixin3Base._fbthrift_create(data)

cdef api int can_extract__module__Foo(object __obj) except -1:
    return 1 if isinstance(__obj, __thrift_types.Foo) else 0


cdef api object init__module__Foo(object data):
    return __thrift_types.Foo._fbthrift_create(data)

