/* Generated by Cython 3.0.11 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "name": "apischema.deserialization.methods", "sources": [ "/home/runner/work/apischema/apischema/apischema/deserialization/methods.pyx" ] }, "module_name": "apischema.deserialization.methods" } END: Cython Metadata */ #ifndef PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN #endif /* PY_SSIZE_T_CLEAN */ #if defined(CYTHON_LIMITED_API) && 0 #ifndef Py_LIMITED_API #if CYTHON_LIMITED_API+0 > 0x03030000 #define Py_LIMITED_API CYTHON_LIMITED_API #else #define Py_LIMITED_API 0x03030000 #endif #endif #endif #include "Python.h" #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyFloat_FromString(obj) PyFloat_FromString(obj) #else #define __Pyx_PyFloat_FromString(obj) PyFloat_FromString(obj, NULL) #endif #if PY_MAJOR_VERSION <= 2 #define PyDict_GetItemWithError _PyDict_GetItemWithError #endif #if (PY_VERSION_HEX < 0x030700b1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030600)) && !defined(PyContextVar_Get) #define PyContextVar_Get(var, d, v) ((d) ? ((void)(var), Py_INCREF(d), (v)[0] = (d), 0) : ((v)[0] = NULL, 0) ) #endif #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02070000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.7+ or Python 3.3+. #else #if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API #define __PYX_EXTRA_ABI_MODULE_NAME "limited" #else #define __PYX_EXTRA_ABI_MODULE_NAME "" #endif #define CYTHON_ABI "3_0_11" __PYX_EXTRA_ABI_MODULE_NAME #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "." #define CYTHON_HEX_VERSION 0x03000BF0 #define CYTHON_FUTURE_DIVISION 1 #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #define __PYX_COMMA , #ifndef HAVE_LONG_LONG #define HAVE_LONG_LONG #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX #if defined(GRAALVM_PYTHON) /* For very preliminary testing purposes. Most variables are set the same as PyPy. The existence of this section does not imply that anything works or is even tested */ #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_LIMITED_API 0 #define CYTHON_COMPILING_IN_GRAAL 1 #define CYTHON_COMPILING_IN_NOGIL 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 0 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_GIL #define CYTHON_FAST_GIL 0 #undef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #ifndef CYTHON_PEP487_INIT_SUBCLASS #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3) #endif #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #undef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif #undef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 0 #elif defined(PYPY_VERSION) #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_LIMITED_API 0 #define CYTHON_COMPILING_IN_GRAAL 0 #define CYTHON_COMPILING_IN_NOGIL 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #ifndef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 0 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_GIL #define CYTHON_FAST_GIL 0 #undef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #ifndef CYTHON_PEP487_INIT_SUBCLASS #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3) #endif #if PY_VERSION_HEX < 0x03090000 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT) #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif #undef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00) #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif #undef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 0 #elif defined(CYTHON_LIMITED_API) #ifdef Py_LIMITED_API #undef __PYX_LIMITED_VERSION_HEX #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API #endif #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_LIMITED_API 1 #define CYTHON_COMPILING_IN_GRAAL 0 #define CYTHON_COMPILING_IN_NOGIL 0 #undef CYTHON_CLINE_IN_TRACEBACK #define CYTHON_CLINE_IN_TRACEBACK 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 1 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #endif #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_GIL #define CYTHON_FAST_GIL 0 #undef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #ifndef CYTHON_PEP487_INIT_SUBCLASS #define CYTHON_PEP487_INIT_SUBCLASS 1 #endif #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 1 #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #endif #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif #undef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 0 #elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_LIMITED_API 0 #define CYTHON_COMPILING_IN_GRAAL 0 #define CYTHON_COMPILING_IN_NOGIL 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #ifndef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 0 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #ifndef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 1 #endif #ifndef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_GIL #define CYTHON_FAST_GIL 0 #ifndef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL 1 #endif #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #ifndef CYTHON_PEP487_INIT_SUBCLASS #define CYTHON_PEP487_INIT_SUBCLASS 1 #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif #ifndef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 0 #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 1 #endif #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 #endif #ifndef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 0 #endif #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #define CYTHON_COMPILING_IN_LIMITED_API 0 #define CYTHON_COMPILING_IN_GRAAL 0 #define CYTHON_COMPILING_IN_NOGIL 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #ifndef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 0 #endif #ifndef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #ifndef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_GIL #define CYTHON_FAST_GIL (PY_MAJOR_VERSION < 3 || PY_VERSION_HEX >= 0x03060000 && PY_VERSION_HEX < 0x030C00A6) #endif #ifndef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL (PY_VERSION_HEX >= 0x030700A1) #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #ifndef CYTHON_PEP487_INIT_SUBCLASS #define CYTHON_PEP487_INIT_SUBCLASS 1 #endif #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT) #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif #ifndef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 0 #endif #if PY_VERSION_HEX < 0x030400a1 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #elif !defined(CYTHON_USE_TP_FINALIZE) #define CYTHON_USE_TP_FINALIZE 1 #endif #if PY_VERSION_HEX < 0x030600B1 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #elif !defined(CYTHON_USE_DICT_VERSIONS) #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX < 0x030C00A5) #endif #if PY_VERSION_HEX < 0x030700A3 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #elif !defined(CYTHON_USE_EXC_INFO_STACK) #define CYTHON_USE_EXC_INFO_STACK 1 #endif #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 #endif #ifndef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if !defined(CYTHON_VECTORCALL) #define CYTHON_VECTORCALL (CYTHON_FAST_PYCCALL && PY_VERSION_HEX >= 0x030800B1) #endif #define CYTHON_BACKPORT_VECTORCALL (CYTHON_METH_FASTCALL && PY_VERSION_HEX < 0x030800B1) #if CYTHON_USE_PYLONG_INTERNALS #if PY_MAJOR_VERSION < 3 #include "longintrepr.h" #endif #undef SHIFT #undef BASE #undef MASK #ifdef SIZEOF_VOID_P enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) }; #endif #endif #ifndef __has_attribute #define __has_attribute(x) 0 #endif #ifndef __has_cpp_attribute #define __has_cpp_attribute(x) 0 #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED #if defined(__cplusplus) /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17 * but leads to warnings with -pedantic, since it is a C++17 feature */ #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) #if __has_cpp_attribute(maybe_unused) #define CYTHON_UNUSED [[maybe_unused]] #endif #endif #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_UNUSED_VAR # if defined(__cplusplus) template void CYTHON_UNUSED_VAR( const T& ) { } # else # define CYTHON_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x) #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #ifndef CYTHON_USE_CPP_STD_MOVE #if defined(__cplusplus) && (\ __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)) #define CYTHON_USE_CPP_STD_MOVE 1 #else #define CYTHON_USE_CPP_STD_MOVE 0 #endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifdef _MSC_VER #ifndef _MSC_STDINT_H_ #if _MSC_VER < 1300 typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; #else typedef unsigned __int8 uint8_t; typedef unsigned __int16 uint16_t; typedef unsigned __int32 uint32_t; #endif #endif #if _MSC_VER < 1300 #ifdef _WIN64 typedef unsigned long long __pyx_uintptr_t; #else typedef unsigned int __pyx_uintptr_t; #endif #else #ifdef _WIN64 typedef unsigned __int64 __pyx_uintptr_t; #else typedef unsigned __int32 __pyx_uintptr_t; #endif #endif #else #include typedef uintptr_t __pyx_uintptr_t; #endif #ifndef CYTHON_FALLTHROUGH #if defined(__cplusplus) /* for clang __has_cpp_attribute(fallthrough) is true even before C++17 * but leads to warnings with -pedantic, since it is a C++17 feature */ #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) #if __has_cpp_attribute(fallthrough) #define CYTHON_FALLTHROUGH [[fallthrough]] #endif #endif #ifndef CYTHON_FALLTHROUGH #if __has_cpp_attribute(clang::fallthrough) #define CYTHON_FALLTHROUGH [[clang::fallthrough]] #elif __has_cpp_attribute(gnu::fallthrough) #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] #endif #endif #endif #ifndef CYTHON_FALLTHROUGH #if __has_attribute(fallthrough) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #else #define CYTHON_FALLTHROUGH #endif #endif #if defined(__clang__) && defined(__apple_build_version__) #if __apple_build_version__ < 7000000 #undef CYTHON_FALLTHROUGH #define CYTHON_FALLTHROUGH #endif #endif #endif #ifdef __cplusplus template struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);}; #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL::value) #else #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0) #endif #if CYTHON_COMPILING_IN_PYPY == 1 #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x030A0000) #else #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000) #endif #define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer)) #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #elif defined(__GNUC__) #define CYTHON_INLINE __inline__ #elif defined(_MSC_VER) #define CYTHON_INLINE __inline #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_INLINE inline #else #define CYTHON_INLINE #endif #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_DefaultClassType PyClass_Type #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_DefaultClassType PyType_Type #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_INLINE PyObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f, PyObject *code, PyObject *c, PyObject* n, PyObject *v, PyObject *fv, PyObject *cell, PyObject* fn, PyObject *name, int fline, PyObject *lnos) { PyObject *exception_table = NULL; PyObject *types_module=NULL, *code_type=NULL, *result=NULL; #if __PYX_LIMITED_VERSION_HEX < 0x030B0000 PyObject *version_info; PyObject *py_minor_version = NULL; #endif long minor_version = 0; PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); #if __PYX_LIMITED_VERSION_HEX >= 0x030B0000 minor_version = 11; #else if (!(version_info = PySys_GetObject("version_info"))) goto end; if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end; minor_version = PyLong_AsLong(py_minor_version); Py_DECREF(py_minor_version); if (minor_version == -1 && PyErr_Occurred()) goto end; #endif if (!(types_module = PyImport_ImportModule("types"))) goto end; if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end; if (minor_version <= 7) { (void)p; result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOO", a, k, l, s, f, code, c, n, v, fn, name, fline, lnos, fv, cell); } else if (minor_version <= 10) { result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOO", a,p, k, l, s, f, code, c, n, v, fn, name, fline, lnos, fv, cell); } else { if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end; result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOO", a,p, k, l, s, f, code, c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell); } end: Py_XDECREF(code_type); Py_XDECREF(exception_table); Py_XDECREF(types_module); if (type) { PyErr_Restore(type, value, traceback); } return result; } #ifndef CO_OPTIMIZED #define CO_OPTIMIZED 0x0001 #endif #ifndef CO_NEWLOCALS #define CO_NEWLOCALS 0x0002 #endif #ifndef CO_VARARGS #define CO_VARARGS 0x0004 #endif #ifndef CO_VARKEYWORDS #define CO_VARKEYWORDS 0x0008 #endif #ifndef CO_ASYNC_GENERATOR #define CO_ASYNC_GENERATOR 0x0200 #endif #ifndef CO_GENERATOR #define CO_GENERATOR 0x0020 #endif #ifndef CO_COROUTINE #define CO_COROUTINE 0x0080 #endif #elif PY_VERSION_HEX >= 0x030B0000 static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f, PyObject *code, PyObject *c, PyObject* n, PyObject *v, PyObject *fv, PyObject *cell, PyObject* fn, PyObject *name, int fline, PyObject *lnos) { PyCodeObject *result; PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); if (!empty_bytes) return NULL; result = #if PY_VERSION_HEX >= 0x030C0000 PyUnstable_Code_NewWithPosOnlyArgs #else PyCode_NewWithPosOnlyArgs #endif (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, empty_bytes); Py_DECREF(empty_bytes); return result; } #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #else #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #endif #endif #if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE) #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type) #else #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type)) #endif #if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is) #define __Pyx_Py_Is(x, y) Py_Is(x, y) #else #define __Pyx_Py_Is(x, y) ((x) == (y)) #endif #if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone) #define __Pyx_Py_IsNone(ob) Py_IsNone(ob) #else #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None) #endif #if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue) #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob) #else #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True) #endif #if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse) #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob) #else #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False) #endif #define __Pyx_NoneAsNull(obj) (__Pyx_Py_IsNone(obj) ? NULL : (obj)) #if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o) #else #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o) #endif #ifndef CO_COROUTINE #define CO_COROUTINE 0x80 #endif #ifndef CO_ASYNC_GENERATOR #define CO_ASYNC_GENERATOR 0x200 #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef Py_TPFLAGS_SEQUENCE #define Py_TPFLAGS_SEQUENCE 0 #endif #ifndef Py_TPFLAGS_MAPPING #define Py_TPFLAGS_MAPPING 0 #endif #ifndef METH_STACKLESS #define METH_STACKLESS 0 #endif #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 #endif typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else #if PY_VERSION_HEX >= 0x030d00A4 # define __Pyx_PyCFunctionFast PyCFunctionFast # define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords #else # define __Pyx_PyCFunctionFast _PyCFunctionFast # define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #endif #if CYTHON_METH_FASTCALL #define __Pyx_METH_FASTCALL METH_FASTCALL #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords #else #define __Pyx_METH_FASTCALL METH_VARARGS #define __Pyx_PyCFunction_FastCall PyCFunction #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords #endif #if CYTHON_VECTORCALL #define __pyx_vectorcallfunc vectorcallfunc #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET PY_VECTORCALL_ARGUMENTS_OFFSET #define __Pyx_PyVectorcall_NARGS(n) PyVectorcall_NARGS((size_t)(n)) #elif CYTHON_BACKPORT_VECTORCALL typedef PyObject *(*__pyx_vectorcallfunc)(PyObject *callable, PyObject *const *args, size_t nargsf, PyObject *kwnames); #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1)) #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(((size_t)(n)) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)) #else #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET 0 #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(n)) #endif #if PY_MAJOR_VERSION >= 0x030900B1 #define __Pyx_PyCFunction_CheckExact(func) PyCFunction_CheckExact(func) #else #define __Pyx_PyCFunction_CheckExact(func) PyCFunction_Check(func) #endif #define __Pyx_CyOrPyCFunction_Check(func) PyCFunction_Check(func) #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_CyOrPyCFunction_GET_FUNCTION(func) (((PyCFunctionObject*)(func))->m_ml->ml_meth) #elif !CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_CyOrPyCFunction_GET_FUNCTION(func) PyCFunction_GET_FUNCTION(func) #endif #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_CyOrPyCFunction_GET_FLAGS(func) (((PyCFunctionObject*)(func))->m_ml->ml_flags) static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) { return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self; } #endif static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void *cfunc) { #if CYTHON_COMPILING_IN_LIMITED_API return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc; #else return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc; #endif } #define __Pyx_IsSameCFunction(func, cfunc) __Pyx__IsSameCFunction(func, cfunc) #if __PYX_LIMITED_VERSION_HEX < 0x030900B1 #define __Pyx_PyType_FromModuleAndSpec(m, s, b) ((void)m, PyType_FromSpecWithBases(s, b)) typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *); #else #define __Pyx_PyType_FromModuleAndSpec(m, s, b) PyType_FromModuleAndSpec(m, s, b) #define __Pyx_PyCMethod PyCMethod #endif #ifndef METH_METHOD #define METH_METHOD 0x200 #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #if CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_PyThreadState_Current PyThreadState_Get() #elif !CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_Current PyThreadState_GET() #elif PY_VERSION_HEX >= 0x030d00A1 #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked() #elif PY_VERSION_HEX >= 0x03060000 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #else #define __Pyx_PyThreadState_Current _PyThreadState_Current #endif #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_INLINE void *__Pyx_PyModule_GetState(PyObject *op) { void *result; result = PyModule_GetState(op); if (!result) Py_FatalError("Couldn't find the module state"); return result; } #endif #define __Pyx_PyObject_GetSlot(obj, name, func_ctype) __Pyx_PyType_GetSlot(Py_TYPE(obj), name, func_ctype) #if CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((func_ctype) PyType_GetSlot((type), Py_##name)) #else #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((type)->name) #endif #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) #include "pythread.h" #define Py_tss_NEEDS_INIT 0 typedef int Py_tss_t; static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { *key = PyThread_create_key(); return 0; } static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); *key = Py_tss_NEEDS_INIT; return key; } static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { PyObject_Free(key); } static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { return *key != Py_tss_NEEDS_INIT; } static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { PyThread_delete_key(*key); *key = Py_tss_NEEDS_INIT; } static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { return PyThread_set_key_value(*key, value); } static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { return PyThread_get_key_value(*key); } #endif #if PY_MAJOR_VERSION < 3 #if CYTHON_COMPILING_IN_PYPY #if PYPY_VERSION_NUM < 0x07030600 #if defined(__cplusplus) && __cplusplus >= 201402L [[deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")]] #elif defined(__GNUC__) || defined(__clang__) __attribute__ ((__deprecated__("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6"))) #elif defined(_MSC_VER) __declspec(deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")) #endif static CYTHON_INLINE int PyGILState_Check(void) { return 0; } #else // PYPY_VERSION_NUM < 0x07030600 #endif // PYPY_VERSION_NUM < 0x07030600 #else static CYTHON_INLINE int PyGILState_Check(void) { PyThreadState * tstate = _PyThreadState_Current; return tstate && (tstate == PyGILState_GetThisThreadState()); } #endif #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000 || defined(_PyDict_NewPresized) #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) #else #define __Pyx_PyDict_NewPresized(n) PyDict_New() #endif #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && PY_VERSION_HEX < 0x030d0000 && CYTHON_USE_UNICODE_INTERNALS #define __Pyx_PyDict_GetItemStrWithError(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) { PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name); if (res == NULL) PyErr_Clear(); return res; } #elif PY_MAJOR_VERSION >= 3 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000) #define __Pyx_PyDict_GetItemStrWithError PyDict_GetItemWithError #define __Pyx_PyDict_GetItemStr PyDict_GetItem #else static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) { #if CYTHON_COMPILING_IN_PYPY return PyDict_GetItem(dict, name); #else PyDictEntry *ep; PyDictObject *mp = (PyDictObject*) dict; long hash = ((PyStringObject *) name)->ob_shash; assert(hash != -1); ep = (mp->ma_lookup)(mp, name, hash); if (ep == NULL) { return NULL; } return ep->me_value; #endif } #define __Pyx_PyDict_GetItemStr PyDict_GetItem #endif #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyType_GetFlags(tp) (((PyTypeObject *)tp)->tp_flags) #define __Pyx_PyType_HasFeature(type, feature) ((__Pyx_PyType_GetFlags(type) & (feature)) != 0) #define __Pyx_PyObject_GetIterNextFunc(obj) (Py_TYPE(obj)->tp_iternext) #else #define __Pyx_PyType_GetFlags(tp) (PyType_GetFlags((PyTypeObject *)tp)) #define __Pyx_PyType_HasFeature(type, feature) PyType_HasFeature(type, feature) #define __Pyx_PyObject_GetIterNextFunc(obj) PyIter_Next #endif #if CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_SetItemOnTypeDict(tp, k, v) PyObject_GenericSetAttr((PyObject*)tp, k, v) #else #define __Pyx_SetItemOnTypeDict(tp, k, v) PyDict_SetItem(tp->tp_dict, k, v) #endif #if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX >= 0x03080000 #define __Pyx_PyHeapTypeObject_GC_Del(obj) {\ PyTypeObject *type = Py_TYPE((PyObject*)obj);\ assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\ PyObject_GC_Del(obj);\ Py_DECREF(type);\ } #else #define __Pyx_PyHeapTypeObject_GC_Del(obj) PyObject_GC_Del(obj) #endif #if CYTHON_COMPILING_IN_LIMITED_API #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GetLength(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((void)u, 1114111U) #define __Pyx_PyUnicode_KIND(u) ((void)u, (0)) #define __Pyx_PyUnicode_DATA(u) ((void*)u) #define __Pyx_PyUnicode_READ(k, d, i) ((void)k, PyUnicode_ReadChar((PyObject*)(d), i)) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GetLength(u)) #elif PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #if PY_VERSION_HEX >= 0x030C0000 #define __Pyx_PyUnicode_READY(op) (0) #else #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #endif #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) ((int)PyUnicode_KIND(u)) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, (Py_UCS4) ch) #if PY_VERSION_HEX >= 0x030C0000 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u)) #else #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length)) #else #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #endif #endif #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535U : 1114111U) #define __Pyx_PyUnicode_KIND(u) ((int)sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE) ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY #if !defined(PyUnicode_DecodeUnicodeEscape) #define PyUnicode_DecodeUnicodeEscape(s, size, errors) PyUnicode_Decode(s, size, "unicode_escape", errors) #endif #if !defined(PyUnicode_Contains) || (PY_MAJOR_VERSION == 2 && PYPY_VERSION_NUM < 0x07030500) #undef PyUnicode_Contains #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #ifndef PyObject_Unicode #define PyObject_Unicode PyObject_Str #endif #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_PySequence_ListKeepNew(obj)\ (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj)) #else #define __Pyx_PySequence_ListKeepNew(obj) PySequence_List(obj) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) __Pyx_IS_TYPE(obj, &PySet_Type) #endif #if PY_VERSION_HEX >= 0x030900A4 #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt) #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size) #else #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt) #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size) #endif #if CYTHON_ASSUME_SAFE_MACROS #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i) #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0)) #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0)) #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o) #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o) #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o) #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o) #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o) #else #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i) #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v) #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v) #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o) #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o) #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o) #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o) #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o) #endif #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) #else static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { PyObject *module = PyImport_AddModule(name); Py_XINCREF(module); return module; } #endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define __Pyx_Py3Int_Check(op) PyLong_Check(op) #define __Pyx_Py3Int_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #else #define __Pyx_Py3Int_Check(op) (PyLong_Check(op) || PyInt_Check(op)) #define __Pyx_Py3Int_CheckExact(op) (PyLong_CheckExact(op) || PyInt_CheckExact(op)) #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef __Pyx_PyAsyncMethodsStruct typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #endif #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) #if !defined(_USE_MATH_DEFINES) #define _USE_MATH_DEFINES #endif #endif #include #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_MARK_ERR_POS(f_index, lineno) \ { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } #define __PYX_ERR(f_index, lineno, Ln_error) \ { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; } #ifdef CYTHON_EXTERN_C #undef __PYX_EXTERN_C #define __PYX_EXTERN_C CYTHON_EXTERN_C #elif defined(__PYX_EXTERN_C) #ifdef _MSC_VER #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.") #else #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead. #endif #else #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__apischema__deserialization__methods #define __PYX_HAVE_API__apischema__deserialization__methods /* Early includes */ #include #include #include #include "pythread.h" #ifdef _OPENMP #include #endif /* _OPENMP */ #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8) #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) { return (size_t) i < (size_t) limit; } #if defined (__cplusplus) && __cplusplus >= 201103L #include #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s); static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*); #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyObject_AsWritableString(s) ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableSString(s) ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o) #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); #define __Pyx_PySequence_Tuple(obj)\ (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #if CYTHON_USE_PYLONG_INTERNALS #if PY_VERSION_HEX >= 0x030C00A7 #ifndef _PyLong_SIGN_MASK #define _PyLong_SIGN_MASK 3 #endif #ifndef _PyLong_NON_SIZE_BITS #define _PyLong_NON_SIZE_BITS 3 #endif #define __Pyx_PyLong_Sign(x) (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK) #define __Pyx_PyLong_IsNeg(x) ((__Pyx_PyLong_Sign(x) & 2) != 0) #define __Pyx_PyLong_IsNonNeg(x) (!__Pyx_PyLong_IsNeg(x)) #define __Pyx_PyLong_IsZero(x) (__Pyx_PyLong_Sign(x) & 1) #define __Pyx_PyLong_IsPos(x) (__Pyx_PyLong_Sign(x) == 0) #define __Pyx_PyLong_CompactValueUnsigned(x) (__Pyx_PyLong_Digits(x)[0]) #define __Pyx_PyLong_DigitCount(x) ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS)) #define __Pyx_PyLong_SignedDigitCount(x)\ ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x)) #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue) #define __Pyx_PyLong_IsCompact(x) PyUnstable_Long_IsCompact((PyLongObject*) x) #define __Pyx_PyLong_CompactValue(x) PyUnstable_Long_CompactValue((PyLongObject*) x) #else #define __Pyx_PyLong_IsCompact(x) (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS)) #define __Pyx_PyLong_CompactValue(x) ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0]) #endif typedef Py_ssize_t __Pyx_compact_pylong; typedef size_t __Pyx_compact_upylong; #else #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0) #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0) #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0) #define __Pyx_PyLong_IsPos(x) (Py_SIZE(x) > 0) #define __Pyx_PyLong_CompactValueUnsigned(x) ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0]) #define __Pyx_PyLong_DigitCount(x) __Pyx_sst_abs(Py_SIZE(x)) #define __Pyx_PyLong_SignedDigitCount(x) Py_SIZE(x) #define __Pyx_PyLong_IsCompact(x) (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1) #define __Pyx_PyLong_CompactValue(x)\ ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0])) typedef sdigit __Pyx_compact_pylong; typedef digit __Pyx_compact_upylong; #endif #if PY_VERSION_HEX >= 0x030C00A5 #define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->long_value.ob_digit) #else #define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->ob_digit) #endif #endif #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII #include static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = (char) c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #include static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } #if !CYTHON_USE_MODULE_STATE static PyObject *__pyx_m = NULL; #endif static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm = __FILE__; static const char *__pyx_filename; /* #### Code section: filename_table ### */ static const char *__pyx_f[] = { "apischema/deserialization/methods.pyx", "contextvars.pxd", "", "type.pxd", "bool.pxd", "complex.pxd", }; /* #### Code section: utility_code_proto_before_types ### */ /* ForceInitThreads.proto */ #ifndef __PYX_FORCE_INIT_THREADS #define __PYX_FORCE_INIT_THREADS 0 #endif /* #### Code section: numeric_typedefs ### */ /* #### Code section: complex_type_declarations ### */ /* #### Code section: type_declarations ### */ /*--- Type declarations ---*/ struct __pyx_obj_9apischema_15deserialization_7methods_Constraint; struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod; struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod; struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod; struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod; struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod; struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod; struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod; struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod; struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod; struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly; struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod; struct __pyx_obj_9apischema_15deserialization_7methods_Field; struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField; struct __pyx_obj_9apischema_15deserialization_7methods_PatternField; struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField; struct __pyx_obj_9apischema_15deserialization_7methods_Constructor; struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor; struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor; struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy; struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField; struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField; struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor; struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod; struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod; struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod; struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod; struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod; struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod; struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod; struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod; struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod; struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod; struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod; struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated; struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod; struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize; struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr; struct __pyx_opt_args_7cpython_11contextvars_get_value; struct __pyx_opt_args_7cpython_11contextvars_get_value_no_default; /* "cpython/contextvars.pxd":112 * * * cdef inline object get_value(var, default_value=None): # <<<<<<<<<<<<<< * """Return a new reference to the value of the context variable, * or the default value of the context variable, */ struct __pyx_opt_args_7cpython_11contextvars_get_value { int __pyx_n; PyObject *default_value; }; /* "cpython/contextvars.pxd":129 * * * cdef inline object get_value_no_default(var, default_value=None): # <<<<<<<<<<<<<< * """Return a new reference to the value of the context variable, * or the provided default value if no such value was found. */ struct __pyx_opt_args_7cpython_11contextvars_get_value_no_default { int __pyx_n; PyObject *default_value; }; /* "apischema/deserialization/methods.pyx":34 * * * cdef class Constraint(): # <<<<<<<<<<<<<< * cdef readonly object error * cdef int _dispatch */ struct __pyx_obj_9apischema_15deserialization_7methods_Constraint { PyObject_HEAD PyObject *error; int _dispatch; }; /* "apischema/deserialization/methods.pyx":41 * self.error = error * * cdef class MinimumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long minimum * */ struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_vtab; long minimum; }; /* "apischema/deserialization/methods.pyx":52 * self._dispatch = 0 * * cdef class MaximumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long maximum * */ struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_vtab; long maximum; }; /* "apischema/deserialization/methods.pyx":63 * self._dispatch = 1 * * cdef class ExclusiveMinimumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long exc_min * */ struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_vtab; long exc_min; }; /* "apischema/deserialization/methods.pyx":74 * self._dispatch = 2 * * cdef class ExclusiveMaximumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long exc_max * */ struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_vtab; long exc_max; }; /* "apischema/deserialization/methods.pyx":85 * self._dispatch = 3 * * cdef class MultipleOfConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long mult_of * */ struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_vtab; long mult_of; }; /* "apischema/deserialization/methods.pyx":96 * self._dispatch = 4 * * cdef class MinLengthConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long min_len * */ struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_vtab; long min_len; }; /* "apischema/deserialization/methods.pyx":107 * self._dispatch = 5 * * cdef class MaxLengthConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long max_len * */ struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_vtab; long max_len; }; /* "apischema/deserialization/methods.pyx":118 * self._dispatch = 6 * * cdef class PatternConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly object pattern * */ struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_PatternConstraint *__pyx_vtab; PyObject *pattern; }; /* "apischema/deserialization/methods.pyx":129 * self._dispatch = 7 * * cdef class MinItemsConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long min_items * */ struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_vtab; long min_items; }; /* "apischema/deserialization/methods.pyx":140 * self._dispatch = 8 * * cdef class MaxItemsConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long max_items * */ struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_vtab; long max_items; }; /* "apischema/deserialization/methods.pyx":151 * self._dispatch = 9 * * cdef class UniqueItemsConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly bint unique * */ struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_vtab; int unique; }; /* "apischema/deserialization/methods.pyx":163 * self._dispatch = 10 * * cdef class MinPropertiesConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long min_properties * */ struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_vtab; long min_properties; }; /* "apischema/deserialization/methods.pyx":174 * self._dispatch = 11 * * cdef class MaxPropertiesConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long max_properties * */ struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_vtab; long max_properties; }; /* "apischema/deserialization/methods.pyx":185 * self._dispatch = 12 * * cdef class DeserializationMethod(): # <<<<<<<<<<<<<< * cdef int _dispatch * */ struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod { PyObject_HEAD int _dispatch; }; /* "apischema/deserialization/methods.pyx":188 * cdef int _dispatch * * cdef class RecMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object lazy * cdef readonly object method */ struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RecMethod *__pyx_vtab; PyObject *lazy; PyObject *method; }; /* "apischema/deserialization/methods.pyx":200 * self._dispatch = 0 * * cdef class ValidatorMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly object validators */ struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_vtab; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; PyObject *validators; PyObject *aliaser; }; /* "apischema/deserialization/methods.pyx":214 * self._dispatch = 1 * * cdef class CoercerMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object coercer * cdef readonly type cls */ struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_CoercerMethod *__pyx_vtab; PyObject *coercer; PyTypeObject *cls; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; }; /* "apischema/deserialization/methods.pyx":228 * self._dispatch = 2 * * cdef class TypeCheckMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object expected * cdef readonly DeserializationMethod fallback */ struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_vtab; PyObject *expected; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *fallback; }; /* "apischema/deserialization/methods.pyx":240 * self._dispatch = 3 * * cdef class AnyMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly dict constraints * */ struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_AnyMethod *__pyx_vtab; PyObject *constraints; }; /* "apischema/deserialization/methods.pyx":250 * self._dispatch = 4 * * cdef class ListCheckOnlyMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method */ struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_vtab; PyObject *constraints; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *value_method; }; /* "apischema/deserialization/methods.pyx":262 * self._dispatch = 5 * * cdef class ListMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method */ struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListMethod *__pyx_vtab; PyObject *constraints; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *value_method; }; /* "apischema/deserialization/methods.pyx":274 * self._dispatch = 6 * * cdef class SetMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method */ struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SetMethod *__pyx_vtab; PyObject *constraints; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *value_method; }; /* "apischema/deserialization/methods.pyx":286 * self._dispatch = 7 * * cdef class FrozenSetMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_vtab; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; }; /* "apischema/deserialization/methods.pyx":296 * self._dispatch = 8 * * cdef class VariadicTupleMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_vtab; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; }; /* "apischema/deserialization/methods.pyx":306 * self._dispatch = 9 * * cdef class LiteralMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly dict value_map * cdef readonly object error */ struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_LiteralMethod *__pyx_vtab; PyObject *value_map; PyObject *error; PyObject *coercer; PyObject *types; }; /* "apischema/deserialization/methods.pyx":322 * self._dispatch = 10 * * cdef class MappingCheckOnly(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method */ struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_vtab; PyObject *constraints; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *key_method; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *value_method; }; /* "apischema/deserialization/methods.pyx":336 * self._dispatch = 11 * * cdef class MappingMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method */ struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingMethod *__pyx_vtab; PyObject *constraints; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *key_method; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *value_method; }; /* "apischema/deserialization/methods.pyx":350 * self._dispatch = 12 * * cdef class Field(): # <<<<<<<<<<<<<< * cdef readonly str name * cdef readonly str alias */ struct __pyx_obj_9apischema_15deserialization_7methods_Field { PyObject_HEAD PyObject *name; PyObject *alias; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; int required; PyObject *required_by; int fall_back_on_default; }; /* "apischema/deserialization/methods.pyx":366 * self.fall_back_on_default = fall_back_on_default * * cdef class FlattenedField(): # <<<<<<<<<<<<<< * cdef readonly str name * cdef readonly tuple aliases */ struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField { PyObject_HEAD PyObject *name; PyObject *aliases; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; int fall_back_on_default; }; /* "apischema/deserialization/methods.pyx":378 * self.fall_back_on_default = fall_back_on_default * * cdef class PatternField(): # <<<<<<<<<<<<<< * cdef readonly str name * cdef readonly object pattern */ struct __pyx_obj_9apischema_15deserialization_7methods_PatternField { PyObject_HEAD PyObject *name; PyObject *pattern; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; int fall_back_on_default; }; /* "apischema/deserialization/methods.pyx":390 * self.fall_back_on_default = fall_back_on_default * * cdef class AdditionalField(): # <<<<<<<<<<<<<< * cdef readonly str name * cdef readonly DeserializationMethod method */ struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField { PyObject_HEAD PyObject *name; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; int fall_back_on_default; }; /* "apischema/deserialization/methods.pyx":400 * self.fall_back_on_default = fall_back_on_default * * cdef class Constructor(): # <<<<<<<<<<<<<< * cdef readonly object cls * cdef int _dispatch */ struct __pyx_obj_9apischema_15deserialization_7methods_Constructor { PyObject_HEAD PyObject *cls; int _dispatch; }; /* "apischema/deserialization/methods.pyx":407 * self.cls = cls * * cdef class NoConstructor(Constructor): # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor { struct __pyx_obj_9apischema_15deserialization_7methods_Constructor __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoConstructor *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":416 * self._dispatch = 0 * * cdef class RawConstructor(Constructor): # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor { struct __pyx_obj_9apischema_15deserialization_7methods_Constructor __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructor *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":425 * self._dispatch = 1 * * cdef class RawConstructorCopy(Constructor): # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy { struct __pyx_obj_9apischema_15deserialization_7methods_Constructor __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":434 * self._dispatch = 2 * * cdef class DefaultField(): # <<<<<<<<<<<<<< * cdef readonly str name * cdef readonly object default_value */ struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField { PyObject_HEAD PyObject *name; PyObject *default_value; }; /* "apischema/deserialization/methods.pyx":442 * self.default_value = default_value * * cdef class FactoryField(): # <<<<<<<<<<<<<< * cdef readonly str name * cdef readonly object factory */ struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField { PyObject_HEAD PyObject *name; PyObject *factory; }; /* "apischema/deserialization/methods.pyx":450 * self.factory = factory * * cdef class FieldsConstructor(Constructor): # <<<<<<<<<<<<<< * cdef readonly long nb_fields * cdef readonly tuple default_fields */ struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor { struct __pyx_obj_9apischema_15deserialization_7methods_Constructor __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_vtab; long nb_fields; PyObject *default_fields; PyObject *factory_fields; }; /* "apischema/deserialization/methods.pyx":465 * self._dispatch = 3 * * cdef class SimpleObjectMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly Constructor constructor * cdef readonly tuple fields */ struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_vtab; struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *constructor; PyObject *fields; PyObject *all_aliases; int typed_dict; PyObject *missing; PyObject *unexpected; }; /* "apischema/deserialization/methods.pyx":485 * self._dispatch = 13 * * cdef class ObjectMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly Constructor constructor * cdef readonly tuple constraints */ struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ObjectMethod *__pyx_vtab; struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *constructor; PyObject *constraints; PyObject *fields; PyObject *flattened_fields; PyObject *pattern_fields; PyObject *additional_field; PyObject *all_aliases; int additional_properties; int typed_dict; PyObject *validators; PyObject *init_defaults; PyObject *post_init_modified; PyObject *aliaser; PyObject *missing; PyObject *unexpected; int aggregate_fields; }; /* "apischema/deserialization/methods.pyx":529 * self._dispatch = 14 * * cdef class NoneMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoneMethod *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":537 * self._dispatch = 15 * * cdef class IntMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_IntMethod *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":545 * self._dispatch = 16 * * cdef class FloatMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FloatMethod *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":553 * self._dispatch = 18 * * cdef class StrMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_StrMethod *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":561 * self._dispatch = 20 * * cdef class BoolMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_BoolMethod *__pyx_vtab; }; /* "apischema/deserialization/methods.pyx":569 * self._dispatch = 22 * * cdef class ConstrainedIntMethod(IntMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * */ struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod { struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod __pyx_base; PyObject *constraints; }; /* "apischema/deserialization/methods.pyx":579 * self._dispatch = 17 * * cdef class ConstrainedFloatMethod(FloatMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * */ struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod { struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod __pyx_base; PyObject *constraints; }; /* "apischema/deserialization/methods.pyx":589 * self._dispatch = 19 * * cdef class ConstrainedStrMethod(StrMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * */ struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod { struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod __pyx_base; PyObject *constraints; }; /* "apischema/deserialization/methods.pyx":599 * self._dispatch = 21 * * cdef class SubprimitiveMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly type cls * cdef readonly DeserializationMethod method */ struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_vtab; PyTypeObject *cls; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; }; /* "apischema/deserialization/methods.pyx":611 * self._dispatch = 23 * * cdef class TupleMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly object min_len_error */ struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TupleMethod *__pyx_vtab; PyObject *constraints; PyObject *min_len_error; PyObject *max_len_error; PyObject *elt_methods; }; /* "apischema/deserialization/methods.pyx":627 * self._dispatch = 24 * * cdef class OptionalMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * cdef readonly object coercer */ struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_OptionalMethod *__pyx_vtab; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *value_method; PyObject *coercer; }; /* "apischema/deserialization/methods.pyx":639 * self._dispatch = 25 * * cdef class UnionByTypeMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly dict method_by_cls * */ struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_vtab; PyObject *method_by_cls; }; /* "apischema/deserialization/methods.pyx":649 * self._dispatch = 26 * * cdef class UnionMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple alt_methods * */ struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionMethod *__pyx_vtab; PyObject *alt_methods; }; /* "apischema/deserialization/methods.pyx":659 * self._dispatch = 27 * * cdef class ConversionMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object converter * cdef readonly DeserializationMethod method */ struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionMethod *__pyx_vtab; PyObject *converter; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; }; /* "apischema/deserialization/methods.pyx":671 * self._dispatch = 28 * * cdef class ConversionWithValueErrorMethod(ConversionMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod __pyx_base; }; /* "apischema/deserialization/methods.pyx":681 * self._dispatch = 29 * * cdef class ConversionAlternative(): # <<<<<<<<<<<<<< * cdef readonly object converter * cdef readonly DeserializationMethod method */ struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative { PyObject_HEAD PyObject *converter; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *method; int value_error; }; /* "apischema/deserialization/methods.pyx":691 * self.value_error = value_error * * cdef class ConversionUnionMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple alternatives * */ struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_vtab; PyObject *alternatives; }; /* "apischema/deserialization/methods.pyx":701 * self._dispatch = 30 * * cdef class Discriminated(): # <<<<<<<<<<<<<< * cdef readonly str discriminator * cdef readonly object data */ struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated { PyObject_HEAD PyObject *discriminator; PyObject *data; }; /* "apischema/deserialization/methods.pyx":709 * self.data = data * * cdef class DiscriminatorMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly str alias * cdef readonly dict mapping */ struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod __pyx_base; struct __pyx_vtabstruct_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_vtab; PyObject *alias; PyObject *mapping; PyObject *missing; PyObject *error; }; /* "apischema/deserialization/methods.pyx":1180 * raise merge_errors(err, bad_type(data, NoneType)) * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): # <<<<<<<<<<<<<< * try: * method:DeserializationMethod= self.method_by_cls[type(data)] */ struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize { PyObject_HEAD PyObject *__pyx_v_data; }; /* "apischema/deserialization/methods.pyx":1187 * raise bad_type(data, *self.method_by_cls) from None * except ValidationError as err: * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) # <<<<<<<<<<<<<< * raise merge_errors(err, bad_type(data, *other_classes)) * */ struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr { PyObject_HEAD struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *__pyx_outer_scope; PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v_cls; PyObject *__pyx_t_0; Py_ssize_t __pyx_t_1; Py_ssize_t __pyx_t_2; int __pyx_t_3; }; /* "apischema/deserialization/methods.pyx":41 * self.error = error * * cdef class MinimumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long minimum * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinimumConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MinimumConstraint; /* "apischema/deserialization/methods.pyx":52 * self._dispatch = 0 * * cdef class MaximumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long maximum * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaximumConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MaximumConstraint; /* "apischema/deserialization/methods.pyx":63 * self._dispatch = 1 * * cdef class ExclusiveMinimumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long exc_min * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; /* "apischema/deserialization/methods.pyx":74 * self._dispatch = 2 * * cdef class ExclusiveMaximumConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long exc_max * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; /* "apischema/deserialization/methods.pyx":85 * self._dispatch = 3 * * cdef class MultipleOfConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long mult_of * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MultipleOfConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MultipleOfConstraint; /* "apischema/deserialization/methods.pyx":96 * self._dispatch = 4 * * cdef class MinLengthConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long min_len * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinLengthConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MinLengthConstraint; /* "apischema/deserialization/methods.pyx":107 * self._dispatch = 5 * * cdef class MaxLengthConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long max_len * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxLengthConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MaxLengthConstraint; /* "apischema/deserialization/methods.pyx":118 * self._dispatch = 6 * * cdef class PatternConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly object pattern * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_PatternConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_PatternConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_PatternConstraint; /* "apischema/deserialization/methods.pyx":129 * self._dispatch = 7 * * cdef class MinItemsConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long min_items * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinItemsConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MinItemsConstraint; /* "apischema/deserialization/methods.pyx":140 * self._dispatch = 8 * * cdef class MaxItemsConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long max_items * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxItemsConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MaxItemsConstraint; /* "apischema/deserialization/methods.pyx":151 * self._dispatch = 9 * * cdef class UniqueItemsConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly bint unique * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UniqueItemsConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_UniqueItemsConstraint; /* "apischema/deserialization/methods.pyx":163 * self._dispatch = 10 * * cdef class MinPropertiesConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long min_properties * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinPropertiesConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MinPropertiesConstraint; /* "apischema/deserialization/methods.pyx":174 * self._dispatch = 11 * * cdef class MaxPropertiesConstraint(Constraint): # <<<<<<<<<<<<<< * cdef readonly long max_properties * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxPropertiesConstraint { PyObject *(*validate)(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_vtabptr_9apischema_15deserialization_7methods_MaxPropertiesConstraint; /* "apischema/deserialization/methods.pyx":188 * cdef int _dispatch * * cdef class RecMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object lazy * cdef readonly object method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RecMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RecMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_RecMethod; /* "apischema/deserialization/methods.pyx":200 * self._dispatch = 0 * * cdef class ValidatorMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly object validators */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ValidatorMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ValidatorMethod; /* "apischema/deserialization/methods.pyx":214 * self._dispatch = 1 * * cdef class CoercerMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object coercer * cdef readonly type cls */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_CoercerMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_CoercerMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_CoercerMethod; /* "apischema/deserialization/methods.pyx":228 * self._dispatch = 2 * * cdef class TypeCheckMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object expected * cdef readonly DeserializationMethod fallback */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TypeCheckMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_TypeCheckMethod; /* "apischema/deserialization/methods.pyx":240 * self._dispatch = 3 * * cdef class AnyMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly dict constraints * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_AnyMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_AnyMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_AnyMethod; /* "apischema/deserialization/methods.pyx":250 * self._dispatch = 4 * * cdef class ListCheckOnlyMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListCheckOnlyMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ListCheckOnlyMethod; /* "apischema/deserialization/methods.pyx":262 * self._dispatch = 5 * * cdef class ListMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ListMethod; /* "apischema/deserialization/methods.pyx":274 * self._dispatch = 6 * * cdef class SetMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SetMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SetMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_SetMethod; /* "apischema/deserialization/methods.pyx":286 * self._dispatch = 7 * * cdef class FrozenSetMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FrozenSetMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_FrozenSetMethod; /* "apischema/deserialization/methods.pyx":296 * self._dispatch = 8 * * cdef class VariadicTupleMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_VariadicTupleMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_VariadicTupleMethod; /* "apischema/deserialization/methods.pyx":306 * self._dispatch = 9 * * cdef class LiteralMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly dict value_map * cdef readonly object error */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_LiteralMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_LiteralMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_LiteralMethod; /* "apischema/deserialization/methods.pyx":322 * self._dispatch = 10 * * cdef class MappingCheckOnly(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingCheckOnly { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_vtabptr_9apischema_15deserialization_7methods_MappingCheckOnly; /* "apischema/deserialization/methods.pyx":336 * self._dispatch = 11 * * cdef class MappingMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_MappingMethod; /* "apischema/deserialization/methods.pyx":407 * self.cls = cls * * cdef class NoConstructor(Constructor): # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoConstructor { PyObject *(*construct)(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoConstructor *__pyx_vtabptr_9apischema_15deserialization_7methods_NoConstructor; /* "apischema/deserialization/methods.pyx":416 * self._dispatch = 0 * * cdef class RawConstructor(Constructor): # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructor { PyObject *(*construct)(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructor *__pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructor; /* "apischema/deserialization/methods.pyx":425 * self._dispatch = 1 * * cdef class RawConstructorCopy(Constructor): # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructorCopy { PyObject *(*construct)(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructorCopy; /* "apischema/deserialization/methods.pyx":450 * self.factory = factory * * cdef class FieldsConstructor(Constructor): # <<<<<<<<<<<<<< * cdef readonly long nb_fields * cdef readonly tuple default_fields */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FieldsConstructor { PyObject *(*construct)(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_vtabptr_9apischema_15deserialization_7methods_FieldsConstructor; /* "apischema/deserialization/methods.pyx":465 * self._dispatch = 3 * * cdef class SimpleObjectMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly Constructor constructor * cdef readonly tuple fields */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SimpleObjectMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_SimpleObjectMethod; /* "apischema/deserialization/methods.pyx":485 * self._dispatch = 13 * * cdef class ObjectMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly Constructor constructor * cdef readonly tuple constraints */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ObjectMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ObjectMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ObjectMethod; /* "apischema/deserialization/methods.pyx":529 * self._dispatch = 14 * * cdef class NoneMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoneMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoneMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_NoneMethod; /* "apischema/deserialization/methods.pyx":537 * self._dispatch = 15 * * cdef class IntMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_IntMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_IntMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_IntMethod; /* "apischema/deserialization/methods.pyx":545 * self._dispatch = 16 * * cdef class FloatMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FloatMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FloatMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_FloatMethod; /* "apischema/deserialization/methods.pyx":553 * self._dispatch = 18 * * cdef class StrMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_StrMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_StrMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_StrMethod; /* "apischema/deserialization/methods.pyx":561 * self._dispatch = 20 * * cdef class BoolMethod(DeserializationMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_BoolMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_BoolMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_BoolMethod; /* "apischema/deserialization/methods.pyx":569 * self._dispatch = 22 * * cdef class ConstrainedIntMethod(IntMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedIntMethod { struct __pyx_vtabstruct_9apischema_15deserialization_7methods_IntMethod __pyx_base; }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedIntMethod; /* "apischema/deserialization/methods.pyx":579 * self._dispatch = 17 * * cdef class ConstrainedFloatMethod(FloatMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedFloatMethod { struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FloatMethod __pyx_base; }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedFloatMethod; /* "apischema/deserialization/methods.pyx":589 * self._dispatch = 19 * * cdef class ConstrainedStrMethod(StrMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedStrMethod { struct __pyx_vtabstruct_9apischema_15deserialization_7methods_StrMethod __pyx_base; }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedStrMethod; /* "apischema/deserialization/methods.pyx":599 * self._dispatch = 21 * * cdef class SubprimitiveMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly type cls * cdef readonly DeserializationMethod method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SubprimitiveMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_SubprimitiveMethod; /* "apischema/deserialization/methods.pyx":611 * self._dispatch = 23 * * cdef class TupleMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly object min_len_error */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TupleMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TupleMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_TupleMethod; /* "apischema/deserialization/methods.pyx":627 * self._dispatch = 24 * * cdef class OptionalMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * cdef readonly object coercer */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_OptionalMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_OptionalMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_OptionalMethod; /* "apischema/deserialization/methods.pyx":639 * self._dispatch = 25 * * cdef class UnionByTypeMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly dict method_by_cls * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionByTypeMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_UnionByTypeMethod; /* "apischema/deserialization/methods.pyx":649 * self._dispatch = 26 * * cdef class UnionMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple alt_methods * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_UnionMethod; /* "apischema/deserialization/methods.pyx":659 * self._dispatch = 27 * * cdef class ConversionMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly object converter * cdef readonly DeserializationMethod method */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ConversionMethod; /* "apischema/deserialization/methods.pyx":671 * self._dispatch = 28 * * cdef class ConversionWithValueErrorMethod(ConversionMethod): # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod { struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionMethod __pyx_base; }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; /* "apischema/deserialization/methods.pyx":691 * self.value_error = value_error * * cdef class ConversionUnionMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly tuple alternatives * */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionUnionMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_ConversionUnionMethod; /* "apischema/deserialization/methods.pyx":709 * self.data = data * * cdef class DiscriminatorMethod(DeserializationMethod): # <<<<<<<<<<<<<< * cdef readonly str alias * cdef readonly dict mapping */ struct __pyx_vtabstruct_9apischema_15deserialization_7methods_DiscriminatorMethod { PyObject *(*deserialize)(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *, PyObject *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_vtabptr_9apischema_15deserialization_7methods_DiscriminatorMethod; /* #### Code section: utility_code_proto ### */ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, Py_ssize_t); void (*DECREF)(void*, PyObject*, Py_ssize_t); void (*GOTREF)(void*, PyObject*, Py_ssize_t); void (*GIVEREF)(void*, PyObject*, Py_ssize_t); void* (*SetupContext)(const char*, Py_ssize_t, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\ } #define __Pyx_RefNannyFinishContextNogil() {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __Pyx_RefNannyFinishContext();\ PyGILState_Release(__pyx_gilstate_save);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__)) #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext() #endif #define __Pyx_RefNannyFinishContextNogil() {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __Pyx_RefNannyFinishContext();\ PyGILState_Release(__pyx_gilstate_save);\ } #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__)) #define __Pyx_XINCREF(r) do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContextNogil() #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_Py_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; Py_XDECREF(tmp);\ } while (0) #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; #if PY_VERSION_HEX >= 0x030C00A6 #define __Pyx_PyErr_Occurred() (__pyx_tstate->current_exception != NULL) #define __Pyx_PyErr_CurrentExceptionType() (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL) #else #define __Pyx_PyErr_Occurred() (__pyx_tstate->curexc_type != NULL) #define __Pyx_PyErr_CurrentExceptionType() (__pyx_tstate->curexc_type) #endif #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #define __Pyx_PyErr_Occurred() (PyErr_Occurred() != NULL) #define __Pyx_PyErr_CurrentExceptionType() PyErr_Occurred() #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) #else #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #endif #else #define __Pyx_PyErr_Clear() PyErr_Clear() #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* PyObjectGetAttrStrNoError.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* TupleAndListFromArray.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n); static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n); #endif /* IncludeStringH.proto */ #include /* BytesEquals.proto */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /* UnicodeEquals.proto */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /* fastcall.proto */ #if CYTHON_AVOID_BORROWED_REFS #define __Pyx_Arg_VARARGS(args, i) PySequence_GetItem(args, i) #elif CYTHON_ASSUME_SAFE_MACROS #define __Pyx_Arg_VARARGS(args, i) PyTuple_GET_ITEM(args, i) #else #define __Pyx_Arg_VARARGS(args, i) PyTuple_GetItem(args, i) #endif #if CYTHON_AVOID_BORROWED_REFS #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg) #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg) #else #define __Pyx_Arg_NewRef_VARARGS(arg) arg #define __Pyx_Arg_XDECREF_VARARGS(arg) #endif #define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds) #define __Pyx_KwValues_VARARGS(args, nargs) NULL #define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s) #define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw) #if CYTHON_METH_FASTCALL #define __Pyx_Arg_FASTCALL(args, i) args[i] #define __Pyx_NumKwargs_FASTCALL(kwds) PyTuple_GET_SIZE(kwds) #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs)) static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues); #else #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw) #endif #define __Pyx_Arg_NewRef_FASTCALL(arg) arg /* no-op, __Pyx_Arg_FASTCALL is direct and this needs to have the same reference counting */ #define __Pyx_Arg_XDECREF_FASTCALL(arg) #else #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS #define __Pyx_Arg_NewRef_FASTCALL(arg) __Pyx_Arg_NewRef_VARARGS(arg) #define __Pyx_Arg_XDECREF_FASTCALL(arg) __Pyx_Arg_XDECREF_VARARGS(arg) #endif #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #define __Pyx_ArgsSlice_VARARGS(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start), stop - start) #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start), stop - start) #else #define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop) #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop) #endif /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* KeywordStringCheck.proto */ static int __Pyx_CheckKeywordStrings(PyObject *kw, const char* function_name, int kw_allowed); /* GetAttr3.proto */ static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /* PyDictVersioning.proto */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ (version_var) = __PYX_GET_DICT_VERSION(dict);\ (cache_var) = (value); #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ (VAR) = __pyx_dict_cached_value;\ } else {\ (VAR) = __pyx_dict_cached_value = (LOOKUP);\ __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ }\ } static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); #else #define __PYX_GET_DICT_VERSION(dict) (0) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); #endif /* GetModuleGlobalName.proto */ #if CYTHON_USE_DICT_VERSIONS #define __Pyx_GetModuleGlobalName(var, name) do {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\ __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } while(0) #define __Pyx_GetModuleGlobalNameUncached(var, name) do {\ PY_UINT64_T __pyx_dict_version;\ PyObject *__pyx_dict_cached_value;\ (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } while(0) static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value); #else #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name) #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name) static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name); #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #if !CYTHON_VECTORCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs); #endif #define __Pyx_BUILD_ASSERT_EXPR(cond)\ (sizeof(char [1 - 2*!(cond)]) - 1) #ifndef Py_MEMBER_SIZE #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member) #endif #if !CYTHON_VECTORCALL #if PY_VERSION_HEX >= 0x03080000 #include "frameobject.h" #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif #define __Pxy_PyFrame_Initialize_Offsets() #define __Pyx_PyFrame_GetLocalsplus(frame) ((frame)->f_localsplus) #else static size_t __pyx_pyframe_localsplus_offset = 0; #include "frameobject.h" #define __Pxy_PyFrame_Initialize_Offsets()\ ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\ (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus))) #define __Pyx_PyFrame_GetLocalsplus(frame)\ (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset)) #endif #endif #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectFastCall.proto */ #define __Pyx_PyObject_FastCall(func, args, nargs) __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL) static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs); /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* RaiseUnexpectedTypeError.proto */ static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj); /* AssertionsEnabled.proto */ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define __Pyx_init_assertions_enabled() (0) #define __pyx_assertions_enabled() (1) #elif CYTHON_COMPILING_IN_LIMITED_API || (CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030C0000) static int __pyx_assertions_enabled_flag; #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag) static int __Pyx_init_assertions_enabled(void) { PyObject *builtins, *debug, *debug_str; int flag; builtins = PyEval_GetBuiltins(); if (!builtins) goto bad; debug_str = PyUnicode_FromStringAndSize("__debug__", 9); if (!debug_str) goto bad; debug = PyObject_GetItem(builtins, debug_str); Py_DECREF(debug_str); if (!debug) goto bad; flag = PyObject_IsTrue(debug); Py_DECREF(debug); if (flag == -1) goto bad; __pyx_assertions_enabled_flag = flag; return 0; bad: __pyx_assertions_enabled_flag = 1; return -1; } #else #define __Pyx_init_assertions_enabled() (0) #define __pyx_assertions_enabled() (!Py_OptimizeFlag) #endif /* RaiseException.proto */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /* ExtTypeTest.proto */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /* ArgTypeTest.proto */ #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\ __Pyx__ArgTypeTest(obj, type, name, exact)) static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); /* ListCompAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len)) { Py_INCREF(x); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 L->ob_item[len] = x; #else PyList_SET_ITEM(list, len, x); #endif __Pyx_SET_SIZE(list, len + 1); return 0; } return PyList_Append(list, x); } #else #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x) #endif /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* ObjectGetItem.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key); #else #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* ListAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { Py_INCREF(x); #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 L->ob_item[len] = x; #else PyList_SET_ITEM(list, len, x); #endif __Pyx_SET_SIZE(list, len + 1); return 0; } return PyList_Append(list, x); } #else #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) #endif /* PyDictContains.proto */ static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) { int result = PyDict_Contains(dict, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); #define __Pyx_PyObject_Dict_GetItem(obj, name)\ (likely(PyDict_CheckExact(obj)) ?\ __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) #else #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif /* GetTopmostException.proto */ #if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* FastTypeChecks.proto */ #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) #define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2) static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); #else #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2)) #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) #endif #define __Pyx_PyErr_ExceptionMatches2(err1, err2) __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* pyfrozenset_new.proto */ static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it); /* IterFinish.proto */ static CYTHON_INLINE int __Pyx_IterFinish(void); /* PyObjectCallNoArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /* PyObjectGetMethod.proto */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method); /* PyObjectCallMethod0.proto */ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); /* RaiseNeedMoreValuesToUnpack.proto */ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); /* RaiseTooManyValuesToUnpack.proto */ static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); /* UnpackItemEndCheck.proto */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /* RaiseNoneIterError.proto */ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); /* UnpackTupleError.proto */ static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); /* UnpackTuple2.proto */ #define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\ (likely(is_tuple || PyTuple_Check(tuple)) ?\ (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\ __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\ (__Pyx_UnpackTupleError(tuple, 2), -1)) :\ __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple)) static CYTHON_INLINE int __Pyx_unpack_tuple2_exact( PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple); static int __Pyx_unpack_tuple2_generic( PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple); /* dict_iter.proto */ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, Py_ssize_t* p_orig_length, int* p_is_dict); static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); /* PySequenceContains.proto */ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { int result = PySequence_Contains(seq, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* PyObjectFormatSimple.proto */ #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyObject_FormatSimple(s, f) (\ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\ PyObject_Format(s, f)) #elif PY_MAJOR_VERSION < 3 #define __Pyx_PyObject_FormatSimple(s, f) (\ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\ likely(PyString_CheckExact(s)) ? PyUnicode_FromEncodedObject(s, NULL, "strict") :\ PyObject_Format(s, f)) #elif CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_FormatSimple(s, f) (\ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\ likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_repr(s) :\ likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_repr(s) :\ PyObject_Format(s, f)) #else #define __Pyx_PyObject_FormatSimple(s, f) (\ likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\ PyObject_Format(s, f)) #endif /* JoinPyUnicode.proto */ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength, Py_UCS4 max_char); /* py_dict_keys.proto */ static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d); /* UnpackUnboundCMethod.proto */ typedef struct { PyObject *type; PyObject **method_name; PyCFunction func; PyObject *method; int flag; } __Pyx_CachedCFunction; /* CallUnboundCMethod0.proto */ static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self); #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_CallUnboundCMethod0(cfunc, self)\ (likely((cfunc)->func) ?\ (likely((cfunc)->flag == METH_NOARGS) ? (*((cfunc)->func))(self, NULL) :\ (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\ (PY_VERSION_HEX >= 0x030700A0 ?\ (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\ (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\ (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\ (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\ (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ? ((*(PyCFunctionWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\ ((cfunc)->flag == METH_VARARGS ? (*((cfunc)->func))(self, __pyx_empty_tuple) :\ __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\ __Pyx__CallUnboundCMethod0(cfunc, self)) #else #define __Pyx_CallUnboundCMethod0(cfunc, self) __Pyx__CallUnboundCMethod0(cfunc, self) #endif /* pybytes_as_double.proto */ static double __Pyx_SlowPyString_AsDouble(PyObject *obj); static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length); static CYTHON_INLINE double __Pyx_PyBytes_AsDouble(PyObject *obj) { char* as_c_string; Py_ssize_t size; #if CYTHON_ASSUME_SAFE_MACROS as_c_string = PyBytes_AS_STRING(obj); size = PyBytes_GET_SIZE(obj); #else if (PyBytes_AsStringAndSize(obj, &as_c_string, &size) < 0) { return (double)-1; } #endif return __Pyx__PyBytes_AsDouble(obj, as_c_string, size); } static CYTHON_INLINE double __Pyx_PyByteArray_AsDouble(PyObject *obj) { char* as_c_string; Py_ssize_t size; #if CYTHON_ASSUME_SAFE_MACROS as_c_string = PyByteArray_AS_STRING(obj); size = PyByteArray_GET_SIZE(obj); #else as_c_string = PyByteArray_AsString(obj); if (as_c_string == NULL) { return (double)-1; } size = PyByteArray_Size(obj); #endif return __Pyx__PyBytes_AsDouble(obj, as_c_string, size); } /* pyunicode_as_double.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS static const char* __Pyx__PyUnicode_AsDouble_Copy(const void* data, const int kind, char* buffer, Py_ssize_t start, Py_ssize_t end) { int last_was_punctuation; Py_ssize_t i; last_was_punctuation = 1; for (i=start; i <= end; i++) { Py_UCS4 chr = PyUnicode_READ(kind, data, i); int is_punctuation = (chr == '_') | (chr == '.'); *buffer = (char)chr; buffer += (chr != '_'); if (unlikely(chr > 127)) goto parse_failure; if (unlikely(last_was_punctuation & is_punctuation)) goto parse_failure; last_was_punctuation = is_punctuation; } if (unlikely(last_was_punctuation)) goto parse_failure; *buffer = '\0'; return buffer; parse_failure: return NULL; } static double __Pyx__PyUnicode_AsDouble_inf_nan(const void* data, int kind, Py_ssize_t start, Py_ssize_t length) { int matches = 1; Py_UCS4 chr; Py_UCS4 sign = PyUnicode_READ(kind, data, start); int is_signed = (sign == '-') | (sign == '+'); start += is_signed; length -= is_signed; switch (PyUnicode_READ(kind, data, start)) { #ifdef Py_NAN case 'n': case 'N': if (unlikely(length != 3)) goto parse_failure; chr = PyUnicode_READ(kind, data, start+1); matches &= (chr == 'a') | (chr == 'A'); chr = PyUnicode_READ(kind, data, start+2); matches &= (chr == 'n') | (chr == 'N'); if (unlikely(!matches)) goto parse_failure; return (sign == '-') ? -Py_NAN : Py_NAN; #endif case 'i': case 'I': if (unlikely(length < 3)) goto parse_failure; chr = PyUnicode_READ(kind, data, start+1); matches &= (chr == 'n') | (chr == 'N'); chr = PyUnicode_READ(kind, data, start+2); matches &= (chr == 'f') | (chr == 'F'); if (likely(length == 3 && matches)) return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL; if (unlikely(length != 8)) goto parse_failure; chr = PyUnicode_READ(kind, data, start+3); matches &= (chr == 'i') | (chr == 'I'); chr = PyUnicode_READ(kind, data, start+4); matches &= (chr == 'n') | (chr == 'N'); chr = PyUnicode_READ(kind, data, start+5); matches &= (chr == 'i') | (chr == 'I'); chr = PyUnicode_READ(kind, data, start+6); matches &= (chr == 't') | (chr == 'T'); chr = PyUnicode_READ(kind, data, start+7); matches &= (chr == 'y') | (chr == 'Y'); if (unlikely(!matches)) goto parse_failure; return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL; case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; default: goto parse_failure; } return 0.0; parse_failure: return -1.0; } static double __Pyx_PyUnicode_AsDouble_WithSpaces(PyObject *obj) { double value; const char *last; char *end; Py_ssize_t start, length = PyUnicode_GET_LENGTH(obj); const int kind = PyUnicode_KIND(obj); const void* data = PyUnicode_DATA(obj); start = 0; while (Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, start))) start++; while (start < length - 1 && Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, length - 1))) length--; length -= start; if (unlikely(length <= 0)) goto fallback; value = __Pyx__PyUnicode_AsDouble_inf_nan(data, kind, start, length); if (unlikely(value == -1.0)) goto fallback; if (value != 0.0) return value; if (length < 40) { char number[40]; last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length); if (unlikely(!last)) goto fallback; value = PyOS_string_to_double(number, &end, NULL); } else { char *number = (char*) PyMem_Malloc((length + 1) * sizeof(char)); if (unlikely(!number)) goto fallback; last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length); if (unlikely(!last)) { PyMem_Free(number); goto fallback; } value = PyOS_string_to_double(number, &end, NULL); PyMem_Free(number); } if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) { return value; } fallback: return __Pyx_SlowPyString_AsDouble(obj); } #endif static CYTHON_INLINE double __Pyx_PyUnicode_AsDouble(PyObject *obj) { #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS if (unlikely(__Pyx_PyUnicode_READY(obj) == -1)) return (double)-1; if (likely(PyUnicode_IS_ASCII(obj))) { const char *s; Py_ssize_t length; s = PyUnicode_AsUTF8AndSize(obj, &length); return __Pyx__PyBytes_AsDouble(obj, s, length); } return __Pyx_PyUnicode_AsDouble_WithSpaces(obj); #else return __Pyx_SlowPyString_AsDouble(obj); #endif } /* pynumber_float.proto */ static CYTHON_INLINE PyObject* __Pyx__PyNumber_Float(PyObject* obj); #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : __Pyx__PyNumber_Float(x)) /* SetItemInt.proto */ #define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ __Pyx_SetItemInt_Generic(o, to_py_func(i), v))) static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, int wraparound, int boundscheck); /* RaiseUnboundLocalError.proto */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); /* RaiseClosureNameError.proto */ static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname); /* pep479.proto */ static void __Pyx_Generator_Replace_StopIteration(int in_async_gen); /* PyObject_Unicode.proto */ #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyObject_Unicode(obj)\ (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj)) #else #define __Pyx_PyObject_Unicode(obj)\ (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Unicode(obj)) #endif /* CallUnboundCMethod1.proto */ static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg); #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg); #else #define __Pyx_CallUnboundCMethod1(cfunc, self, arg) __Pyx__CallUnboundCMethod1(cfunc, self, arg) #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* GetAttr.proto */ static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *); /* HasAttr.proto */ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *); /* CallNextTpTraverse.proto */ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse); /* CallNextTpClear.proto */ static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear); /* IncludeStructmemberH.proto */ #include /* FixUpExtensionType.proto */ #if CYTHON_USE_TYPE_SPECS static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type); #endif /* ValidateBasesTuple.proto */ #if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases); #endif /* PyType_Ready.proto */ CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t); /* PyObject_GenericGetAttrNoDict.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr #endif /* PyObject_GenericGetAttr.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr #endif /* SetupReduce.proto */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __Pyx_setup_reduce(PyObject* type_obj); #endif /* SetVTable.proto */ static int __Pyx_SetVtable(PyTypeObject* typeptr , void* vtable); /* GetVTable.proto */ static void* __Pyx_GetVtable(PyTypeObject *type); /* MergeVTables.proto */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __Pyx_MergeVtables(PyTypeObject *type); #endif /* TypeImport.proto */ #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_11 #define __PYX_HAVE_RT_ImportType_proto_3_0_11 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L #include #endif #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L #define __PYX_GET_STRUCT_ALIGNMENT_3_0_11(s) alignof(s) #else #define __PYX_GET_STRUCT_ALIGNMENT_3_0_11(s) sizeof(void*) #endif enum __Pyx_ImportType_CheckSize_3_0_11 { __Pyx_ImportType_CheckSize_Error_3_0_11 = 0, __Pyx_ImportType_CheckSize_Warn_3_0_11 = 1, __Pyx_ImportType_CheckSize_Ignore_3_0_11 = 2 }; static PyTypeObject *__Pyx_ImportType_3_0_11(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_11 check_size); #endif /* FetchSharedCythonModule.proto */ static PyObject *__Pyx_FetchSharedCythonABIModule(void); /* FetchCommonType.proto */ #if !CYTHON_USE_TYPE_SPECS static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); #else static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases); #endif /* PyMethodNew.proto */ #if CYTHON_COMPILING_IN_LIMITED_API static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { PyObject *typesModule=NULL, *methodType=NULL, *result=NULL; CYTHON_UNUSED_VAR(typ); if (!self) return __Pyx_NewRef(func); typesModule = PyImport_ImportModule("types"); if (!typesModule) return NULL; methodType = PyObject_GetAttrString(typesModule, "MethodType"); Py_DECREF(typesModule); if (!methodType) return NULL; result = PyObject_CallFunctionObjArgs(methodType, func, self, NULL); Py_DECREF(methodType); return result; } #elif PY_MAJOR_VERSION >= 3 static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { CYTHON_UNUSED_VAR(typ); if (!self) return __Pyx_NewRef(func); return PyMethod_New(func, self); } #else #define __Pyx_PyMethod_New PyMethod_New #endif /* PyVectorcallFastCallDict.proto */ #if CYTHON_METH_FASTCALL static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw); #endif /* CythonFunctionShared.proto */ #define __Pyx_CyFunction_USED #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CYFUNCTION_COROUTINE 0x08 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #else #define __Pyx_CyFunction_GetClassObj(f)\ ((PyObject*) ((PyCMethodObject *) (f))->mm_class) #endif #define __Pyx_CyFunction_SetClassObj(f, classobj)\ __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj)) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { #if CYTHON_COMPILING_IN_LIMITED_API PyObject_HEAD PyObject *func; #elif PY_VERSION_HEX < 0x030900B1 PyCFunctionObject func; #else PyCMethodObject func; #endif #if CYTHON_BACKPORT_VECTORCALL __pyx_vectorcallfunc func_vectorcall; #endif #if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; #if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API PyObject *func_classobj; #endif void *defaults; int defaults_pyobjects; size_t defaults_size; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; PyObject *func_is_coroutine; } __pyx_CyFunctionObject; #undef __Pyx_CyOrPyCFunction_Check #define __Pyx_CyFunction_Check(obj) __Pyx_TypeCheck(obj, __pyx_CyFunctionType) #define __Pyx_CyOrPyCFunction_Check(obj) __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type) #define __Pyx_CyFunction_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_CyFunctionType) static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc); #undef __Pyx_IsSameCFunction #define __Pyx_IsSameCFunction(func, cfunc) __Pyx__IsSameCyOrCFunction(func, cfunc) static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(PyObject *module); #if CYTHON_METH_FASTCALL static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); #if CYTHON_BACKPORT_VECTORCALL #define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall) #else #define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall) #endif #endif /* CythonFunction.proto */ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject* code); /* CLineInTraceback.proto */ #ifdef CYTHON_CLINE_IN_TRACEBACK #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) #else static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); #endif /* CodeObjectCache.proto */ #if !CYTHON_COMPILING_IN_LIMITED_API typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); #endif /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* GCCDiagnostics.proto */ #if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) #define __Pyx_HAS_GCC_DIAGNOSTIC #endif /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* FormatTypeName.proto */ #if CYTHON_COMPILING_IN_LIMITED_API typedef PyObject *__Pyx_TypeName; #define __Pyx_FMT_TYPENAME "%U" static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp); #define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj) #else typedef const char *__Pyx_TypeName; #define __Pyx_FMT_TYPENAME "%.200s" #define __Pyx_PyType_GetName(tp) ((tp)->tp_name) #define __Pyx_DECREF_TypeName(obj) #endif /* PyObjectCall2Args.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2); /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* CoroutineBase.proto */ struct __pyx_CoroutineObject; typedef PyObject *(*__pyx_coroutine_body_t)(struct __pyx_CoroutineObject *, PyThreadState *, PyObject *); #if CYTHON_USE_EXC_INFO_STACK #define __Pyx_ExcInfoStruct _PyErr_StackItem #else typedef struct { PyObject *exc_type; PyObject *exc_value; PyObject *exc_traceback; } __Pyx_ExcInfoStruct; #endif typedef struct __pyx_CoroutineObject { PyObject_HEAD __pyx_coroutine_body_t body; PyObject *closure; __Pyx_ExcInfoStruct gi_exc_state; PyObject *gi_weakreflist; PyObject *classobj; PyObject *yieldfrom; PyObject *gi_name; PyObject *gi_qualname; PyObject *gi_modulename; PyObject *gi_code; PyObject *gi_frame; int resume_label; char is_running; } __pyx_CoroutineObject; static __pyx_CoroutineObject *__Pyx__Coroutine_New( PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name); static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name); static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self); static int __Pyx_Coroutine_clear(PyObject *self); static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value); static PyObject *__Pyx_Coroutine_Close(PyObject *self); static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args); #if CYTHON_USE_EXC_INFO_STACK #define __Pyx_Coroutine_SwapException(self) #define __Pyx_Coroutine_ResetAndClearException(self) __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state) #else #define __Pyx_Coroutine_SwapException(self) {\ __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\ __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\ } #define __Pyx_Coroutine_ResetAndClearException(self) {\ __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\ (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\ } #endif #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyGen_FetchStopIterationValue(pvalue)\ __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue) #else #define __Pyx_PyGen_FetchStopIterationValue(pvalue)\ __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue) #endif static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue); static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state); /* PatchModuleWithCoroutine.proto */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code); /* PatchGeneratorABC.proto */ static int __Pyx_patch_abc(void); /* Generator.proto */ #define __Pyx_Generator_USED #define __Pyx_Generator_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_GeneratorType) #define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\ __Pyx__Coroutine_New(__pyx_GeneratorType, body, code, closure, name, qualname, module_name) static PyObject *__Pyx_Generator_Next(PyObject *self); static int __pyx_Generator_init(PyObject *module); /* CheckBinaryVersion.proto */ static unsigned long __Pyx_get_runtime_version(void); static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* #### Code section: module_declarations ### */ static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4real_real(PyComplexObject *__pyx_v_self); /* proto*/ static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4imag_imag(PyComplexObject *__pyx_v_self); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17MinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17MaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19MinLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17PatternConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18MinItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9RecMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13CoercerMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9AnyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_10ListMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9SetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13LiteralMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13MappingMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13NoConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_14RawConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18RawConstructorCopy_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17FieldsConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_12ObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_10NoneMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9IntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_11FloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9StrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_10BoolMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_11TupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_14OptionalMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_11UnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_16ConversionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch); /* proto*/ /* Module declarations from "cython" */ /* Module declarations from "cpython.version" */ /* Module declarations from "__builtin__" */ /* Module declarations from "cpython.type" */ /* Module declarations from "libc.string" */ /* Module declarations from "libc.stdio" */ /* Module declarations from "cpython.object" */ /* Module declarations from "cpython.ref" */ /* Module declarations from "cpython.exc" */ /* Module declarations from "cpython.module" */ /* Module declarations from "cpython.mem" */ /* Module declarations from "cpython.tuple" */ /* Module declarations from "cpython.list" */ /* Module declarations from "cpython.sequence" */ /* Module declarations from "cpython.mapping" */ /* Module declarations from "cpython.iterator" */ /* Module declarations from "cpython.number" */ /* Module declarations from "cpython.int" */ /* Module declarations from "__builtin__" */ /* Module declarations from "cpython.bool" */ /* Module declarations from "cpython.long" */ /* Module declarations from "cpython.float" */ /* Module declarations from "__builtin__" */ /* Module declarations from "cpython.complex" */ /* Module declarations from "cpython.string" */ /* Module declarations from "libc.stddef" */ /* Module declarations from "cpython.unicode" */ /* Module declarations from "cpython.pyport" */ /* Module declarations from "cpython.dict" */ /* Module declarations from "cpython.instance" */ /* Module declarations from "cpython.function" */ /* Module declarations from "cpython.method" */ /* Module declarations from "cpython.weakref" */ /* Module declarations from "cpython.getargs" */ /* Module declarations from "cpython.pythread" */ /* Module declarations from "cpython.pystate" */ /* Module declarations from "cpython.cobject" */ /* Module declarations from "cpython.oldbuffer" */ /* Module declarations from "cpython.set" */ /* Module declarations from "cpython.buffer" */ /* Module declarations from "cpython.bytes" */ /* Module declarations from "cpython.pycapsule" */ /* Module declarations from "cpython.contextvars" */ /* Module declarations from "cpython" */ /* Module declarations from "apischema.deserialization.methods" */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_to_hashable(PyObject *, int __pyx_skip_dispatch); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_format_error(PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_validate_constraints(PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_set_child_error(PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_extend_errors(PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_update_children_errors(PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MultipleOfConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaxLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_PatternConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaxItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_UniqueItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaxPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_RecMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ValidatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_CoercerMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_TypeCheckMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_AnyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ListCheckOnlyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ListMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_SetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_FrozenSetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_VariadicTupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_LiteralMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MappingCheckOnly_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MappingMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_SimpleObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_NoneMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_IntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConstrainedIntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_FloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConstrainedFloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_StrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConstrainedStrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_BoolMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_SubprimitiveMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_TupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_OptionalMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_UnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConversionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConversionUnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_DiscriminatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_NoConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_RawConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_RawConstructorCopy_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_FieldsConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_Constraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *, PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_Constructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinimumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaximumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMinimumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMaximumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MultipleOfConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinLengthConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxLengthConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinItemsConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxItemsConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UniqueItemsConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinPropertiesConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxPropertiesConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DeserializationMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RecMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ValidatorMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_CoercerMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TypeCheckMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AnyMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListCheckOnlyMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SetMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FrozenSetMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_VariadicTupleMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_LiteralMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingCheckOnly__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Field__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Field *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FlattenedField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AdditionalField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoConstructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructorCopy__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DefaultField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FactoryField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FieldsConstructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SimpleObjectMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ObjectMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoneMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_IntMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FloatMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_StrMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_BoolMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedIntMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedFloatMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedStrMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SubprimitiveMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TupleMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_OptionalMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionByTypeMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionWithValueErrorMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionAlternative__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionUnionMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Discriminated__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *, PyObject *); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DiscriminatorMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *, PyObject *); /*proto*/ /* #### Code section: typeinfo ### */ /* #### Code section: before_global_var ### */ #define __Pyx_MODULE_NAME "apischema.deserialization.methods" extern int __pyx_module_is_main_apischema__deserialization__methods; int __pyx_module_is_main_apischema__deserialization__methods = 0; /* Implementation of "apischema.deserialization.methods" */ /* #### Code section: global_var ### */ static PyObject *__pyx_builtin_AssertionError; static PyObject *__pyx_builtin_map; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_enumerate; static PyObject *__pyx_builtin_KeyError; static PyObject *__pyx_builtin_IndexError; static PyObject *__pyx_builtin_TypeError; static PyObject *__pyx_builtin_NotImplementedError; static PyObject *__pyx_builtin_ValueError; static PyObject *__pyx_builtin_object; /* #### Code section: string_decls ### */ static const char __pyx_k_[] = ")"; static const char __pyx_k__3[] = "."; static const char __pyx_k_gc[] = "gc"; static const char __pyx_k_Any[] = "Any"; static const char __pyx_k_cls[] = "cls"; static const char __pyx_k_err[] = "err"; static const char __pyx_k_key[] = "key"; static const char __pyx_k_map[] = "map"; static const char __pyx_k_new[] = "__new__"; static const char __pyx_k_Dict[] = "Dict"; static const char __pyx_k_Lazy[] = "Lazy"; static const char __pyx_k_List[] = "List"; static const char __pyx_k__293[] = "?"; static const char __pyx_k_args[] = "args"; static const char __pyx_k_copy[] = "copy"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_dict[] = "__dict__"; static const char __pyx_k_keys[] = "keys"; static const char __pyx_k_lazy[] = "lazy"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "name"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_send[] = "send"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_Field[] = "Field"; static const char __pyx_k_Tuple[] = "Tuple"; static const char __pyx_k_Union[] = "Union"; static const char __pyx_k_alias[] = "alias"; static const char __pyx_k_close[] = "close"; static const char __pyx_k_error[] = "error"; static const char __pyx_k_field[] = "field"; static const char __pyx_k_items[] = "items"; static const char __pyx_k_match[] = "match"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_state[] = "state"; static const char __pyx_k_throw[] = "throw"; static const char __pyx_k_types[] = "types"; static const char __pyx_k_dict_2[] = "_dict"; static const char __pyx_k_enable[] = "enable"; static const char __pyx_k_errors[] = "errors"; static const char __pyx_k_extend[] = "extend"; static const char __pyx_k_fields[] = "fields"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_method[] = "method"; static const char __pyx_k_name_2[] = "__name__"; static const char __pyx_k_object[] = "object"; static const char __pyx_k_pickle[] = "pickle"; static const char __pyx_k_reduce[] = "__reduce__"; static const char __pyx_k_typing[] = "typing"; static const char __pyx_k_unique[] = "unique"; static const char __pyx_k_update[] = "update"; static const char __pyx_k_Aliaser[] = "Aliaser"; static const char __pyx_k_AnyType[] = "AnyType"; static const char __pyx_k_Coercer[] = "Coercer"; static const char __pyx_k_Mapping[] = "Mapping"; static const char __pyx_k_Pattern[] = "Pattern"; static const char __pyx_k_aliaser[] = "aliaser"; static const char __pyx_k_aliases[] = "aliases"; static const char __pyx_k_coercer[] = "coercer"; static const char __pyx_k_disable[] = "disable"; static const char __pyx_k_exc_max[] = "exc_max"; static const char __pyx_k_exc_min[] = "exc_min"; static const char __pyx_k_factory[] = "factory"; static const char __pyx_k_genexpr[] = "genexpr"; static const char __pyx_k_mapping[] = "mapping"; static const char __pyx_k_max_len[] = "max_len"; static const char __pyx_k_maximum[] = "maximum"; static const char __pyx_k_min_len[] = "min_len"; static const char __pyx_k_minimum[] = "minimum"; static const char __pyx_k_missing[] = "missing"; static const char __pyx_k_mult_of[] = "mult_of"; static const char __pyx_k_pattern[] = "pattern"; static const char __pyx_k_Callable[] = "Callable"; static const char __pyx_k_ErrorKey[] = "ErrorKey"; static const char __pyx_k_ErrorMsg[] = "ErrorMsg"; static const char __pyx_k_KeyError[] = "KeyError"; static const char __pyx_k_NoneType[] = "NoneType"; static const char __pyx_k_Optional[] = "Optional"; static const char __pyx_k_Sequence[] = "Sequence"; static const char __pyx_k_bad_type[] = "bad_type"; static const char __pyx_k_children[] = "children"; static const char __pyx_k_expected[] = "expected"; static const char __pyx_k_fallback[] = "fallback"; static const char __pyx_k_getstate[] = "__getstate__"; static const char __pyx_k_messages[] = "messages"; static const char __pyx_k_pyx_type[] = "__pyx_type"; static const char __pyx_k_required[] = "required"; static const char __pyx_k_setstate[] = "__setstate__"; static const char __pyx_k_validate[] = "validate"; static const char __pyx_k_AnyMethod[] = "AnyMethod"; static const char __pyx_k_Converter[] = "Converter"; static const char __pyx_k_IntMethod[] = "IntMethod"; static const char __pyx_k_RecMethod[] = "RecMethod"; static const char __pyx_k_SetMethod[] = "SetMethod"; static const char __pyx_k_StrMethod[] = "StrMethod"; static const char __pyx_k_TypeError[] = "TypeError"; static const char __pyx_k_Validator[] = "Validator"; static const char __pyx_k_construct[] = "construct"; static const char __pyx_k_converter[] = "converter"; static const char __pyx_k_dataclass[] = "dataclass"; static const char __pyx_k_enumerate[] = "enumerate"; static const char __pyx_k_isenabled[] = "isenabled"; static const char __pyx_k_max_items[] = "max_items"; static const char __pyx_k_min_items[] = "min_items"; static const char __pyx_k_nb_fields[] = "nb_fields"; static const char __pyx_k_pyx_state[] = "__pyx_state"; static const char __pyx_k_reduce_ex[] = "__reduce_ex__"; static const char __pyx_k_value_map[] = "value_map"; static const char __pyx_k_BoolMethod[] = "BoolMethod"; static const char __pyx_k_Constraint[] = "Constraint"; static const char __pyx_k_IndexError[] = "IndexError"; static const char __pyx_k_ListMethod[] = "ListMethod"; static const char __pyx_k_NoneMethod[] = "NoneMethod"; static const char __pyx_k_ValueError[] = "ValueError"; static const char __pyx_k_isdisjoint[] = "isdisjoint"; static const char __pyx_k_key_method[] = "key_method"; static const char __pyx_k_pyx_result[] = "__pyx_result"; static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__"; static const char __pyx_k_typed_dict[] = "typed_dict"; static const char __pyx_k_unexpected[] = "unexpected"; static const char __pyx_k_validators[] = "validators"; static const char __pyx_k_AbstractSet[] = "AbstractSet"; static const char __pyx_k_Constructor[] = "Constructor"; static const char __pyx_k_FloatMethod[] = "FloatMethod"; static const char __pyx_k_PickleError[] = "PickleError"; static const char __pyx_k_TupleMethod[] = "TupleMethod"; static const char __pyx_k_UnionMethod[] = "UnionMethod"; static const char __pyx_k_all_aliases[] = "all_aliases"; static const char __pyx_k_alt_methods[] = "alt_methods"; static const char __pyx_k_constraints[] = "constraints"; static const char __pyx_k_constructor[] = "constructor"; static const char __pyx_k_dataclasses[] = "dataclasses"; static const char __pyx_k_deserialize[] = "deserialize"; static const char __pyx_k_elt_methods[] = "elt_methods"; static const char __pyx_k_required_by[] = "required_by"; static const char __pyx_k_to_hashable[] = "to_hashable"; static const char __pyx_k_value_error[] = "value_error"; static const char __pyx_k_DefaultField[] = "DefaultField"; static const char __pyx_k_FactoryField[] = "FactoryField"; static const char __pyx_k_ObjectMethod[] = "ObjectMethod"; static const char __pyx_k_PatternField[] = "PatternField"; static const char __pyx_k_alternatives[] = "alternatives"; static const char __pyx_k_dependencies[] = "dependencies"; static const char __pyx_k_format_error[] = "format_error"; static const char __pyx_k_is_coroutine[] = "_is_coroutine"; static const char __pyx_k_merge_errors[] = "merge_errors"; static const char __pyx_k_pyx_checksum[] = "__pyx_checksum"; static const char __pyx_k_stringsource[] = ""; static const char __pyx_k_use_setstate[] = "use_setstate"; static const char __pyx_k_value_method[] = "value_method"; static const char __pyx_k_CoercerMethod[] = "CoercerMethod"; static const char __pyx_k_Discriminated[] = "Discriminated"; static const char __pyx_k_LiteralMethod[] = "LiteralMethod"; static const char __pyx_k_MappingMethod[] = "MappingMethod"; static const char __pyx_k_NoConstructor[] = "NoConstructor"; static const char __pyx_k_ValidatorMock[] = "ValidatorMock"; static const char __pyx_k_class_getitem[] = "__class_getitem__"; static const char __pyx_k_default_value[] = "default_value"; static const char __pyx_k_discriminator[] = "discriminator"; static const char __pyx_k_extend_errors[] = "extend_errors"; static const char __pyx_k_init_defaults[] = "init_defaults"; static const char __pyx_k_max_len_error[] = "max_len_error"; static const char __pyx_k_method_by_cls[] = "method_by_cls"; static const char __pyx_k_min_len_error[] = "min_len_error"; static const char __pyx_k_reduce_cython[] = "__reduce_cython__"; static const char __pyx_k_required_by_2[] = " (required by "; static const char __pyx_k_AssertionError[] = "AssertionError"; static const char __pyx_k_FlattenedField[] = "FlattenedField"; static const char __pyx_k_OptionalMethod[] = "OptionalMethod"; static const char __pyx_k_RawConstructor[] = "RawConstructor"; static const char __pyx_k_default_fields[] = "default_fields"; static const char __pyx_k_factory_fields[] = "factory_fields"; static const char __pyx_k_max_properties[] = "max_properties"; static const char __pyx_k_min_properties[] = "min_properties"; static const char __pyx_k_pattern_fields[] = "pattern_fields"; static const char __pyx_k_AdditionalField[] = "AdditionalField"; static const char __pyx_k_FrozenSetMethod[] = "FrozenSetMethod"; static const char __pyx_k_TypeCheckMethod[] = "TypeCheckMethod"; static const char __pyx_k_ValidationError[] = "ValidationError"; static const char __pyx_k_ValidatorMethod[] = "ValidatorMethod"; static const char __pyx_k_apischema_types[] = "apischema.types"; static const char __pyx_k_apischema_utils[] = "apischema.utils"; static const char __pyx_k_children_errors[] = "children_errors"; static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError"; static const char __pyx_k_set_child_error[] = "set_child_error"; static const char __pyx_k_setstate_cython[] = "__setstate_cython__"; static const char __pyx_k_ConversionMethod[] = "ConversionMethod"; static const char __pyx_k_MappingCheckOnly[] = "MappingCheckOnly"; static const char __pyx_k_additional_field[] = "additional_field"; static const char __pyx_k_flattened_fields[] = "flattened_fields"; static const char __pyx_k_FieldsConstructor[] = "FieldsConstructor"; static const char __pyx_k_MaximumConstraint[] = "MaximumConstraint"; static const char __pyx_k_MinimumConstraint[] = "MinimumConstraint"; static const char __pyx_k_PatternConstraint[] = "PatternConstraint"; static const char __pyx_k_UnionByTypeMethod[] = "UnionByTypeMethod"; static const char __pyx_k_apischema_aliases[] = "apischema.aliases"; static const char __pyx_k_difference_update[] = "difference_update"; static const char __pyx_k_MaxItemsConstraint[] = "MaxItemsConstraint"; static const char __pyx_k_MinItemsConstraint[] = "MinItemsConstraint"; static const char __pyx_k_RawConstructorCopy[] = "RawConstructorCopy"; static const char __pyx_k_SimpleObjectMethod[] = "SimpleObjectMethod"; static const char __pyx_k_SubprimitiveMethod[] = "SubprimitiveMethod"; static const char __pyx_k_asyncio_coroutines[] = "asyncio.coroutines"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_post_init_modified[] = "post_init_modified"; static const char __pyx_k_pyx_unpickle_Field[] = "__pyx_unpickle_Field"; static const char __pyx_k_DiscriminatorMethod[] = "DiscriminatorMethod"; static const char __pyx_k_ListCheckOnlyMethod[] = "ListCheckOnlyMethod"; static const char __pyx_k_MaxLengthConstraint[] = "MaxLengthConstraint"; static const char __pyx_k_MinLengthConstraint[] = "MinLengthConstraint"; static const char __pyx_k_NotImplementedError[] = "NotImplementedError"; static const char __pyx_k_VariadicTupleMethod[] = "VariadicTupleMethod"; static const char __pyx_k_ConstrainedIntMethod[] = "ConstrainedIntMethod"; static const char __pyx_k_ConstrainedStrMethod[] = "ConstrainedStrMethod"; static const char __pyx_k_MultipleOfConstraint[] = "MultipleOfConstraint"; static const char __pyx_k_fall_back_on_default[] = "fall_back_on_default"; static const char __pyx_k_validate_constraints[] = "validate_constraints"; static const char __pyx_k_AnyMethod_deserialize[] = "AnyMethod.deserialize"; static const char __pyx_k_ConversionAlternative[] = "ConversionAlternative"; static const char __pyx_k_ConversionUnionMethod[] = "ConversionUnionMethod"; static const char __pyx_k_DeserializationMethod[] = "DeserializationMethod"; static const char __pyx_k_Field___reduce_cython[] = "Field.__reduce_cython__"; static const char __pyx_k_IntMethod_deserialize[] = "IntMethod.deserialize"; static const char __pyx_k_RecMethod_deserialize[] = "RecMethod.deserialize"; static const char __pyx_k_SetMethod_deserialize[] = "SetMethod.deserialize"; static const char __pyx_k_StrMethod_deserialize[] = "StrMethod.deserialize"; static const char __pyx_k_UniqueItemsConstraint[] = "UniqueItemsConstraint"; static const char __pyx_k_additional_properties[] = "additional_properties"; static const char __pyx_k_BoolMethod_deserialize[] = "BoolMethod.deserialize"; static const char __pyx_k_ConstrainedFloatMethod[] = "ConstrainedFloatMethod"; static const char __pyx_k_ListMethod_deserialize[] = "ListMethod.deserialize"; static const char __pyx_k_NoneMethod_deserialize[] = "NoneMethod.deserialize"; static const char __pyx_k_pyx_unpickle_AnyMethod[] = "__pyx_unpickle_AnyMethod"; static const char __pyx_k_pyx_unpickle_IntMethod[] = "__pyx_unpickle_IntMethod"; static const char __pyx_k_pyx_unpickle_RecMethod[] = "__pyx_unpickle_RecMethod"; static const char __pyx_k_pyx_unpickle_SetMethod[] = "__pyx_unpickle_SetMethod"; static const char __pyx_k_pyx_unpickle_StrMethod[] = "__pyx_unpickle_StrMethod"; static const char __pyx_k_update_children_errors[] = "update_children_errors"; static const char __pyx_k_Field___setstate_cython[] = "Field.__setstate_cython__"; static const char __pyx_k_FloatMethod_deserialize[] = "FloatMethod.deserialize"; static const char __pyx_k_MaxPropertiesConstraint[] = "MaxPropertiesConstraint"; static const char __pyx_k_MinPropertiesConstraint[] = "MinPropertiesConstraint"; static const char __pyx_k_NoConstructor_construct[] = "NoConstructor.construct"; static const char __pyx_k_TupleMethod_deserialize[] = "TupleMethod.deserialize"; static const char __pyx_k_UnionMethod_deserialize[] = "UnionMethod.deserialize"; static const char __pyx_k_pyx_unpickle_BoolMethod[] = "__pyx_unpickle_BoolMethod"; static const char __pyx_k_pyx_unpickle_Constraint[] = "__pyx_unpickle_Constraint"; static const char __pyx_k_pyx_unpickle_ListMethod[] = "__pyx_unpickle_ListMethod"; static const char __pyx_k_pyx_unpickle_NoneMethod[] = "__pyx_unpickle_NoneMethod"; static const char __pyx_k_ObjectMethod_deserialize[] = "ObjectMethod.deserialize"; static const char __pyx_k_RawConstructor_construct[] = "RawConstructor.construct"; static const char __pyx_k_pyx_unpickle_Constructor[] = "__pyx_unpickle_Constructor"; static const char __pyx_k_pyx_unpickle_FloatMethod[] = "__pyx_unpickle_FloatMethod"; static const char __pyx_k_pyx_unpickle_TupleMethod[] = "__pyx_unpickle_TupleMethod"; static const char __pyx_k_pyx_unpickle_UnionMethod[] = "__pyx_unpickle_UnionMethod"; static const char __pyx_k_AnyMethod___reduce_cython[] = "AnyMethod.__reduce_cython__"; static const char __pyx_k_CoercerMethod_deserialize[] = "CoercerMethod.deserialize"; static const char __pyx_k_IntMethod___reduce_cython[] = "IntMethod.__reduce_cython__"; static const char __pyx_k_LiteralMethod_deserialize[] = "LiteralMethod.deserialize"; static const char __pyx_k_MappingMethod_deserialize[] = "MappingMethod.deserialize"; static const char __pyx_k_RecMethod___reduce_cython[] = "RecMethod.__reduce_cython__"; static const char __pyx_k_SetMethod___reduce_cython[] = "SetMethod.__reduce_cython__"; static const char __pyx_k_StrMethod___reduce_cython[] = "StrMethod.__reduce_cython__"; static const char __pyx_k_apischema_validation_mock[] = "apischema.validation.mock"; static const char __pyx_k_pyx_unpickle_DefaultField[] = "__pyx_unpickle_DefaultField"; static const char __pyx_k_pyx_unpickle_FactoryField[] = "__pyx_unpickle_FactoryField"; static const char __pyx_k_pyx_unpickle_ObjectMethod[] = "__pyx_unpickle_ObjectMethod"; static const char __pyx_k_pyx_unpickle_PatternField[] = "__pyx_unpickle_PatternField"; static const char __pyx_k_BoolMethod___reduce_cython[] = "BoolMethod.__reduce_cython__"; static const char __pyx_k_Constraint___reduce_cython[] = "Constraint.__reduce_cython__"; static const char __pyx_k_ExclusiveMaximumConstraint[] = "ExclusiveMaximumConstraint"; static const char __pyx_k_ExclusiveMinimumConstraint[] = "ExclusiveMinimumConstraint"; static const char __pyx_k_ListMethod___reduce_cython[] = "ListMethod.__reduce_cython__"; static const char __pyx_k_MaximumConstraint_validate[] = "MaximumConstraint.validate"; static const char __pyx_k_MinimumConstraint_validate[] = "MinimumConstraint.validate"; static const char __pyx_k_NoneMethod___reduce_cython[] = "NoneMethod.__reduce_cython__"; static const char __pyx_k_OptionalMethod_deserialize[] = "OptionalMethod.deserialize"; static const char __pyx_k_PatternConstraint_validate[] = "PatternConstraint.validate"; static const char __pyx_k_pyx_unpickle_CoercerMethod[] = "__pyx_unpickle_CoercerMethod"; static const char __pyx_k_pyx_unpickle_Discriminated[] = "__pyx_unpickle_Discriminated"; static const char __pyx_k_pyx_unpickle_LiteralMethod[] = "__pyx_unpickle_LiteralMethod"; static const char __pyx_k_pyx_unpickle_MappingMethod[] = "__pyx_unpickle_MappingMethod"; static const char __pyx_k_pyx_unpickle_NoConstructor[] = "__pyx_unpickle_NoConstructor"; static const char __pyx_k_AnyMethod___setstate_cython[] = "AnyMethod.__setstate_cython__"; static const char __pyx_k_Constructor___reduce_cython[] = "Constructor.__reduce_cython__"; static const char __pyx_k_FieldsConstructor_construct[] = "FieldsConstructor.construct"; static const char __pyx_k_FloatMethod___reduce_cython[] = "FloatMethod.__reduce_cython__"; static const char __pyx_k_FrozenSetMethod_deserialize[] = "FrozenSetMethod.deserialize"; static const char __pyx_k_IntMethod___setstate_cython[] = "IntMethod.__setstate_cython__"; static const char __pyx_k_MaxItemsConstraint_validate[] = "MaxItemsConstraint.validate"; static const char __pyx_k_MinItemsConstraint_validate[] = "MinItemsConstraint.validate"; static const char __pyx_k_RecMethod___setstate_cython[] = "RecMethod.__setstate_cython__"; static const char __pyx_k_SetMethod___setstate_cython[] = "SetMethod.__setstate_cython__"; static const char __pyx_k_StrMethod___setstate_cython[] = "StrMethod.__setstate_cython__"; static const char __pyx_k_TupleMethod___reduce_cython[] = "TupleMethod.__reduce_cython__"; static const char __pyx_k_TypeCheckMethod_deserialize[] = "TypeCheckMethod.deserialize"; static const char __pyx_k_UnionMethod___reduce_cython[] = "UnionMethod.__reduce_cython__"; static const char __pyx_k_ValidatorMethod_deserialize[] = "ValidatorMethod.deserialize"; static const char __pyx_k_apischema_conversions_utils[] = "apischema.conversions.utils"; static const char __pyx_k_apischema_json_schema_types[] = "apischema.json_schema.types"; static const char __pyx_k_apischema_validation_errors[] = "apischema.validation.errors"; static const char __pyx_k_pyx_unpickle_FlattenedField[] = "__pyx_unpickle_FlattenedField"; static const char __pyx_k_pyx_unpickle_OptionalMethod[] = "__pyx_unpickle_OptionalMethod"; static const char __pyx_k_pyx_unpickle_RawConstructor[] = "__pyx_unpickle_RawConstructor"; static const char __pyx_k_BoolMethod___setstate_cython[] = "BoolMethod.__setstate_cython__"; static const char __pyx_k_Constraint___setstate_cython[] = "Constraint.__setstate_cython__"; static const char __pyx_k_ConversionMethod_deserialize[] = "ConversionMethod.deserialize"; static const char __pyx_k_DefaultField___reduce_cython[] = "DefaultField.__reduce_cython__"; static const char __pyx_k_FactoryField___reduce_cython[] = "FactoryField.__reduce_cython__"; static const char __pyx_k_ListMethod___setstate_cython[] = "ListMethod.__setstate_cython__"; static const char __pyx_k_MappingCheckOnly_deserialize[] = "MappingCheckOnly.deserialize"; static const char __pyx_k_MaxLengthConstraint_validate[] = "MaxLengthConstraint.validate"; static const char __pyx_k_MinLengthConstraint_validate[] = "MinLengthConstraint.validate"; static const char __pyx_k_NoneMethod___setstate_cython[] = "NoneMethod.__setstate_cython__"; static const char __pyx_k_ObjectMethod___reduce_cython[] = "ObjectMethod.__reduce_cython__"; static const char __pyx_k_PatternField___reduce_cython[] = "PatternField.__reduce_cython__"; static const char __pyx_k_RawConstructorCopy_construct[] = "RawConstructorCopy.construct"; static const char __pyx_k_pyx_unpickle_AdditionalField[] = "__pyx_unpickle_AdditionalField"; static const char __pyx_k_pyx_unpickle_FrozenSetMethod[] = "__pyx_unpickle_FrozenSetMethod"; static const char __pyx_k_pyx_unpickle_TypeCheckMethod[] = "__pyx_unpickle_TypeCheckMethod"; static const char __pyx_k_pyx_unpickle_ValidatorMethod[] = "__pyx_unpickle_ValidatorMethod"; static const char __pyx_k_CoercerMethod___reduce_cython[] = "CoercerMethod.__reduce_cython__"; static const char __pyx_k_Constructor___setstate_cython[] = "Constructor.__setstate_cython__"; static const char __pyx_k_Discriminated___reduce_cython[] = "Discriminated.__reduce_cython__"; static const char __pyx_k_FloatMethod___setstate_cython[] = "FloatMethod.__setstate_cython__"; static const char __pyx_k_LiteralMethod___reduce_cython[] = "LiteralMethod.__reduce_cython__"; static const char __pyx_k_MappingMethod___reduce_cython[] = "MappingMethod.__reduce_cython__"; static const char __pyx_k_MultipleOfConstraint_validate[] = "MultipleOfConstraint.validate"; static const char __pyx_k_NoConstructor___reduce_cython[] = "NoConstructor.__reduce_cython__"; static const char __pyx_k_TupleMethod___setstate_cython[] = "TupleMethod.__setstate_cython__"; static const char __pyx_k_UnionByTypeMethod_deserialize[] = "UnionByTypeMethod.deserialize"; static const char __pyx_k_UnionMethod___setstate_cython[] = "UnionMethod.__setstate_cython__"; static const char __pyx_k_pyx_unpickle_ConversionMethod[] = "__pyx_unpickle_ConversionMethod"; static const char __pyx_k_pyx_unpickle_MappingCheckOnly[] = "__pyx_unpickle_MappingCheckOnly"; static const char __pyx_k_ConversionWithValueErrorMethod[] = "ConversionWithValueErrorMethod"; static const char __pyx_k_DefaultField___setstate_cython[] = "DefaultField.__setstate_cython__"; static const char __pyx_k_FactoryField___setstate_cython[] = "FactoryField.__setstate_cython__"; static const char __pyx_k_FlattenedField___reduce_cython[] = "FlattenedField.__reduce_cython__"; static const char __pyx_k_ObjectMethod___setstate_cython[] = "ObjectMethod.__setstate_cython__"; static const char __pyx_k_OptionalMethod___reduce_cython[] = "OptionalMethod.__reduce_cython__"; static const char __pyx_k_PatternField___setstate_cython[] = "PatternField.__setstate_cython__"; static const char __pyx_k_RawConstructor___reduce_cython[] = "RawConstructor.__reduce_cython__"; static const char __pyx_k_SimpleObjectMethod_deserialize[] = "SimpleObjectMethod.deserialize"; static const char __pyx_k_SubprimitiveMethod_deserialize[] = "SubprimitiveMethod.deserialize"; static const char __pyx_k_UniqueItemsConstraint_validate[] = "UniqueItemsConstraint.validate"; static const char __pyx_k_pyx_unpickle_ConstrainedFloatM[] = "__pyx_unpickle_ConstrainedFloatMethod"; static const char __pyx_k_pyx_unpickle_ConstrainedIntMet[] = "__pyx_unpickle_ConstrainedIntMethod"; static const char __pyx_k_pyx_unpickle_ConstrainedStrMet[] = "__pyx_unpickle_ConstrainedStrMethod"; static const char __pyx_k_pyx_unpickle_ConversionAlterna[] = "__pyx_unpickle_ConversionAlternative"; static const char __pyx_k_pyx_unpickle_ConversionUnionMe[] = "__pyx_unpickle_ConversionUnionMethod"; static const char __pyx_k_pyx_unpickle_ConversionWithVal[] = "__pyx_unpickle_ConversionWithValueErrorMethod"; static const char __pyx_k_pyx_unpickle_DeserializationMe[] = "__pyx_unpickle_DeserializationMethod"; static const char __pyx_k_pyx_unpickle_DiscriminatorMeth[] = "__pyx_unpickle_DiscriminatorMethod"; static const char __pyx_k_pyx_unpickle_ExclusiveMaximumC[] = "__pyx_unpickle_ExclusiveMaximumConstraint"; static const char __pyx_k_pyx_unpickle_ExclusiveMinimumC[] = "__pyx_unpickle_ExclusiveMinimumConstraint"; static const char __pyx_k_pyx_unpickle_FieldsConstructor[] = "__pyx_unpickle_FieldsConstructor"; static const char __pyx_k_pyx_unpickle_ListCheckOnlyMeth[] = "__pyx_unpickle_ListCheckOnlyMethod"; static const char __pyx_k_pyx_unpickle_MaxItemsConstrain[] = "__pyx_unpickle_MaxItemsConstraint"; static const char __pyx_k_pyx_unpickle_MaxLengthConstrai[] = "__pyx_unpickle_MaxLengthConstraint"; static const char __pyx_k_pyx_unpickle_MaxPropertiesCons[] = "__pyx_unpickle_MaxPropertiesConstraint"; static const char __pyx_k_pyx_unpickle_MaximumConstraint[] = "__pyx_unpickle_MaximumConstraint"; static const char __pyx_k_pyx_unpickle_MinItemsConstrain[] = "__pyx_unpickle_MinItemsConstraint"; static const char __pyx_k_pyx_unpickle_MinLengthConstrai[] = "__pyx_unpickle_MinLengthConstraint"; static const char __pyx_k_pyx_unpickle_MinPropertiesCons[] = "__pyx_unpickle_MinPropertiesConstraint"; static const char __pyx_k_pyx_unpickle_MinimumConstraint[] = "__pyx_unpickle_MinimumConstraint"; static const char __pyx_k_pyx_unpickle_MultipleOfConstra[] = "__pyx_unpickle_MultipleOfConstraint"; static const char __pyx_k_pyx_unpickle_PatternConstraint[] = "__pyx_unpickle_PatternConstraint"; static const char __pyx_k_pyx_unpickle_RawConstructorCop[] = "__pyx_unpickle_RawConstructorCopy"; static const char __pyx_k_pyx_unpickle_SimpleObjectMetho[] = "__pyx_unpickle_SimpleObjectMethod"; static const char __pyx_k_pyx_unpickle_SubprimitiveMetho[] = "__pyx_unpickle_SubprimitiveMethod"; static const char __pyx_k_pyx_unpickle_UnionByTypeMethod[] = "__pyx_unpickle_UnionByTypeMethod"; static const char __pyx_k_pyx_unpickle_UniqueItemsConstr[] = "__pyx_unpickle_UniqueItemsConstraint"; static const char __pyx_k_pyx_unpickle_VariadicTupleMeth[] = "__pyx_unpickle_VariadicTupleMethod"; static const char __pyx_k_AdditionalField___reduce_cython[] = "AdditionalField.__reduce_cython__"; static const char __pyx_k_CoercerMethod___setstate_cython[] = "CoercerMethod.__setstate_cython__"; static const char __pyx_k_ConstrainedFloatMethod___reduce[] = "ConstrainedFloatMethod.__reduce_cython__"; static const char __pyx_k_ConstrainedIntMethod___setstate[] = "ConstrainedIntMethod.__setstate_cython__"; static const char __pyx_k_ConstrainedStrMethod___setstate[] = "ConstrainedStrMethod.__setstate_cython__"; static const char __pyx_k_Discriminated___setstate_cython[] = "Discriminated.__setstate_cython__"; static const char __pyx_k_DiscriminatorMethod_deserialize[] = "DiscriminatorMethod.deserialize"; static const char __pyx_k_FrozenSetMethod___reduce_cython[] = "FrozenSetMethod.__reduce_cython__"; static const char __pyx_k_ListCheckOnlyMethod_deserialize[] = "ListCheckOnlyMethod.deserialize"; static const char __pyx_k_LiteralMethod___setstate_cython[] = "LiteralMethod.__setstate_cython__"; static const char __pyx_k_MappingMethod___setstate_cython[] = "MappingMethod.__setstate_cython__"; static const char __pyx_k_MultipleOfConstraint___setstate[] = "MultipleOfConstraint.__setstate_cython__"; static const char __pyx_k_NoConstructor___setstate_cython[] = "NoConstructor.__setstate_cython__"; static const char __pyx_k_TypeCheckMethod___reduce_cython[] = "TypeCheckMethod.__reduce_cython__"; static const char __pyx_k_ValidatorMethod___reduce_cython[] = "ValidatorMethod.__reduce_cython__"; static const char __pyx_k_VariadicTupleMethod_deserialize[] = "VariadicTupleMethod.deserialize"; static const char __pyx_k_apischema_validation_validators[] = "apischema.validation.validators"; static const char __pyx_k_AdditionalField___setstate_cytho[] = "AdditionalField.__setstate_cython__"; static const char __pyx_k_ConstrainedFloatMethod___setstat[] = "ConstrainedFloatMethod.__setstate_cython__"; static const char __pyx_k_ConstrainedFloatMethod_deseriali[] = "ConstrainedFloatMethod.deserialize"; static const char __pyx_k_ConstrainedIntMethod___reduce_cy[] = "ConstrainedIntMethod.__reduce_cython__"; static const char __pyx_k_ConstrainedIntMethod_deserialize[] = "ConstrainedIntMethod.deserialize"; static const char __pyx_k_ConstrainedStrMethod___reduce_cy[] = "ConstrainedStrMethod.__reduce_cython__"; static const char __pyx_k_ConstrainedStrMethod_deserialize[] = "ConstrainedStrMethod.deserialize"; static const char __pyx_k_ConversionAlternative___reduce_c[] = "ConversionAlternative.__reduce_cython__"; static const char __pyx_k_ConversionAlternative___setstate[] = "ConversionAlternative.__setstate_cython__"; static const char __pyx_k_ConversionMethod___reduce_cython[] = "ConversionMethod.__reduce_cython__"; static const char __pyx_k_ConversionMethod___setstate_cyth[] = "ConversionMethod.__setstate_cython__"; static const char __pyx_k_ConversionUnionMethod___reduce_c[] = "ConversionUnionMethod.__reduce_cython__"; static const char __pyx_k_ConversionUnionMethod___setstate[] = "ConversionUnionMethod.__setstate_cython__"; static const char __pyx_k_ConversionUnionMethod_deserializ[] = "ConversionUnionMethod.deserialize"; static const char __pyx_k_ConversionWithValueErrorMethod_2[] = "ConversionWithValueErrorMethod.__reduce_cython__"; static const char __pyx_k_ConversionWithValueErrorMethod_3[] = "ConversionWithValueErrorMethod.__setstate_cython__"; static const char __pyx_k_ConversionWithValueErrorMethod_d[] = "ConversionWithValueErrorMethod.deserialize"; static const char __pyx_k_DeserializationMethod___reduce_c[] = "DeserializationMethod.__reduce_cython__"; static const char __pyx_k_DeserializationMethod___setstate[] = "DeserializationMethod.__setstate_cython__"; static const char __pyx_k_DiscriminatorMethod___reduce_cyt[] = "DiscriminatorMethod.__reduce_cython__"; static const char __pyx_k_DiscriminatorMethod___setstate_c[] = "DiscriminatorMethod.__setstate_cython__"; static const char __pyx_k_ExclusiveMaximumConstraint___red[] = "ExclusiveMaximumConstraint.__reduce_cython__"; static const char __pyx_k_ExclusiveMaximumConstraint___set[] = "ExclusiveMaximumConstraint.__setstate_cython__"; static const char __pyx_k_ExclusiveMaximumConstraint_valid[] = "ExclusiveMaximumConstraint.validate"; static const char __pyx_k_ExclusiveMinimumConstraint___red[] = "ExclusiveMinimumConstraint.__reduce_cython__"; static const char __pyx_k_ExclusiveMinimumConstraint___set[] = "ExclusiveMinimumConstraint.__setstate_cython__"; static const char __pyx_k_ExclusiveMinimumConstraint_valid[] = "ExclusiveMinimumConstraint.validate"; static const char __pyx_k_FieldsConstructor___reduce_cytho[] = "FieldsConstructor.__reduce_cython__"; static const char __pyx_k_FieldsConstructor___setstate_cyt[] = "FieldsConstructor.__setstate_cython__"; static const char __pyx_k_FlattenedField___setstate_cython[] = "FlattenedField.__setstate_cython__"; static const char __pyx_k_FrozenSetMethod___setstate_cytho[] = "FrozenSetMethod.__setstate_cython__"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0[] = "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))"; static const char __pyx_k_ListCheckOnlyMethod___reduce_cyt[] = "ListCheckOnlyMethod.__reduce_cython__"; static const char __pyx_k_ListCheckOnlyMethod___setstate_c[] = "ListCheckOnlyMethod.__setstate_cython__"; static const char __pyx_k_MappingCheckOnly___reduce_cython[] = "MappingCheckOnly.__reduce_cython__"; static const char __pyx_k_MappingCheckOnly___setstate_cyth[] = "MappingCheckOnly.__setstate_cython__"; static const char __pyx_k_MaxItemsConstraint___reduce_cyth[] = "MaxItemsConstraint.__reduce_cython__"; static const char __pyx_k_MaxItemsConstraint___setstate_cy[] = "MaxItemsConstraint.__setstate_cython__"; static const char __pyx_k_MaxLengthConstraint___reduce_cyt[] = "MaxLengthConstraint.__reduce_cython__"; static const char __pyx_k_MaxLengthConstraint___setstate_c[] = "MaxLengthConstraint.__setstate_cython__"; static const char __pyx_k_MaxPropertiesConstraint___reduce[] = "MaxPropertiesConstraint.__reduce_cython__"; static const char __pyx_k_MaxPropertiesConstraint___setsta[] = "MaxPropertiesConstraint.__setstate_cython__"; static const char __pyx_k_MaxPropertiesConstraint_validate[] = "MaxPropertiesConstraint.validate"; static const char __pyx_k_MaximumConstraint___reduce_cytho[] = "MaximumConstraint.__reduce_cython__"; static const char __pyx_k_MaximumConstraint___setstate_cyt[] = "MaximumConstraint.__setstate_cython__"; static const char __pyx_k_MinItemsConstraint___reduce_cyth[] = "MinItemsConstraint.__reduce_cython__"; static const char __pyx_k_MinItemsConstraint___setstate_cy[] = "MinItemsConstraint.__setstate_cython__"; static const char __pyx_k_MinLengthConstraint___reduce_cyt[] = "MinLengthConstraint.__reduce_cython__"; static const char __pyx_k_MinLengthConstraint___setstate_c[] = "MinLengthConstraint.__setstate_cython__"; static const char __pyx_k_MinPropertiesConstraint___reduce[] = "MinPropertiesConstraint.__reduce_cython__"; static const char __pyx_k_MinPropertiesConstraint___setsta[] = "MinPropertiesConstraint.__setstate_cython__"; static const char __pyx_k_MinPropertiesConstraint_validate[] = "MinPropertiesConstraint.validate"; static const char __pyx_k_MinimumConstraint___reduce_cytho[] = "MinimumConstraint.__reduce_cython__"; static const char __pyx_k_MinimumConstraint___setstate_cyt[] = "MinimumConstraint.__setstate_cython__"; static const char __pyx_k_MultipleOfConstraint___reduce_cy[] = "MultipleOfConstraint.__reduce_cython__"; static const char __pyx_k_OptionalMethod___setstate_cython[] = "OptionalMethod.__setstate_cython__"; static const char __pyx_k_PatternConstraint___reduce_cytho[] = "PatternConstraint.__reduce_cython__"; static const char __pyx_k_PatternConstraint___setstate_cyt[] = "PatternConstraint.__setstate_cython__"; static const char __pyx_k_RawConstructorCopy___reduce_cyth[] = "RawConstructorCopy.__reduce_cython__"; static const char __pyx_k_RawConstructorCopy___setstate_cy[] = "RawConstructorCopy.__setstate_cython__"; static const char __pyx_k_RawConstructor___setstate_cython[] = "RawConstructor.__setstate_cython__"; static const char __pyx_k_SimpleObjectMethod___reduce_cyth[] = "SimpleObjectMethod.__reduce_cython__"; static const char __pyx_k_SimpleObjectMethod___setstate_cy[] = "SimpleObjectMethod.__setstate_cython__"; static const char __pyx_k_SubprimitiveMethod___reduce_cyth[] = "SubprimitiveMethod.__reduce_cython__"; static const char __pyx_k_SubprimitiveMethod___setstate_cy[] = "SubprimitiveMethod.__setstate_cython__"; static const char __pyx_k_TypeCheckMethod___setstate_cytho[] = "TypeCheckMethod.__setstate_cython__"; static const char __pyx_k_UnionByTypeMethod___reduce_cytho[] = "UnionByTypeMethod.__reduce_cython__"; static const char __pyx_k_UnionByTypeMethod___setstate_cyt[] = "UnionByTypeMethod.__setstate_cython__"; static const char __pyx_k_UnionByTypeMethod_deserialize_lo[] = "UnionByTypeMethod_deserialize..genexpr"; static const char __pyx_k_UniqueItemsConstraint___reduce_c[] = "UniqueItemsConstraint.__reduce_cython__"; static const char __pyx_k_UniqueItemsConstraint___setstate[] = "UniqueItemsConstraint.__setstate_cython__"; static const char __pyx_k_ValidatorMethod___setstate_cytho[] = "ValidatorMethod.__setstate_cython__"; static const char __pyx_k_VariadicTupleMethod___reduce_cyt[] = "VariadicTupleMethod.__reduce_cython__"; static const char __pyx_k_VariadicTupleMethod___setstate_c[] = "VariadicTupleMethod.__setstate_cython__"; static const char __pyx_k_apischema_deserialization_coerci[] = "apischema.deserialization.coercion"; static const char __pyx_k_apischema_deserialization_method[] = "apischema.deserialization.methods"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_2[] = "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_3[] = "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_4[] = "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_5[] = "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_6[] = "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_7[] = "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_8[] = "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_9[] = "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))"; static const char __pyx_k_apischema_deserialization_method_2[] = "apischema/deserialization/methods.pyx"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_10[] = "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_11[] = "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_12[] = "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_13[] = "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_14[] = "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_15[] = "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_16[] = "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_17[] = "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_18[] = "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_19[] = "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_20[] = "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_21[] = "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_22[] = "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_23[] = "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_24[] = "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_25[] = "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_26[] = "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_27[] = "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_28[] = "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_29[] = "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_30[] = "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_31[] = "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_32[] = "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_33[] = "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_34[] = "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_35[] = "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_36[] = "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_37[] = "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_38[] = "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_39[] = "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_40[] = "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_41[] = "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_42[] = "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_43[] = "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))"; static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_44[] = "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))"; /* #### Code section: decls ### */ static int __pyx_pf_9apischema_15deserialization_7methods_10Constraint___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self, PyObject *__pyx_v_error); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10Constraint_5error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10Constraint_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10Constraint_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_minimum); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_7minimum___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_maximum); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_7maximum___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_exc_min); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7exc_min___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_exc_max); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7exc_max___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_mult_of); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_7mult_of___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_min_len); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_7min_len___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_max_len); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_7max_len___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_pattern); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_7pattern___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_min_items); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_9min_items___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_max_items); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_9max_items___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_unique); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6unique___get__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_min_properties); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_14min_properties___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_max_properties); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_14max_properties___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21DeserializationMethod___reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21DeserializationMethod_2__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_lazy); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_4lazy___get__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_method, PyObject *__pyx_v_validators, PyObject *__pyx_v_aliaser); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_10validators___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_7aliaser___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_coercer, PyObject *__pyx_v_cls, PyObject *__pyx_v_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_7coercer___get__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_3cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_expected, PyObject *__pyx_v_fallback); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_8expected___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_8fallback___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_constraints); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_value_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_value_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_value_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_value_map, PyObject *__pyx_v_error, PyObject *__pyx_v_coercer, PyObject *__pyx_v_types); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_9value_map___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_5error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_7coercer___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_5types___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_key_method, PyObject *__pyx_v_value_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_10key_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_key_method, PyObject *__pyx_v_value_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_10key_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_5Field___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_alias, PyObject *__pyx_v_method, PyObject *__pyx_v_required, PyObject *__pyx_v_required_by, PyObject *__pyx_v_fall_back_on_default); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_5alias___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_8required___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_11required_by___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_aliases, PyObject *__pyx_v_method, PyObject *__pyx_v_fall_back_on_default); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_7aliases___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_12PatternField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_pattern, PyObject *__pyx_v_method, PyObject *__pyx_v_fall_back_on_default); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_7pattern___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_method, PyObject *__pyx_v_fall_back_on_default); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_11Constructor___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self, PyObject *__pyx_v_cls); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11Constructor_3cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11Constructor_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11Constructor_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_fields); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_cls); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_fields); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_cls); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_fields); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_cls); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_12DefaultField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_default_value); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_13default_value___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_12FactoryField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_factory); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_7factory___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_fields); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_cls, PyObject *__pyx_v_nb_fields, PyObject *__pyx_v_default_fields, PyObject *__pyx_v_factory_fields); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_9nb_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_14default_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_14factory_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_constructor, PyObject *__pyx_v_fields, PyObject *__pyx_v_all_aliases, PyObject *__pyx_v_typed_dict, PyObject *__pyx_v_missing, PyObject *__pyx_v_unexpected); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_11constructor___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_6fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_11all_aliases___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_10typed_dict___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_7missing___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_10unexpected___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_constructor, PyObject *__pyx_v_constraints, PyObject *__pyx_v_fields, PyObject *__pyx_v_flattened_fields, PyObject *__pyx_v_pattern_fields, PyObject *__pyx_v_additional_field, PyObject *__pyx_v_all_aliases, PyObject *__pyx_v_additional_properties, PyObject *__pyx_v_typed_dict, PyObject *__pyx_v_validators, PyObject *__pyx_v_init_defaults, PyObject *__pyx_v_post_init_modified, PyObject *__pyx_v_aliaser, PyObject *__pyx_v_missing, PyObject *__pyx_v_unexpected); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11constructor___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_6fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16flattened_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_14pattern_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16additional_field___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11all_aliases___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_21additional_properties___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10typed_dict___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10validators___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_13init_defaults___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_18post_init_modified___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_7aliaser___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_7missing___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10unexpected___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16aggregate_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9IntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_9IntMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9IntMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9IntMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9StrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_9StrMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9StrMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9StrMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_constraints); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_constraints); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_constraints); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_cls, PyObject *__pyx_v_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_3cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_min_len_error, PyObject *__pyx_v_max_len_error, PyObject *__pyx_v_elt_methods); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_13min_len_error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_13max_len_error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_11elt_methods___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_value_method, PyObject *__pyx_v_coercer); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_7coercer___get__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_method_by_cls); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_13method_by_cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_alt_methods); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_11alt_methods___get__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_converter, PyObject *__pyx_v_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_9converter___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_converter, PyObject *__pyx_v_method); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative___init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self, PyObject *__pyx_v_converter, PyObject *__pyx_v_method, PyObject *__pyx_v_value_error); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_9converter___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_11value_error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_alternatives); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_12alternatives___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_13Discriminated___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self, PyObject *__pyx_v_discriminator, PyObject *__pyx_v_data); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_13discriminator___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_4data___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static int __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_alias, PyObject *__pyx_v_mapping, PyObject *__pyx_v_missing, PyObject *__pyx_v_error); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_5alias___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_7mapping___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_7missing___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_5error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_to_hashable(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_2format_error(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_err, PyObject *__pyx_v_data); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_4validate_constraints(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_constraints, PyObject *__pyx_v_children_errors); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_6set_child_error(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_errors, PyObject *__pyx_v_key, PyObject *__pyx_v_error); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_8extend_errors(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_errors, PyObject *__pyx_v_messages); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10update_children_errors(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_errors, PyObject *__pyx_v_children); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_genexpr(PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12__pyx_unpickle_Constraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14__pyx_unpickle_MinimumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16__pyx_unpickle_MaximumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18__pyx_unpickle_ExclusiveMinimumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20__pyx_unpickle_ExclusiveMaximumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22__pyx_unpickle_MultipleOfConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_24__pyx_unpickle_MinLengthConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26__pyx_unpickle_MaxLengthConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_28__pyx_unpickle_PatternConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30__pyx_unpickle_MinItemsConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_32__pyx_unpickle_MaxItemsConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_34__pyx_unpickle_UniqueItemsConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_36__pyx_unpickle_MinPropertiesConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_38__pyx_unpickle_MaxPropertiesConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_40__pyx_unpickle_DeserializationMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_42__pyx_unpickle_RecMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_44__pyx_unpickle_ValidatorMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_46__pyx_unpickle_CoercerMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_48__pyx_unpickle_TypeCheckMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_50__pyx_unpickle_AnyMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_52__pyx_unpickle_ListCheckOnlyMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_54__pyx_unpickle_ListMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_56__pyx_unpickle_SetMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_58__pyx_unpickle_FrozenSetMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_60__pyx_unpickle_VariadicTupleMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_62__pyx_unpickle_LiteralMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_64__pyx_unpickle_MappingCheckOnly(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_66__pyx_unpickle_MappingMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_68__pyx_unpickle_Field(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_70__pyx_unpickle_FlattenedField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_72__pyx_unpickle_PatternField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_74__pyx_unpickle_AdditionalField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_76__pyx_unpickle_Constructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_78__pyx_unpickle_NoConstructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_80__pyx_unpickle_RawConstructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_82__pyx_unpickle_RawConstructorCopy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_84__pyx_unpickle_DefaultField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_86__pyx_unpickle_FactoryField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_88__pyx_unpickle_FieldsConstructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_90__pyx_unpickle_SimpleObjectMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_92__pyx_unpickle_ObjectMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_94__pyx_unpickle_NoneMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_96__pyx_unpickle_IntMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_98__pyx_unpickle_FloatMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_100__pyx_unpickle_StrMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_102__pyx_unpickle_BoolMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_104__pyx_unpickle_ConstrainedIntMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_106__pyx_unpickle_ConstrainedFloatMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_108__pyx_unpickle_ConstrainedStrMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_110__pyx_unpickle_SubprimitiveMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_112__pyx_unpickle_TupleMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_114__pyx_unpickle_OptionalMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_116__pyx_unpickle_UnionByTypeMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_118__pyx_unpickle_UnionMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_120__pyx_unpickle_ConversionMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_122__pyx_unpickle_ConversionWithValueErrorMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_124__pyx_unpickle_ConversionAlternative(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_126__pyx_unpickle_ConversionUnionMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_128__pyx_unpickle_Discriminated(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_130__pyx_unpickle_DiscriminatorMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Constraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinimumConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaximumConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MultipleOfConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinLengthConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaxLengthConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_PatternConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinItemsConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaxItemsConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_UniqueItemsConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinPropertiesConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaxPropertiesConstraint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_RecMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ValidatorMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_CoercerMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_TypeCheckMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_AnyMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ListCheckOnlyMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ListMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_SetMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FrozenSetMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_VariadicTupleMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_LiteralMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MappingCheckOnly(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MappingMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Field(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FlattenedField(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_PatternField(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_AdditionalField(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Constructor(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_NoConstructor(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_RawConstructor(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_RawConstructorCopy(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_DefaultField(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FactoryField(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FieldsConstructor(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_SimpleObjectMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ObjectMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_NoneMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_IntMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FloatMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_StrMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_BoolMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedIntMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedFloatMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedStrMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_SubprimitiveMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_TupleMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_OptionalMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_UnionByTypeMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_UnionMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionAlternative(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionUnionMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Discriminated(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_DiscriminatorMethod(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_keys = {0, 0, 0, 0, 0}; static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_update = {0, 0, 0, 0, 0}; /* #### Code section: late_includes ### */ /* #### Code section: module_state ### */ typedef struct { PyObject *__pyx_d; PyObject *__pyx_b; PyObject *__pyx_cython_runtime; PyObject *__pyx_empty_tuple; PyObject *__pyx_empty_bytes; PyObject *__pyx_empty_unicode; #ifdef __Pyx_CyFunction_USED PyTypeObject *__pyx_CyFunctionType; #endif #ifdef __Pyx_FusedFunction_USED PyTypeObject *__pyx_FusedFunctionType; #endif #ifdef __Pyx_Generator_USED PyTypeObject *__pyx_GeneratorType; #endif #ifdef __Pyx_IterableCoroutine_USED PyTypeObject *__pyx_IterableCoroutineType; #endif #ifdef __Pyx_Coroutine_USED PyTypeObject *__pyx_CoroutineAwaitType; #endif #ifdef __Pyx_Coroutine_USED PyTypeObject *__pyx_CoroutineType; #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif PyTypeObject *__pyx_ptype_7cpython_4type_type; #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif PyTypeObject *__pyx_ptype_7cpython_4bool_bool; #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif PyTypeObject *__pyx_ptype_7cpython_7complex_complex; #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE PyObject *__pyx_type_9apischema_15deserialization_7methods_Constraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_PatternConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint; PyObject *__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_RecMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_CoercerMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_AnyMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ListMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_SetMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_LiteralMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly; PyObject *__pyx_type_9apischema_15deserialization_7methods_MappingMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_Field; PyObject *__pyx_type_9apischema_15deserialization_7methods_FlattenedField; PyObject *__pyx_type_9apischema_15deserialization_7methods_PatternField; PyObject *__pyx_type_9apischema_15deserialization_7methods_AdditionalField; PyObject *__pyx_type_9apischema_15deserialization_7methods_Constructor; PyObject *__pyx_type_9apischema_15deserialization_7methods_NoConstructor; PyObject *__pyx_type_9apischema_15deserialization_7methods_RawConstructor; PyObject *__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy; PyObject *__pyx_type_9apischema_15deserialization_7methods_DefaultField; PyObject *__pyx_type_9apischema_15deserialization_7methods_FactoryField; PyObject *__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor; PyObject *__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ObjectMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_NoneMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_IntMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_FloatMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_StrMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_BoolMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_TupleMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_OptionalMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_UnionMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConversionMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative; PyObject *__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods_Discriminated; PyObject *__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod; PyObject *__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize; PyObject *__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr; #endif PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_Constraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_RecMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ListMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_SetMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_Field; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_PatternField; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_Constructor; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_DefaultField; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_FactoryField; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_IntMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_StrMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_Discriminated; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize; PyTypeObject *__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr; PyObject *__pyx_kp_u_; PyObject *__pyx_n_s_AbstractSet; PyObject *__pyx_n_s_AdditionalField; PyObject *__pyx_n_s_AdditionalField___reduce_cython; PyObject *__pyx_n_s_AdditionalField___setstate_cytho; PyObject *__pyx_n_s_Aliaser; PyObject *__pyx_n_s_Any; PyObject *__pyx_n_s_AnyMethod; PyObject *__pyx_n_s_AnyMethod___reduce_cython; PyObject *__pyx_n_s_AnyMethod___setstate_cython; PyObject *__pyx_n_s_AnyMethod_deserialize; PyObject *__pyx_n_s_AnyType; PyObject *__pyx_n_s_AssertionError; PyObject *__pyx_n_s_BoolMethod; PyObject *__pyx_n_s_BoolMethod___reduce_cython; PyObject *__pyx_n_s_BoolMethod___setstate_cython; PyObject *__pyx_n_s_BoolMethod_deserialize; PyObject *__pyx_n_s_Callable; PyObject *__pyx_n_s_Coercer; PyObject *__pyx_n_s_CoercerMethod; PyObject *__pyx_n_s_CoercerMethod___reduce_cython; PyObject *__pyx_n_s_CoercerMethod___setstate_cython; PyObject *__pyx_n_s_CoercerMethod_deserialize; PyObject *__pyx_n_s_ConstrainedFloatMethod; PyObject *__pyx_n_s_ConstrainedFloatMethod___reduce; PyObject *__pyx_n_s_ConstrainedFloatMethod___setstat; PyObject *__pyx_n_s_ConstrainedFloatMethod_deseriali; PyObject *__pyx_n_s_ConstrainedIntMethod; PyObject *__pyx_n_s_ConstrainedIntMethod___reduce_cy; PyObject *__pyx_n_s_ConstrainedIntMethod___setstate; PyObject *__pyx_n_s_ConstrainedIntMethod_deserialize; PyObject *__pyx_n_s_ConstrainedStrMethod; PyObject *__pyx_n_s_ConstrainedStrMethod___reduce_cy; PyObject *__pyx_n_s_ConstrainedStrMethod___setstate; PyObject *__pyx_n_s_ConstrainedStrMethod_deserialize; PyObject *__pyx_n_s_Constraint; PyObject *__pyx_n_s_Constraint___reduce_cython; PyObject *__pyx_n_s_Constraint___setstate_cython; PyObject *__pyx_n_s_Constructor; PyObject *__pyx_n_s_Constructor___reduce_cython; PyObject *__pyx_n_s_Constructor___setstate_cython; PyObject *__pyx_n_s_ConversionAlternative; PyObject *__pyx_n_s_ConversionAlternative___reduce_c; PyObject *__pyx_n_s_ConversionAlternative___setstate; PyObject *__pyx_n_s_ConversionMethod; PyObject *__pyx_n_s_ConversionMethod___reduce_cython; PyObject *__pyx_n_s_ConversionMethod___setstate_cyth; PyObject *__pyx_n_s_ConversionMethod_deserialize; PyObject *__pyx_n_s_ConversionUnionMethod; PyObject *__pyx_n_s_ConversionUnionMethod___reduce_c; PyObject *__pyx_n_s_ConversionUnionMethod___setstate; PyObject *__pyx_n_s_ConversionUnionMethod_deserializ; PyObject *__pyx_n_s_ConversionWithValueErrorMethod; PyObject *__pyx_n_s_ConversionWithValueErrorMethod_2; PyObject *__pyx_n_s_ConversionWithValueErrorMethod_3; PyObject *__pyx_n_s_ConversionWithValueErrorMethod_d; PyObject *__pyx_n_s_Converter; PyObject *__pyx_n_s_DefaultField; PyObject *__pyx_n_s_DefaultField___reduce_cython; PyObject *__pyx_n_s_DefaultField___setstate_cython; PyObject *__pyx_n_s_DeserializationMethod; PyObject *__pyx_n_s_DeserializationMethod___reduce_c; PyObject *__pyx_n_s_DeserializationMethod___setstate; PyObject *__pyx_n_s_Dict; PyObject *__pyx_n_s_Discriminated; PyObject *__pyx_n_s_Discriminated___reduce_cython; PyObject *__pyx_n_s_Discriminated___setstate_cython; PyObject *__pyx_n_s_DiscriminatorMethod; PyObject *__pyx_n_s_DiscriminatorMethod___reduce_cyt; PyObject *__pyx_n_s_DiscriminatorMethod___setstate_c; PyObject *__pyx_n_s_DiscriminatorMethod_deserialize; PyObject *__pyx_n_s_ErrorKey; PyObject *__pyx_n_s_ErrorMsg; PyObject *__pyx_n_s_ExclusiveMaximumConstraint; PyObject *__pyx_n_s_ExclusiveMaximumConstraint___red; PyObject *__pyx_n_s_ExclusiveMaximumConstraint___set; PyObject *__pyx_n_s_ExclusiveMaximumConstraint_valid; PyObject *__pyx_n_s_ExclusiveMinimumConstraint; PyObject *__pyx_n_s_ExclusiveMinimumConstraint___red; PyObject *__pyx_n_s_ExclusiveMinimumConstraint___set; PyObject *__pyx_n_s_ExclusiveMinimumConstraint_valid; PyObject *__pyx_n_s_FactoryField; PyObject *__pyx_n_s_FactoryField___reduce_cython; PyObject *__pyx_n_s_FactoryField___setstate_cython; PyObject *__pyx_n_s_Field; PyObject *__pyx_n_s_Field___reduce_cython; PyObject *__pyx_n_s_Field___setstate_cython; PyObject *__pyx_n_s_FieldsConstructor; PyObject *__pyx_n_s_FieldsConstructor___reduce_cytho; PyObject *__pyx_n_s_FieldsConstructor___setstate_cyt; PyObject *__pyx_n_s_FieldsConstructor_construct; PyObject *__pyx_n_s_FlattenedField; PyObject *__pyx_n_s_FlattenedField___reduce_cython; PyObject *__pyx_n_s_FlattenedField___setstate_cython; PyObject *__pyx_n_s_FloatMethod; PyObject *__pyx_n_s_FloatMethod___reduce_cython; PyObject *__pyx_n_s_FloatMethod___setstate_cython; PyObject *__pyx_n_s_FloatMethod_deserialize; PyObject *__pyx_n_s_FrozenSetMethod; PyObject *__pyx_n_s_FrozenSetMethod___reduce_cython; PyObject *__pyx_n_s_FrozenSetMethod___setstate_cytho; PyObject *__pyx_n_s_FrozenSetMethod_deserialize; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8; PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9; PyObject *__pyx_n_s_IndexError; PyObject *__pyx_n_s_IntMethod; PyObject *__pyx_n_s_IntMethod___reduce_cython; PyObject *__pyx_n_s_IntMethod___setstate_cython; PyObject *__pyx_n_s_IntMethod_deserialize; PyObject *__pyx_n_s_KeyError; PyObject *__pyx_n_s_Lazy; PyObject *__pyx_n_s_List; PyObject *__pyx_n_s_ListCheckOnlyMethod; PyObject *__pyx_n_s_ListCheckOnlyMethod___reduce_cyt; PyObject *__pyx_n_s_ListCheckOnlyMethod___setstate_c; PyObject *__pyx_n_s_ListCheckOnlyMethod_deserialize; PyObject *__pyx_n_s_ListMethod; PyObject *__pyx_n_s_ListMethod___reduce_cython; PyObject *__pyx_n_s_ListMethod___setstate_cython; PyObject *__pyx_n_s_ListMethod_deserialize; PyObject *__pyx_n_s_LiteralMethod; PyObject *__pyx_n_s_LiteralMethod___reduce_cython; PyObject *__pyx_n_s_LiteralMethod___setstate_cython; PyObject *__pyx_n_s_LiteralMethod_deserialize; PyObject *__pyx_n_s_Mapping; PyObject *__pyx_n_s_MappingCheckOnly; PyObject *__pyx_n_s_MappingCheckOnly___reduce_cython; PyObject *__pyx_n_s_MappingCheckOnly___setstate_cyth; PyObject *__pyx_n_s_MappingCheckOnly_deserialize; PyObject *__pyx_n_s_MappingMethod; PyObject *__pyx_n_s_MappingMethod___reduce_cython; PyObject *__pyx_n_s_MappingMethod___setstate_cython; PyObject *__pyx_n_s_MappingMethod_deserialize; PyObject *__pyx_n_s_MaxItemsConstraint; PyObject *__pyx_n_s_MaxItemsConstraint___reduce_cyth; PyObject *__pyx_n_s_MaxItemsConstraint___setstate_cy; PyObject *__pyx_n_s_MaxItemsConstraint_validate; PyObject *__pyx_n_s_MaxLengthConstraint; PyObject *__pyx_n_s_MaxLengthConstraint___reduce_cyt; PyObject *__pyx_n_s_MaxLengthConstraint___setstate_c; PyObject *__pyx_n_s_MaxLengthConstraint_validate; PyObject *__pyx_n_s_MaxPropertiesConstraint; PyObject *__pyx_n_s_MaxPropertiesConstraint___reduce; PyObject *__pyx_n_s_MaxPropertiesConstraint___setsta; PyObject *__pyx_n_s_MaxPropertiesConstraint_validate; PyObject *__pyx_n_s_MaximumConstraint; PyObject *__pyx_n_s_MaximumConstraint___reduce_cytho; PyObject *__pyx_n_s_MaximumConstraint___setstate_cyt; PyObject *__pyx_n_s_MaximumConstraint_validate; PyObject *__pyx_n_s_MinItemsConstraint; PyObject *__pyx_n_s_MinItemsConstraint___reduce_cyth; PyObject *__pyx_n_s_MinItemsConstraint___setstate_cy; PyObject *__pyx_n_s_MinItemsConstraint_validate; PyObject *__pyx_n_s_MinLengthConstraint; PyObject *__pyx_n_s_MinLengthConstraint___reduce_cyt; PyObject *__pyx_n_s_MinLengthConstraint___setstate_c; PyObject *__pyx_n_s_MinLengthConstraint_validate; PyObject *__pyx_n_s_MinPropertiesConstraint; PyObject *__pyx_n_s_MinPropertiesConstraint___reduce; PyObject *__pyx_n_s_MinPropertiesConstraint___setsta; PyObject *__pyx_n_s_MinPropertiesConstraint_validate; PyObject *__pyx_n_s_MinimumConstraint; PyObject *__pyx_n_s_MinimumConstraint___reduce_cytho; PyObject *__pyx_n_s_MinimumConstraint___setstate_cyt; PyObject *__pyx_n_s_MinimumConstraint_validate; PyObject *__pyx_n_s_MultipleOfConstraint; PyObject *__pyx_n_s_MultipleOfConstraint___reduce_cy; PyObject *__pyx_n_s_MultipleOfConstraint___setstate; PyObject *__pyx_n_s_MultipleOfConstraint_validate; PyObject *__pyx_n_s_NoConstructor; PyObject *__pyx_n_s_NoConstructor___reduce_cython; PyObject *__pyx_n_s_NoConstructor___setstate_cython; PyObject *__pyx_n_s_NoConstructor_construct; PyObject *__pyx_n_s_NoneMethod; PyObject *__pyx_n_s_NoneMethod___reduce_cython; PyObject *__pyx_n_s_NoneMethod___setstate_cython; PyObject *__pyx_n_s_NoneMethod_deserialize; PyObject *__pyx_n_s_NoneType; PyObject *__pyx_n_s_NotImplementedError; PyObject *__pyx_n_s_ObjectMethod; PyObject *__pyx_n_s_ObjectMethod___reduce_cython; PyObject *__pyx_n_s_ObjectMethod___setstate_cython; PyObject *__pyx_n_s_ObjectMethod_deserialize; PyObject *__pyx_n_s_Optional; PyObject *__pyx_n_s_OptionalMethod; PyObject *__pyx_n_s_OptionalMethod___reduce_cython; PyObject *__pyx_n_s_OptionalMethod___setstate_cython; PyObject *__pyx_n_s_OptionalMethod_deserialize; PyObject *__pyx_n_s_Pattern; PyObject *__pyx_n_s_PatternConstraint; PyObject *__pyx_n_s_PatternConstraint___reduce_cytho; PyObject *__pyx_n_s_PatternConstraint___setstate_cyt; PyObject *__pyx_n_s_PatternConstraint_validate; PyObject *__pyx_n_s_PatternField; PyObject *__pyx_n_s_PatternField___reduce_cython; PyObject *__pyx_n_s_PatternField___setstate_cython; PyObject *__pyx_n_s_PickleError; PyObject *__pyx_n_s_RawConstructor; PyObject *__pyx_n_s_RawConstructorCopy; PyObject *__pyx_n_s_RawConstructorCopy___reduce_cyth; PyObject *__pyx_n_s_RawConstructorCopy___setstate_cy; PyObject *__pyx_n_s_RawConstructorCopy_construct; PyObject *__pyx_n_s_RawConstructor___reduce_cython; PyObject *__pyx_n_s_RawConstructor___setstate_cython; PyObject *__pyx_n_s_RawConstructor_construct; PyObject *__pyx_n_s_RecMethod; PyObject *__pyx_n_s_RecMethod___reduce_cython; PyObject *__pyx_n_s_RecMethod___setstate_cython; PyObject *__pyx_n_s_RecMethod_deserialize; PyObject *__pyx_n_s_Sequence; PyObject *__pyx_n_s_SetMethod; PyObject *__pyx_n_s_SetMethod___reduce_cython; PyObject *__pyx_n_s_SetMethod___setstate_cython; PyObject *__pyx_n_s_SetMethod_deserialize; PyObject *__pyx_n_s_SimpleObjectMethod; PyObject *__pyx_n_s_SimpleObjectMethod___reduce_cyth; PyObject *__pyx_n_s_SimpleObjectMethod___setstate_cy; PyObject *__pyx_n_s_SimpleObjectMethod_deserialize; PyObject *__pyx_n_s_StrMethod; PyObject *__pyx_n_s_StrMethod___reduce_cython; PyObject *__pyx_n_s_StrMethod___setstate_cython; PyObject *__pyx_n_s_StrMethod_deserialize; PyObject *__pyx_n_s_SubprimitiveMethod; PyObject *__pyx_n_s_SubprimitiveMethod___reduce_cyth; PyObject *__pyx_n_s_SubprimitiveMethod___setstate_cy; PyObject *__pyx_n_s_SubprimitiveMethod_deserialize; PyObject *__pyx_n_s_Tuple; PyObject *__pyx_n_s_TupleMethod; PyObject *__pyx_n_s_TupleMethod___reduce_cython; PyObject *__pyx_n_s_TupleMethod___setstate_cython; PyObject *__pyx_n_s_TupleMethod_deserialize; PyObject *__pyx_n_s_TypeCheckMethod; PyObject *__pyx_n_s_TypeCheckMethod___reduce_cython; PyObject *__pyx_n_s_TypeCheckMethod___setstate_cytho; PyObject *__pyx_n_s_TypeCheckMethod_deserialize; PyObject *__pyx_n_s_TypeError; PyObject *__pyx_n_s_Union; PyObject *__pyx_n_s_UnionByTypeMethod; PyObject *__pyx_n_s_UnionByTypeMethod___reduce_cytho; PyObject *__pyx_n_s_UnionByTypeMethod___setstate_cyt; PyObject *__pyx_n_s_UnionByTypeMethod_deserialize; PyObject *__pyx_n_s_UnionByTypeMethod_deserialize_lo; PyObject *__pyx_n_s_UnionMethod; PyObject *__pyx_n_s_UnionMethod___reduce_cython; PyObject *__pyx_n_s_UnionMethod___setstate_cython; PyObject *__pyx_n_s_UnionMethod_deserialize; PyObject *__pyx_n_s_UniqueItemsConstraint; PyObject *__pyx_n_s_UniqueItemsConstraint___reduce_c; PyObject *__pyx_n_s_UniqueItemsConstraint___setstate; PyObject *__pyx_n_s_UniqueItemsConstraint_validate; PyObject *__pyx_n_s_ValidationError; PyObject *__pyx_n_s_Validator; PyObject *__pyx_n_s_ValidatorMethod; PyObject *__pyx_n_s_ValidatorMethod___reduce_cython; PyObject *__pyx_n_s_ValidatorMethod___setstate_cytho; PyObject *__pyx_n_s_ValidatorMethod_deserialize; PyObject *__pyx_n_s_ValidatorMock; PyObject *__pyx_n_s_ValueError; PyObject *__pyx_n_s_VariadicTupleMethod; PyObject *__pyx_n_s_VariadicTupleMethod___reduce_cyt; PyObject *__pyx_n_s_VariadicTupleMethod___setstate_c; PyObject *__pyx_n_s_VariadicTupleMethod_deserialize; PyObject *__pyx_n_s__293; PyObject *__pyx_kp_u__3; PyObject *__pyx_n_s_additional_field; PyObject *__pyx_n_s_additional_properties; PyObject *__pyx_n_s_alias; PyObject *__pyx_n_s_aliaser; PyObject *__pyx_n_s_aliases; PyObject *__pyx_n_s_all_aliases; PyObject *__pyx_n_s_alt_methods; PyObject *__pyx_n_s_alternatives; PyObject *__pyx_n_s_apischema_aliases; PyObject *__pyx_n_s_apischema_conversions_utils; PyObject *__pyx_n_s_apischema_deserialization_coerci; PyObject *__pyx_n_s_apischema_deserialization_method; PyObject *__pyx_kp_s_apischema_deserialization_method_2; PyObject *__pyx_n_s_apischema_json_schema_types; PyObject *__pyx_n_s_apischema_types; PyObject *__pyx_n_s_apischema_utils; PyObject *__pyx_n_s_apischema_validation_errors; PyObject *__pyx_n_s_apischema_validation_mock; PyObject *__pyx_n_s_apischema_validation_validators; PyObject *__pyx_n_s_args; PyObject *__pyx_n_s_asyncio_coroutines; PyObject *__pyx_n_s_bad_type; PyObject *__pyx_n_s_children; PyObject *__pyx_n_s_children_errors; PyObject *__pyx_n_s_class_getitem; PyObject *__pyx_n_s_cline_in_traceback; PyObject *__pyx_n_s_close; PyObject *__pyx_n_s_cls; PyObject *__pyx_n_s_coercer; PyObject *__pyx_n_s_constraints; PyObject *__pyx_n_s_construct; PyObject *__pyx_n_s_constructor; PyObject *__pyx_n_s_converter; PyObject *__pyx_n_s_copy; PyObject *__pyx_n_s_data; PyObject *__pyx_n_s_dataclass; PyObject *__pyx_n_s_dataclasses; PyObject *__pyx_n_s_default_fields; PyObject *__pyx_n_s_default_value; PyObject *__pyx_n_s_dependencies; PyObject *__pyx_n_s_deserialize; PyObject *__pyx_n_s_dict; PyObject *__pyx_n_s_dict_2; PyObject *__pyx_n_s_difference_update; PyObject *__pyx_kp_u_disable; PyObject *__pyx_n_s_discriminator; PyObject *__pyx_n_s_elt_methods; PyObject *__pyx_kp_u_enable; PyObject *__pyx_n_s_enumerate; PyObject *__pyx_n_s_err; PyObject *__pyx_n_s_error; PyObject *__pyx_n_s_errors; PyObject *__pyx_n_s_exc_max; PyObject *__pyx_n_s_exc_min; PyObject *__pyx_n_s_expected; PyObject *__pyx_n_s_extend; PyObject *__pyx_n_s_extend_errors; PyObject *__pyx_n_s_factory; PyObject *__pyx_n_s_factory_fields; PyObject *__pyx_n_s_fall_back_on_default; PyObject *__pyx_n_s_fallback; PyObject *__pyx_n_s_field; PyObject *__pyx_n_s_fields; PyObject *__pyx_n_s_flattened_fields; PyObject *__pyx_n_s_format_error; PyObject *__pyx_kp_u_gc; PyObject *__pyx_n_s_genexpr; PyObject *__pyx_n_s_getstate; PyObject *__pyx_n_s_import; PyObject *__pyx_n_s_init_defaults; PyObject *__pyx_n_s_is_coroutine; PyObject *__pyx_n_s_isdisjoint; PyObject *__pyx_kp_u_isenabled; PyObject *__pyx_n_s_items; PyObject *__pyx_n_s_key; PyObject *__pyx_n_s_key_method; PyObject *__pyx_n_s_keys; PyObject *__pyx_n_s_lazy; PyObject *__pyx_n_s_main; PyObject *__pyx_n_s_map; PyObject *__pyx_n_s_mapping; PyObject *__pyx_n_s_match; PyObject *__pyx_n_s_max_items; PyObject *__pyx_n_s_max_len; PyObject *__pyx_n_s_max_len_error; PyObject *__pyx_n_s_max_properties; PyObject *__pyx_n_s_maximum; PyObject *__pyx_n_s_merge_errors; PyObject *__pyx_n_s_messages; PyObject *__pyx_n_s_method; PyObject *__pyx_n_s_method_by_cls; PyObject *__pyx_n_s_min_items; PyObject *__pyx_n_s_min_len; PyObject *__pyx_n_s_min_len_error; PyObject *__pyx_n_s_min_properties; PyObject *__pyx_n_s_minimum; PyObject *__pyx_n_s_missing; PyObject *__pyx_n_s_mult_of; PyObject *__pyx_n_s_name; PyObject *__pyx_n_s_name_2; PyObject *__pyx_n_s_nb_fields; PyObject *__pyx_n_s_new; PyObject *__pyx_n_s_object; PyObject *__pyx_n_s_pattern; PyObject *__pyx_n_s_pattern_fields; PyObject *__pyx_n_s_pickle; PyObject *__pyx_n_s_post_init_modified; PyObject *__pyx_n_s_pyx_PickleError; PyObject *__pyx_n_s_pyx_checksum; PyObject *__pyx_n_s_pyx_result; PyObject *__pyx_n_s_pyx_state; PyObject *__pyx_n_s_pyx_type; PyObject *__pyx_n_s_pyx_unpickle_AdditionalField; PyObject *__pyx_n_s_pyx_unpickle_AnyMethod; PyObject *__pyx_n_s_pyx_unpickle_BoolMethod; PyObject *__pyx_n_s_pyx_unpickle_CoercerMethod; PyObject *__pyx_n_s_pyx_unpickle_ConstrainedFloatM; PyObject *__pyx_n_s_pyx_unpickle_ConstrainedIntMet; PyObject *__pyx_n_s_pyx_unpickle_ConstrainedStrMet; PyObject *__pyx_n_s_pyx_unpickle_Constraint; PyObject *__pyx_n_s_pyx_unpickle_Constructor; PyObject *__pyx_n_s_pyx_unpickle_ConversionAlterna; PyObject *__pyx_n_s_pyx_unpickle_ConversionMethod; PyObject *__pyx_n_s_pyx_unpickle_ConversionUnionMe; PyObject *__pyx_n_s_pyx_unpickle_ConversionWithVal; PyObject *__pyx_n_s_pyx_unpickle_DefaultField; PyObject *__pyx_n_s_pyx_unpickle_DeserializationMe; PyObject *__pyx_n_s_pyx_unpickle_Discriminated; PyObject *__pyx_n_s_pyx_unpickle_DiscriminatorMeth; PyObject *__pyx_n_s_pyx_unpickle_ExclusiveMaximumC; PyObject *__pyx_n_s_pyx_unpickle_ExclusiveMinimumC; PyObject *__pyx_n_s_pyx_unpickle_FactoryField; PyObject *__pyx_n_s_pyx_unpickle_Field; PyObject *__pyx_n_s_pyx_unpickle_FieldsConstructor; PyObject *__pyx_n_s_pyx_unpickle_FlattenedField; PyObject *__pyx_n_s_pyx_unpickle_FloatMethod; PyObject *__pyx_n_s_pyx_unpickle_FrozenSetMethod; PyObject *__pyx_n_s_pyx_unpickle_IntMethod; PyObject *__pyx_n_s_pyx_unpickle_ListCheckOnlyMeth; PyObject *__pyx_n_s_pyx_unpickle_ListMethod; PyObject *__pyx_n_s_pyx_unpickle_LiteralMethod; PyObject *__pyx_n_s_pyx_unpickle_MappingCheckOnly; PyObject *__pyx_n_s_pyx_unpickle_MappingMethod; PyObject *__pyx_n_s_pyx_unpickle_MaxItemsConstrain; PyObject *__pyx_n_s_pyx_unpickle_MaxLengthConstrai; PyObject *__pyx_n_s_pyx_unpickle_MaxPropertiesCons; PyObject *__pyx_n_s_pyx_unpickle_MaximumConstraint; PyObject *__pyx_n_s_pyx_unpickle_MinItemsConstrain; PyObject *__pyx_n_s_pyx_unpickle_MinLengthConstrai; PyObject *__pyx_n_s_pyx_unpickle_MinPropertiesCons; PyObject *__pyx_n_s_pyx_unpickle_MinimumConstraint; PyObject *__pyx_n_s_pyx_unpickle_MultipleOfConstra; PyObject *__pyx_n_s_pyx_unpickle_NoConstructor; PyObject *__pyx_n_s_pyx_unpickle_NoneMethod; PyObject *__pyx_n_s_pyx_unpickle_ObjectMethod; PyObject *__pyx_n_s_pyx_unpickle_OptionalMethod; PyObject *__pyx_n_s_pyx_unpickle_PatternConstraint; PyObject *__pyx_n_s_pyx_unpickle_PatternField; PyObject *__pyx_n_s_pyx_unpickle_RawConstructor; PyObject *__pyx_n_s_pyx_unpickle_RawConstructorCop; PyObject *__pyx_n_s_pyx_unpickle_RecMethod; PyObject *__pyx_n_s_pyx_unpickle_SetMethod; PyObject *__pyx_n_s_pyx_unpickle_SimpleObjectMetho; PyObject *__pyx_n_s_pyx_unpickle_StrMethod; PyObject *__pyx_n_s_pyx_unpickle_SubprimitiveMetho; PyObject *__pyx_n_s_pyx_unpickle_TupleMethod; PyObject *__pyx_n_s_pyx_unpickle_TypeCheckMethod; PyObject *__pyx_n_s_pyx_unpickle_UnionByTypeMethod; PyObject *__pyx_n_s_pyx_unpickle_UnionMethod; PyObject *__pyx_n_s_pyx_unpickle_UniqueItemsConstr; PyObject *__pyx_n_s_pyx_unpickle_ValidatorMethod; PyObject *__pyx_n_s_pyx_unpickle_VariadicTupleMeth; PyObject *__pyx_n_s_pyx_vtable; PyObject *__pyx_n_s_range; PyObject *__pyx_n_s_reduce; PyObject *__pyx_n_s_reduce_cython; PyObject *__pyx_n_s_reduce_ex; PyObject *__pyx_n_s_required; PyObject *__pyx_n_s_required_by; PyObject *__pyx_kp_u_required_by_2; PyObject *__pyx_n_s_self; PyObject *__pyx_n_s_send; PyObject *__pyx_n_s_set_child_error; PyObject *__pyx_n_s_setstate; PyObject *__pyx_n_s_setstate_cython; PyObject *__pyx_n_s_state; PyObject *__pyx_kp_s_stringsource; PyObject *__pyx_n_s_test; PyObject *__pyx_n_s_throw; PyObject *__pyx_n_s_to_hashable; PyObject *__pyx_n_s_typed_dict; PyObject *__pyx_n_s_types; PyObject *__pyx_n_s_typing; PyObject *__pyx_n_s_unexpected; PyObject *__pyx_n_s_unique; PyObject *__pyx_n_s_update; PyObject *__pyx_n_s_update_children_errors; PyObject *__pyx_n_s_use_setstate; PyObject *__pyx_n_s_validate; PyObject *__pyx_n_s_validate_constraints; PyObject *__pyx_n_s_validators; PyObject *__pyx_n_s_value_error; PyObject *__pyx_n_s_value_map; PyObject *__pyx_n_s_value_method; PyObject *__pyx_int_0; PyObject *__pyx_int_1; PyObject *__pyx_int_1061315; PyObject *__pyx_int_4393368; PyObject *__pyx_int_5409203; PyObject *__pyx_int_6074692; PyObject *__pyx_int_10534196; PyObject *__pyx_int_16592120; PyObject *__pyx_int_16874699; PyObject *__pyx_int_17381039; PyObject *__pyx_int_18412159; PyObject *__pyx_int_21831954; PyObject *__pyx_int_21894935; PyObject *__pyx_int_22404078; PyObject *__pyx_int_25683109; PyObject *__pyx_int_29064226; PyObject *__pyx_int_30346496; PyObject *__pyx_int_31099836; PyObject *__pyx_int_31777368; PyObject *__pyx_int_34399964; PyObject *__pyx_int_34456425; PyObject *__pyx_int_34564873; PyObject *__pyx_int_39566027; PyObject *__pyx_int_39646481; PyObject *__pyx_int_43145208; PyObject *__pyx_int_47519927; PyObject *__pyx_int_49712037; PyObject *__pyx_int_50166306; PyObject *__pyx_int_50548289; PyObject *__pyx_int_56952783; PyObject *__pyx_int_59113187; PyObject *__pyx_int_59973580; PyObject *__pyx_int_65652202; PyObject *__pyx_int_67187364; PyObject *__pyx_int_68348896; PyObject *__pyx_int_69439193; PyObject *__pyx_int_71361338; PyObject *__pyx_int_71989837; PyObject *__pyx_int_73886977; PyObject *__pyx_int_76745901; PyObject *__pyx_int_80339441; PyObject *__pyx_int_86498115; PyObject *__pyx_int_87055098; PyObject *__pyx_int_87926185; PyObject *__pyx_int_89106541; PyObject *__pyx_int_89247923; PyObject *__pyx_int_89365892; PyObject *__pyx_int_90778316; PyObject *__pyx_int_92337353; PyObject *__pyx_int_99602557; PyObject *__pyx_int_99761709; PyObject *__pyx_int_100986846; PyObject *__pyx_int_102462867; PyObject *__pyx_int_105653666; PyObject *__pyx_int_107165658; PyObject *__pyx_int_108544010; PyObject *__pyx_int_108979822; PyObject *__pyx_int_109504843; PyObject *__pyx_int_110427570; PyObject *__pyx_int_113390162; PyObject *__pyx_int_117447894; PyObject *__pyx_int_119135242; PyObject *__pyx_int_119633667; PyObject *__pyx_int_119948357; PyObject *__pyx_int_125047544; PyObject *__pyx_int_128527296; PyObject *__pyx_int_129659791; PyObject *__pyx_int_129754538; PyObject *__pyx_int_133418666; PyObject *__pyx_int_133974869; PyObject *__pyx_int_136250523; PyObject *__pyx_int_137271932; PyObject *__pyx_int_138366295; PyObject *__pyx_int_138368889; PyObject *__pyx_int_139355673; PyObject *__pyx_int_141271449; PyObject *__pyx_int_142562297; PyObject *__pyx_int_148344969; PyObject *__pyx_int_150756734; PyObject *__pyx_int_151978152; PyObject *__pyx_int_153188860; PyObject *__pyx_int_154338282; PyObject *__pyx_int_154416804; PyObject *__pyx_int_155387426; PyObject *__pyx_int_157010104; PyObject *__pyx_int_157442187; PyObject *__pyx_int_159314353; PyObject *__pyx_int_169907618; PyObject *__pyx_int_170060645; PyObject *__pyx_int_172473893; PyObject *__pyx_int_174143295; PyObject *__pyx_int_179286492; PyObject *__pyx_int_180344665; PyObject *__pyx_int_185544032; PyObject *__pyx_int_188225458; PyObject *__pyx_int_188265286; PyObject *__pyx_int_190713963; PyObject *__pyx_int_191997942; PyObject *__pyx_int_199009293; PyObject *__pyx_int_200261128; PyObject *__pyx_int_205695869; PyObject *__pyx_int_206753745; PyObject *__pyx_int_207700205; PyObject *__pyx_int_210124308; PyObject *__pyx_int_213378848; PyObject *__pyx_int_217540299; PyObject *__pyx_int_218312211; PyObject *__pyx_int_218785721; PyObject *__pyx_int_219789001; PyObject *__pyx_int_226265099; PyObject *__pyx_int_228146014; PyObject *__pyx_int_228566110; PyObject *__pyx_int_230529602; PyObject *__pyx_int_232155009; PyObject *__pyx_int_232429629; PyObject *__pyx_int_238095282; PyObject *__pyx_int_238659478; PyObject *__pyx_int_240488784; PyObject *__pyx_int_241521041; PyObject *__pyx_int_242672649; PyObject *__pyx_int_247471373; PyObject *__pyx_int_249936757; PyObject *__pyx_int_251535444; PyObject *__pyx_int_251556977; PyObject *__pyx_int_252475336; PyObject *__pyx_int_253779918; PyObject *__pyx_int_258009577; PyObject *__pyx_int_259347467; PyObject *__pyx_int_261406006; PyObject *__pyx_int_262512166; PyObject *__pyx_int_265699309; PyObject *__pyx_int_266123853; PyObject *__pyx_int_266904154; PyObject *__pyx_int_267302923; PyObject *__pyx_tuple__2; PyObject *__pyx_tuple__4; PyObject *__pyx_tuple__5; PyObject *__pyx_tuple__6; PyObject *__pyx_tuple__7; PyObject *__pyx_tuple__8; PyObject *__pyx_tuple__9; PyObject *__pyx_tuple__10; PyObject *__pyx_tuple__11; PyObject *__pyx_tuple__12; PyObject *__pyx_tuple__13; PyObject *__pyx_tuple__14; PyObject *__pyx_tuple__15; PyObject *__pyx_tuple__16; PyObject *__pyx_tuple__17; PyObject *__pyx_tuple__18; PyObject *__pyx_tuple__19; PyObject *__pyx_tuple__20; PyObject *__pyx_tuple__21; PyObject *__pyx_tuple__22; PyObject *__pyx_tuple__23; PyObject *__pyx_tuple__24; PyObject *__pyx_tuple__25; PyObject *__pyx_tuple__26; PyObject *__pyx_tuple__27; PyObject *__pyx_tuple__28; PyObject *__pyx_tuple__29; PyObject *__pyx_tuple__30; PyObject *__pyx_tuple__31; PyObject *__pyx_tuple__32; PyObject *__pyx_tuple__33; PyObject *__pyx_tuple__34; PyObject *__pyx_tuple__35; PyObject *__pyx_tuple__36; PyObject *__pyx_tuple__37; PyObject *__pyx_tuple__38; PyObject *__pyx_tuple__39; PyObject *__pyx_tuple__40; PyObject *__pyx_tuple__41; PyObject *__pyx_tuple__42; PyObject *__pyx_tuple__43; PyObject *__pyx_tuple__44; PyObject *__pyx_tuple__45; PyObject *__pyx_tuple__46; PyObject *__pyx_tuple__47; PyObject *__pyx_tuple__49; PyObject *__pyx_tuple__51; PyObject *__pyx_tuple__142; PyObject *__pyx_tuple__220; PyObject *__pyx_tuple__222; PyObject *__pyx_tuple__224; PyObject *__pyx_tuple__226; PyObject *__pyx_tuple__228; PyObject *__pyx_tuple__230; PyObject *__pyx_tuple__232; PyObject *__pyx_codeobj__48; PyObject *__pyx_codeobj__50; PyObject *__pyx_codeobj__52; PyObject *__pyx_codeobj__53; PyObject *__pyx_codeobj__54; PyObject *__pyx_codeobj__55; PyObject *__pyx_codeobj__56; PyObject *__pyx_codeobj__57; PyObject *__pyx_codeobj__58; PyObject *__pyx_codeobj__59; PyObject *__pyx_codeobj__60; PyObject *__pyx_codeobj__61; PyObject *__pyx_codeobj__62; PyObject *__pyx_codeobj__63; PyObject *__pyx_codeobj__64; PyObject *__pyx_codeobj__65; PyObject *__pyx_codeobj__66; PyObject *__pyx_codeobj__67; PyObject *__pyx_codeobj__68; PyObject *__pyx_codeobj__69; PyObject *__pyx_codeobj__70; PyObject *__pyx_codeobj__71; PyObject *__pyx_codeobj__72; PyObject *__pyx_codeobj__73; PyObject *__pyx_codeobj__74; PyObject *__pyx_codeobj__75; PyObject *__pyx_codeobj__76; PyObject *__pyx_codeobj__77; PyObject *__pyx_codeobj__78; PyObject *__pyx_codeobj__79; PyObject *__pyx_codeobj__80; PyObject *__pyx_codeobj__81; PyObject *__pyx_codeobj__82; PyObject *__pyx_codeobj__83; PyObject *__pyx_codeobj__84; PyObject *__pyx_codeobj__85; PyObject *__pyx_codeobj__86; PyObject *__pyx_codeobj__87; PyObject *__pyx_codeobj__88; PyObject *__pyx_codeobj__89; PyObject *__pyx_codeobj__90; PyObject *__pyx_codeobj__91; PyObject *__pyx_codeobj__92; PyObject *__pyx_codeobj__93; PyObject *__pyx_codeobj__94; PyObject *__pyx_codeobj__95; PyObject *__pyx_codeobj__96; PyObject *__pyx_codeobj__97; PyObject *__pyx_codeobj__98; PyObject *__pyx_codeobj__99; PyObject *__pyx_codeobj__100; PyObject *__pyx_codeobj__101; PyObject *__pyx_codeobj__102; PyObject *__pyx_codeobj__103; PyObject *__pyx_codeobj__104; PyObject *__pyx_codeobj__105; PyObject *__pyx_codeobj__106; PyObject *__pyx_codeobj__107; PyObject *__pyx_codeobj__108; PyObject *__pyx_codeobj__109; PyObject *__pyx_codeobj__110; PyObject *__pyx_codeobj__111; PyObject *__pyx_codeobj__112; PyObject *__pyx_codeobj__113; PyObject *__pyx_codeobj__114; PyObject *__pyx_codeobj__115; PyObject *__pyx_codeobj__116; PyObject *__pyx_codeobj__117; PyObject *__pyx_codeobj__118; PyObject *__pyx_codeobj__119; PyObject *__pyx_codeobj__120; PyObject *__pyx_codeobj__121; PyObject *__pyx_codeobj__122; PyObject *__pyx_codeobj__123; PyObject *__pyx_codeobj__124; PyObject *__pyx_codeobj__125; PyObject *__pyx_codeobj__126; PyObject *__pyx_codeobj__127; PyObject *__pyx_codeobj__128; PyObject *__pyx_codeobj__129; PyObject *__pyx_codeobj__130; PyObject *__pyx_codeobj__131; PyObject *__pyx_codeobj__132; PyObject *__pyx_codeobj__133; PyObject *__pyx_codeobj__134; PyObject *__pyx_codeobj__135; PyObject *__pyx_codeobj__136; PyObject *__pyx_codeobj__137; PyObject *__pyx_codeobj__138; PyObject *__pyx_codeobj__139; PyObject *__pyx_codeobj__140; PyObject *__pyx_codeobj__141; PyObject *__pyx_codeobj__143; PyObject *__pyx_codeobj__144; PyObject *__pyx_codeobj__145; PyObject *__pyx_codeobj__146; PyObject *__pyx_codeobj__147; PyObject *__pyx_codeobj__148; PyObject *__pyx_codeobj__149; PyObject *__pyx_codeobj__150; PyObject *__pyx_codeobj__151; PyObject *__pyx_codeobj__152; PyObject *__pyx_codeobj__153; PyObject *__pyx_codeobj__154; PyObject *__pyx_codeobj__155; PyObject *__pyx_codeobj__156; PyObject *__pyx_codeobj__157; PyObject *__pyx_codeobj__158; PyObject *__pyx_codeobj__159; PyObject *__pyx_codeobj__160; PyObject *__pyx_codeobj__161; PyObject *__pyx_codeobj__162; PyObject *__pyx_codeobj__163; PyObject *__pyx_codeobj__164; PyObject *__pyx_codeobj__165; PyObject *__pyx_codeobj__166; PyObject *__pyx_codeobj__167; PyObject *__pyx_codeobj__168; PyObject *__pyx_codeobj__169; PyObject *__pyx_codeobj__170; PyObject *__pyx_codeobj__171; PyObject *__pyx_codeobj__172; PyObject *__pyx_codeobj__173; PyObject *__pyx_codeobj__174; PyObject *__pyx_codeobj__175; PyObject *__pyx_codeobj__176; PyObject *__pyx_codeobj__177; PyObject *__pyx_codeobj__178; PyObject *__pyx_codeobj__179; PyObject *__pyx_codeobj__180; PyObject *__pyx_codeobj__181; PyObject *__pyx_codeobj__182; PyObject *__pyx_codeobj__183; PyObject *__pyx_codeobj__184; PyObject *__pyx_codeobj__185; PyObject *__pyx_codeobj__186; PyObject *__pyx_codeobj__187; PyObject *__pyx_codeobj__188; PyObject *__pyx_codeobj__189; PyObject *__pyx_codeobj__190; PyObject *__pyx_codeobj__191; PyObject *__pyx_codeobj__192; PyObject *__pyx_codeobj__193; PyObject *__pyx_codeobj__194; PyObject *__pyx_codeobj__195; PyObject *__pyx_codeobj__196; PyObject *__pyx_codeobj__197; PyObject *__pyx_codeobj__198; PyObject *__pyx_codeobj__199; PyObject *__pyx_codeobj__200; PyObject *__pyx_codeobj__201; PyObject *__pyx_codeobj__202; PyObject *__pyx_codeobj__203; PyObject *__pyx_codeobj__204; PyObject *__pyx_codeobj__205; PyObject *__pyx_codeobj__206; PyObject *__pyx_codeobj__207; PyObject *__pyx_codeobj__208; PyObject *__pyx_codeobj__209; PyObject *__pyx_codeobj__210; PyObject *__pyx_codeobj__211; PyObject *__pyx_codeobj__212; PyObject *__pyx_codeobj__213; PyObject *__pyx_codeobj__214; PyObject *__pyx_codeobj__215; PyObject *__pyx_codeobj__216; PyObject *__pyx_codeobj__217; PyObject *__pyx_codeobj__218; PyObject *__pyx_codeobj__219; PyObject *__pyx_codeobj__221; PyObject *__pyx_codeobj__223; PyObject *__pyx_codeobj__225; PyObject *__pyx_codeobj__227; PyObject *__pyx_codeobj__229; PyObject *__pyx_codeobj__231; PyObject *__pyx_codeobj__233; PyObject *__pyx_codeobj__234; PyObject *__pyx_codeobj__235; PyObject *__pyx_codeobj__236; PyObject *__pyx_codeobj__237; PyObject *__pyx_codeobj__238; PyObject *__pyx_codeobj__239; PyObject *__pyx_codeobj__240; PyObject *__pyx_codeobj__241; PyObject *__pyx_codeobj__242; PyObject *__pyx_codeobj__243; PyObject *__pyx_codeobj__244; PyObject *__pyx_codeobj__245; PyObject *__pyx_codeobj__246; PyObject *__pyx_codeobj__247; PyObject *__pyx_codeobj__248; PyObject *__pyx_codeobj__249; PyObject *__pyx_codeobj__250; PyObject *__pyx_codeobj__251; PyObject *__pyx_codeobj__252; PyObject *__pyx_codeobj__253; PyObject *__pyx_codeobj__254; PyObject *__pyx_codeobj__255; PyObject *__pyx_codeobj__256; PyObject *__pyx_codeobj__257; PyObject *__pyx_codeobj__258; PyObject *__pyx_codeobj__259; PyObject *__pyx_codeobj__260; PyObject *__pyx_codeobj__261; PyObject *__pyx_codeobj__262; PyObject *__pyx_codeobj__263; PyObject *__pyx_codeobj__264; PyObject *__pyx_codeobj__265; PyObject *__pyx_codeobj__266; PyObject *__pyx_codeobj__267; PyObject *__pyx_codeobj__268; PyObject *__pyx_codeobj__269; PyObject *__pyx_codeobj__270; PyObject *__pyx_codeobj__271; PyObject *__pyx_codeobj__272; PyObject *__pyx_codeobj__273; PyObject *__pyx_codeobj__274; PyObject *__pyx_codeobj__275; PyObject *__pyx_codeobj__276; PyObject *__pyx_codeobj__277; PyObject *__pyx_codeobj__278; PyObject *__pyx_codeobj__279; PyObject *__pyx_codeobj__280; PyObject *__pyx_codeobj__281; PyObject *__pyx_codeobj__282; PyObject *__pyx_codeobj__283; PyObject *__pyx_codeobj__284; PyObject *__pyx_codeobj__285; PyObject *__pyx_codeobj__286; PyObject *__pyx_codeobj__287; PyObject *__pyx_codeobj__288; PyObject *__pyx_codeobj__289; PyObject *__pyx_codeobj__290; PyObject *__pyx_codeobj__291; PyObject *__pyx_codeobj__292; } __pyx_mstate; #if CYTHON_USE_MODULE_STATE #ifdef __cplusplus namespace { extern struct PyModuleDef __pyx_moduledef; } /* anonymous namespace */ #else static struct PyModuleDef __pyx_moduledef; #endif #define __pyx_mstate(o) ((__pyx_mstate *)__Pyx_PyModule_GetState(o)) #define __pyx_mstate_global (__pyx_mstate(PyState_FindModule(&__pyx_moduledef))) #define __pyx_m (PyState_FindModule(&__pyx_moduledef)) #else static __pyx_mstate __pyx_mstate_global_static = #ifdef __cplusplus {}; #else {0}; #endif static __pyx_mstate *__pyx_mstate_global = &__pyx_mstate_global_static; #endif /* #### Code section: module_state_clear ### */ #if CYTHON_USE_MODULE_STATE static int __pyx_m_clear(PyObject *m) { __pyx_mstate *clear_module_state = __pyx_mstate(m); if (!clear_module_state) return 0; Py_CLEAR(clear_module_state->__pyx_d); Py_CLEAR(clear_module_state->__pyx_b); Py_CLEAR(clear_module_state->__pyx_cython_runtime); Py_CLEAR(clear_module_state->__pyx_empty_tuple); Py_CLEAR(clear_module_state->__pyx_empty_bytes); Py_CLEAR(clear_module_state->__pyx_empty_unicode); #ifdef __Pyx_CyFunction_USED Py_CLEAR(clear_module_state->__pyx_CyFunctionType); #endif #ifdef __Pyx_FusedFunction_USED Py_CLEAR(clear_module_state->__pyx_FusedFunctionType); #endif Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type); Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4bool_bool); Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_7complex_complex); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Constraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_Constraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_PatternConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_RecMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_RecMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_CoercerMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_AnyMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ListMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ListMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_SetMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_SetMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_LiteralMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_MappingMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Field); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_Field); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_FlattenedField); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_PatternField); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_PatternField); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_AdditionalField); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Constructor); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_Constructor); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_NoConstructor); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_RawConstructor); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_DefaultField); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_DefaultField); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FactoryField); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_FactoryField); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ObjectMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_NoneMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_IntMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_IntMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_FloatMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_StrMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_StrMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_BoolMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_TupleMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_OptionalMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_UnionMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Discriminated); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_Discriminated); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr); Py_CLEAR(clear_module_state->__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr); Py_CLEAR(clear_module_state->__pyx_kp_u_); Py_CLEAR(clear_module_state->__pyx_n_s_AbstractSet); Py_CLEAR(clear_module_state->__pyx_n_s_AdditionalField); Py_CLEAR(clear_module_state->__pyx_n_s_AdditionalField___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_AdditionalField___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_Aliaser); Py_CLEAR(clear_module_state->__pyx_n_s_Any); Py_CLEAR(clear_module_state->__pyx_n_s_AnyMethod); Py_CLEAR(clear_module_state->__pyx_n_s_AnyMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_AnyMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_AnyMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_AnyType); Py_CLEAR(clear_module_state->__pyx_n_s_AssertionError); Py_CLEAR(clear_module_state->__pyx_n_s_BoolMethod); Py_CLEAR(clear_module_state->__pyx_n_s_BoolMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_BoolMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_BoolMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Callable); Py_CLEAR(clear_module_state->__pyx_n_s_Coercer); Py_CLEAR(clear_module_state->__pyx_n_s_CoercerMethod); Py_CLEAR(clear_module_state->__pyx_n_s_CoercerMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_CoercerMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_CoercerMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedFloatMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedFloatMethod___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedFloatMethod___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedFloatMethod_deseriali); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedIntMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedIntMethod___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedIntMethod___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedIntMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedStrMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedStrMethod___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedStrMethod___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_ConstrainedStrMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Constraint); Py_CLEAR(clear_module_state->__pyx_n_s_Constraint___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_Constraint___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_Constructor); Py_CLEAR(clear_module_state->__pyx_n_s_Constructor___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_Constructor___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionAlternative); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionAlternative___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionAlternative___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionMethod___setstate_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionUnionMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionUnionMethod___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionUnionMethod___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionUnionMethod_deserializ); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionWithValueErrorMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionWithValueErrorMethod_2); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionWithValueErrorMethod_3); Py_CLEAR(clear_module_state->__pyx_n_s_ConversionWithValueErrorMethod_d); Py_CLEAR(clear_module_state->__pyx_n_s_Converter); Py_CLEAR(clear_module_state->__pyx_n_s_DefaultField); Py_CLEAR(clear_module_state->__pyx_n_s_DefaultField___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_DefaultField___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_DeserializationMethod); Py_CLEAR(clear_module_state->__pyx_n_s_DeserializationMethod___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_DeserializationMethod___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_Dict); Py_CLEAR(clear_module_state->__pyx_n_s_Discriminated); Py_CLEAR(clear_module_state->__pyx_n_s_Discriminated___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_Discriminated___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_DiscriminatorMethod); Py_CLEAR(clear_module_state->__pyx_n_s_DiscriminatorMethod___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_DiscriminatorMethod___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_DiscriminatorMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_ErrorKey); Py_CLEAR(clear_module_state->__pyx_n_s_ErrorMsg); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMaximumConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMaximumConstraint___red); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMaximumConstraint___set); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMaximumConstraint_valid); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMinimumConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMinimumConstraint___red); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMinimumConstraint___set); Py_CLEAR(clear_module_state->__pyx_n_s_ExclusiveMinimumConstraint_valid); Py_CLEAR(clear_module_state->__pyx_n_s_FactoryField); Py_CLEAR(clear_module_state->__pyx_n_s_FactoryField___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FactoryField___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_Field); Py_CLEAR(clear_module_state->__pyx_n_s_Field___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_Field___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FieldsConstructor); Py_CLEAR(clear_module_state->__pyx_n_s_FieldsConstructor___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_FieldsConstructor___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_FieldsConstructor_construct); Py_CLEAR(clear_module_state->__pyx_n_s_FlattenedField); Py_CLEAR(clear_module_state->__pyx_n_s_FlattenedField___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FlattenedField___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FloatMethod); Py_CLEAR(clear_module_state->__pyx_n_s_FloatMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FloatMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FloatMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_FrozenSetMethod); Py_CLEAR(clear_module_state->__pyx_n_s_FrozenSetMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_FrozenSetMethod___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_FrozenSetMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8); Py_CLEAR(clear_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9); Py_CLEAR(clear_module_state->__pyx_n_s_IndexError); Py_CLEAR(clear_module_state->__pyx_n_s_IntMethod); Py_CLEAR(clear_module_state->__pyx_n_s_IntMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_IntMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_IntMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_KeyError); Py_CLEAR(clear_module_state->__pyx_n_s_Lazy); Py_CLEAR(clear_module_state->__pyx_n_s_List); Py_CLEAR(clear_module_state->__pyx_n_s_ListCheckOnlyMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ListCheckOnlyMethod___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_ListCheckOnlyMethod___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_ListCheckOnlyMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_ListMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ListMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ListMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ListMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_LiteralMethod); Py_CLEAR(clear_module_state->__pyx_n_s_LiteralMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_LiteralMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_LiteralMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Mapping); Py_CLEAR(clear_module_state->__pyx_n_s_MappingCheckOnly); Py_CLEAR(clear_module_state->__pyx_n_s_MappingCheckOnly___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_MappingCheckOnly___setstate_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_MappingCheckOnly_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_MappingMethod); Py_CLEAR(clear_module_state->__pyx_n_s_MappingMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_MappingMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_MappingMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_MaxItemsConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MaxItemsConstraint___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_MaxItemsConstraint___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_MaxItemsConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MaxLengthConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MaxLengthConstraint___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_MaxLengthConstraint___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_MaxLengthConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MaxPropertiesConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MaxPropertiesConstraint___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_MaxPropertiesConstraint___setsta); Py_CLEAR(clear_module_state->__pyx_n_s_MaxPropertiesConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MaximumConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MaximumConstraint___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_MaximumConstraint___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_MaximumConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MinItemsConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MinItemsConstraint___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_MinItemsConstraint___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_MinItemsConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MinLengthConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MinLengthConstraint___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_MinLengthConstraint___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_MinLengthConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MinPropertiesConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MinPropertiesConstraint___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_MinPropertiesConstraint___setsta); Py_CLEAR(clear_module_state->__pyx_n_s_MinPropertiesConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MinimumConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MinimumConstraint___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_MinimumConstraint___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_MinimumConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_MultipleOfConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_MultipleOfConstraint___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_MultipleOfConstraint___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_MultipleOfConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_NoConstructor); Py_CLEAR(clear_module_state->__pyx_n_s_NoConstructor___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_NoConstructor___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_NoConstructor_construct); Py_CLEAR(clear_module_state->__pyx_n_s_NoneMethod); Py_CLEAR(clear_module_state->__pyx_n_s_NoneMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_NoneMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_NoneMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_NoneType); Py_CLEAR(clear_module_state->__pyx_n_s_NotImplementedError); Py_CLEAR(clear_module_state->__pyx_n_s_ObjectMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ObjectMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ObjectMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ObjectMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Optional); Py_CLEAR(clear_module_state->__pyx_n_s_OptionalMethod); Py_CLEAR(clear_module_state->__pyx_n_s_OptionalMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_OptionalMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_OptionalMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Pattern); Py_CLEAR(clear_module_state->__pyx_n_s_PatternConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_PatternConstraint___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_PatternConstraint___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_PatternConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_PatternField); Py_CLEAR(clear_module_state->__pyx_n_s_PatternField___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_PatternField___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_PickleError); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructor); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructorCopy); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructorCopy___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructorCopy___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructorCopy_construct); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructor___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructor___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_RawConstructor_construct); Py_CLEAR(clear_module_state->__pyx_n_s_RecMethod); Py_CLEAR(clear_module_state->__pyx_n_s_RecMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_RecMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_RecMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Sequence); Py_CLEAR(clear_module_state->__pyx_n_s_SetMethod); Py_CLEAR(clear_module_state->__pyx_n_s_SetMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_SetMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_SetMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_SimpleObjectMethod); Py_CLEAR(clear_module_state->__pyx_n_s_SimpleObjectMethod___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_SimpleObjectMethod___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_SimpleObjectMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_StrMethod); Py_CLEAR(clear_module_state->__pyx_n_s_StrMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_StrMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_StrMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_SubprimitiveMethod); Py_CLEAR(clear_module_state->__pyx_n_s_SubprimitiveMethod___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_SubprimitiveMethod___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_SubprimitiveMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_Tuple); Py_CLEAR(clear_module_state->__pyx_n_s_TupleMethod); Py_CLEAR(clear_module_state->__pyx_n_s_TupleMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_TupleMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_TupleMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_TypeCheckMethod); Py_CLEAR(clear_module_state->__pyx_n_s_TypeCheckMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_TypeCheckMethod___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_TypeCheckMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_TypeError); Py_CLEAR(clear_module_state->__pyx_n_s_Union); Py_CLEAR(clear_module_state->__pyx_n_s_UnionByTypeMethod); Py_CLEAR(clear_module_state->__pyx_n_s_UnionByTypeMethod___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_UnionByTypeMethod___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_UnionByTypeMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_UnionByTypeMethod_deserialize_lo); Py_CLEAR(clear_module_state->__pyx_n_s_UnionMethod); Py_CLEAR(clear_module_state->__pyx_n_s_UnionMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_UnionMethod___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_UnionMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_UniqueItemsConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_UniqueItemsConstraint___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_UniqueItemsConstraint___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_UniqueItemsConstraint_validate); Py_CLEAR(clear_module_state->__pyx_n_s_ValidationError); Py_CLEAR(clear_module_state->__pyx_n_s_Validator); Py_CLEAR(clear_module_state->__pyx_n_s_ValidatorMethod); Py_CLEAR(clear_module_state->__pyx_n_s_ValidatorMethod___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_ValidatorMethod___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_ValidatorMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_ValidatorMock); Py_CLEAR(clear_module_state->__pyx_n_s_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_VariadicTupleMethod); Py_CLEAR(clear_module_state->__pyx_n_s_VariadicTupleMethod___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_VariadicTupleMethod___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_VariadicTupleMethod_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s__293); Py_CLEAR(clear_module_state->__pyx_kp_u__3); Py_CLEAR(clear_module_state->__pyx_n_s_additional_field); Py_CLEAR(clear_module_state->__pyx_n_s_additional_properties); Py_CLEAR(clear_module_state->__pyx_n_s_alias); Py_CLEAR(clear_module_state->__pyx_n_s_aliaser); Py_CLEAR(clear_module_state->__pyx_n_s_aliases); Py_CLEAR(clear_module_state->__pyx_n_s_all_aliases); Py_CLEAR(clear_module_state->__pyx_n_s_alt_methods); Py_CLEAR(clear_module_state->__pyx_n_s_alternatives); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_aliases); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_conversions_utils); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_deserialization_coerci); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_deserialization_method); Py_CLEAR(clear_module_state->__pyx_kp_s_apischema_deserialization_method_2); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_json_schema_types); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_types); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_utils); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_validation_errors); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_validation_mock); Py_CLEAR(clear_module_state->__pyx_n_s_apischema_validation_validators); Py_CLEAR(clear_module_state->__pyx_n_s_args); Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines); Py_CLEAR(clear_module_state->__pyx_n_s_bad_type); Py_CLEAR(clear_module_state->__pyx_n_s_children); Py_CLEAR(clear_module_state->__pyx_n_s_children_errors); Py_CLEAR(clear_module_state->__pyx_n_s_class_getitem); Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback); Py_CLEAR(clear_module_state->__pyx_n_s_close); Py_CLEAR(clear_module_state->__pyx_n_s_cls); Py_CLEAR(clear_module_state->__pyx_n_s_coercer); Py_CLEAR(clear_module_state->__pyx_n_s_constraints); Py_CLEAR(clear_module_state->__pyx_n_s_construct); Py_CLEAR(clear_module_state->__pyx_n_s_constructor); Py_CLEAR(clear_module_state->__pyx_n_s_converter); Py_CLEAR(clear_module_state->__pyx_n_s_copy); Py_CLEAR(clear_module_state->__pyx_n_s_data); Py_CLEAR(clear_module_state->__pyx_n_s_dataclass); Py_CLEAR(clear_module_state->__pyx_n_s_dataclasses); Py_CLEAR(clear_module_state->__pyx_n_s_default_fields); Py_CLEAR(clear_module_state->__pyx_n_s_default_value); Py_CLEAR(clear_module_state->__pyx_n_s_dependencies); Py_CLEAR(clear_module_state->__pyx_n_s_deserialize); Py_CLEAR(clear_module_state->__pyx_n_s_dict); Py_CLEAR(clear_module_state->__pyx_n_s_dict_2); Py_CLEAR(clear_module_state->__pyx_n_s_difference_update); Py_CLEAR(clear_module_state->__pyx_kp_u_disable); Py_CLEAR(clear_module_state->__pyx_n_s_discriminator); Py_CLEAR(clear_module_state->__pyx_n_s_elt_methods); Py_CLEAR(clear_module_state->__pyx_kp_u_enable); Py_CLEAR(clear_module_state->__pyx_n_s_enumerate); Py_CLEAR(clear_module_state->__pyx_n_s_err); Py_CLEAR(clear_module_state->__pyx_n_s_error); Py_CLEAR(clear_module_state->__pyx_n_s_errors); Py_CLEAR(clear_module_state->__pyx_n_s_exc_max); Py_CLEAR(clear_module_state->__pyx_n_s_exc_min); Py_CLEAR(clear_module_state->__pyx_n_s_expected); Py_CLEAR(clear_module_state->__pyx_n_s_extend); Py_CLEAR(clear_module_state->__pyx_n_s_extend_errors); Py_CLEAR(clear_module_state->__pyx_n_s_factory); Py_CLEAR(clear_module_state->__pyx_n_s_factory_fields); Py_CLEAR(clear_module_state->__pyx_n_s_fall_back_on_default); Py_CLEAR(clear_module_state->__pyx_n_s_fallback); Py_CLEAR(clear_module_state->__pyx_n_s_field); Py_CLEAR(clear_module_state->__pyx_n_s_fields); Py_CLEAR(clear_module_state->__pyx_n_s_flattened_fields); Py_CLEAR(clear_module_state->__pyx_n_s_format_error); Py_CLEAR(clear_module_state->__pyx_kp_u_gc); Py_CLEAR(clear_module_state->__pyx_n_s_genexpr); Py_CLEAR(clear_module_state->__pyx_n_s_getstate); Py_CLEAR(clear_module_state->__pyx_n_s_import); Py_CLEAR(clear_module_state->__pyx_n_s_init_defaults); Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine); Py_CLEAR(clear_module_state->__pyx_n_s_isdisjoint); Py_CLEAR(clear_module_state->__pyx_kp_u_isenabled); Py_CLEAR(clear_module_state->__pyx_n_s_items); Py_CLEAR(clear_module_state->__pyx_n_s_key); Py_CLEAR(clear_module_state->__pyx_n_s_key_method); Py_CLEAR(clear_module_state->__pyx_n_s_keys); Py_CLEAR(clear_module_state->__pyx_n_s_lazy); Py_CLEAR(clear_module_state->__pyx_n_s_main); Py_CLEAR(clear_module_state->__pyx_n_s_map); Py_CLEAR(clear_module_state->__pyx_n_s_mapping); Py_CLEAR(clear_module_state->__pyx_n_s_match); Py_CLEAR(clear_module_state->__pyx_n_s_max_items); Py_CLEAR(clear_module_state->__pyx_n_s_max_len); Py_CLEAR(clear_module_state->__pyx_n_s_max_len_error); Py_CLEAR(clear_module_state->__pyx_n_s_max_properties); Py_CLEAR(clear_module_state->__pyx_n_s_maximum); Py_CLEAR(clear_module_state->__pyx_n_s_merge_errors); Py_CLEAR(clear_module_state->__pyx_n_s_messages); Py_CLEAR(clear_module_state->__pyx_n_s_method); Py_CLEAR(clear_module_state->__pyx_n_s_method_by_cls); Py_CLEAR(clear_module_state->__pyx_n_s_min_items); Py_CLEAR(clear_module_state->__pyx_n_s_min_len); Py_CLEAR(clear_module_state->__pyx_n_s_min_len_error); Py_CLEAR(clear_module_state->__pyx_n_s_min_properties); Py_CLEAR(clear_module_state->__pyx_n_s_minimum); Py_CLEAR(clear_module_state->__pyx_n_s_missing); Py_CLEAR(clear_module_state->__pyx_n_s_mult_of); Py_CLEAR(clear_module_state->__pyx_n_s_name); Py_CLEAR(clear_module_state->__pyx_n_s_name_2); Py_CLEAR(clear_module_state->__pyx_n_s_nb_fields); Py_CLEAR(clear_module_state->__pyx_n_s_new); Py_CLEAR(clear_module_state->__pyx_n_s_object); Py_CLEAR(clear_module_state->__pyx_n_s_pattern); Py_CLEAR(clear_module_state->__pyx_n_s_pattern_fields); Py_CLEAR(clear_module_state->__pyx_n_s_pickle); Py_CLEAR(clear_module_state->__pyx_n_s_post_init_modified); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_PickleError); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_checksum); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_result); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_state); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_type); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_AdditionalField); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_AnyMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_BoolMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_CoercerMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConstrainedFloatM); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConstrainedIntMet); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConstrainedStrMet); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_Constraint); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_Constructor); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConversionAlterna); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConversionMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConversionUnionMe); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ConversionWithVal); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_DefaultField); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_DeserializationMe); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_Discriminated); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_DiscriminatorMeth); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ExclusiveMaximumC); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ExclusiveMinimumC); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_FactoryField); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_Field); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_FieldsConstructor); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_FlattenedField); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_FloatMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_FrozenSetMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_IntMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ListCheckOnlyMeth); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ListMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_LiteralMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MappingCheckOnly); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MappingMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MaxItemsConstrain); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MaxLengthConstrai); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MaxPropertiesCons); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MaximumConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MinItemsConstrain); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MinLengthConstrai); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MinPropertiesCons); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MinimumConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_MultipleOfConstra); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_NoConstructor); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_NoneMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ObjectMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_OptionalMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_PatternConstraint); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_PatternField); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_RawConstructor); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_RawConstructorCop); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_RecMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_SetMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_SimpleObjectMetho); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_StrMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_SubprimitiveMetho); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_TupleMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_TypeCheckMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_UnionByTypeMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_UnionMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_UniqueItemsConstr); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_ValidatorMethod); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_unpickle_VariadicTupleMeth); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_vtable); Py_CLEAR(clear_module_state->__pyx_n_s_range); Py_CLEAR(clear_module_state->__pyx_n_s_reduce); Py_CLEAR(clear_module_state->__pyx_n_s_reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_reduce_ex); Py_CLEAR(clear_module_state->__pyx_n_s_required); Py_CLEAR(clear_module_state->__pyx_n_s_required_by); Py_CLEAR(clear_module_state->__pyx_kp_u_required_by_2); Py_CLEAR(clear_module_state->__pyx_n_s_self); Py_CLEAR(clear_module_state->__pyx_n_s_send); Py_CLEAR(clear_module_state->__pyx_n_s_set_child_error); Py_CLEAR(clear_module_state->__pyx_n_s_setstate); Py_CLEAR(clear_module_state->__pyx_n_s_setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_state); Py_CLEAR(clear_module_state->__pyx_kp_s_stringsource); Py_CLEAR(clear_module_state->__pyx_n_s_test); Py_CLEAR(clear_module_state->__pyx_n_s_throw); Py_CLEAR(clear_module_state->__pyx_n_s_to_hashable); Py_CLEAR(clear_module_state->__pyx_n_s_typed_dict); Py_CLEAR(clear_module_state->__pyx_n_s_types); Py_CLEAR(clear_module_state->__pyx_n_s_typing); Py_CLEAR(clear_module_state->__pyx_n_s_unexpected); Py_CLEAR(clear_module_state->__pyx_n_s_unique); Py_CLEAR(clear_module_state->__pyx_n_s_update); Py_CLEAR(clear_module_state->__pyx_n_s_update_children_errors); Py_CLEAR(clear_module_state->__pyx_n_s_use_setstate); Py_CLEAR(clear_module_state->__pyx_n_s_validate); Py_CLEAR(clear_module_state->__pyx_n_s_validate_constraints); Py_CLEAR(clear_module_state->__pyx_n_s_validators); Py_CLEAR(clear_module_state->__pyx_n_s_value_error); Py_CLEAR(clear_module_state->__pyx_n_s_value_map); Py_CLEAR(clear_module_state->__pyx_n_s_value_method); Py_CLEAR(clear_module_state->__pyx_int_0); Py_CLEAR(clear_module_state->__pyx_int_1); Py_CLEAR(clear_module_state->__pyx_int_1061315); Py_CLEAR(clear_module_state->__pyx_int_4393368); Py_CLEAR(clear_module_state->__pyx_int_5409203); Py_CLEAR(clear_module_state->__pyx_int_6074692); Py_CLEAR(clear_module_state->__pyx_int_10534196); Py_CLEAR(clear_module_state->__pyx_int_16592120); Py_CLEAR(clear_module_state->__pyx_int_16874699); Py_CLEAR(clear_module_state->__pyx_int_17381039); Py_CLEAR(clear_module_state->__pyx_int_18412159); Py_CLEAR(clear_module_state->__pyx_int_21831954); Py_CLEAR(clear_module_state->__pyx_int_21894935); Py_CLEAR(clear_module_state->__pyx_int_22404078); Py_CLEAR(clear_module_state->__pyx_int_25683109); Py_CLEAR(clear_module_state->__pyx_int_29064226); Py_CLEAR(clear_module_state->__pyx_int_30346496); Py_CLEAR(clear_module_state->__pyx_int_31099836); Py_CLEAR(clear_module_state->__pyx_int_31777368); Py_CLEAR(clear_module_state->__pyx_int_34399964); Py_CLEAR(clear_module_state->__pyx_int_34456425); Py_CLEAR(clear_module_state->__pyx_int_34564873); Py_CLEAR(clear_module_state->__pyx_int_39566027); Py_CLEAR(clear_module_state->__pyx_int_39646481); Py_CLEAR(clear_module_state->__pyx_int_43145208); Py_CLEAR(clear_module_state->__pyx_int_47519927); Py_CLEAR(clear_module_state->__pyx_int_49712037); Py_CLEAR(clear_module_state->__pyx_int_50166306); Py_CLEAR(clear_module_state->__pyx_int_50548289); Py_CLEAR(clear_module_state->__pyx_int_56952783); Py_CLEAR(clear_module_state->__pyx_int_59113187); Py_CLEAR(clear_module_state->__pyx_int_59973580); Py_CLEAR(clear_module_state->__pyx_int_65652202); Py_CLEAR(clear_module_state->__pyx_int_67187364); Py_CLEAR(clear_module_state->__pyx_int_68348896); Py_CLEAR(clear_module_state->__pyx_int_69439193); Py_CLEAR(clear_module_state->__pyx_int_71361338); Py_CLEAR(clear_module_state->__pyx_int_71989837); Py_CLEAR(clear_module_state->__pyx_int_73886977); Py_CLEAR(clear_module_state->__pyx_int_76745901); Py_CLEAR(clear_module_state->__pyx_int_80339441); Py_CLEAR(clear_module_state->__pyx_int_86498115); Py_CLEAR(clear_module_state->__pyx_int_87055098); Py_CLEAR(clear_module_state->__pyx_int_87926185); Py_CLEAR(clear_module_state->__pyx_int_89106541); Py_CLEAR(clear_module_state->__pyx_int_89247923); Py_CLEAR(clear_module_state->__pyx_int_89365892); Py_CLEAR(clear_module_state->__pyx_int_90778316); Py_CLEAR(clear_module_state->__pyx_int_92337353); Py_CLEAR(clear_module_state->__pyx_int_99602557); Py_CLEAR(clear_module_state->__pyx_int_99761709); Py_CLEAR(clear_module_state->__pyx_int_100986846); Py_CLEAR(clear_module_state->__pyx_int_102462867); Py_CLEAR(clear_module_state->__pyx_int_105653666); Py_CLEAR(clear_module_state->__pyx_int_107165658); Py_CLEAR(clear_module_state->__pyx_int_108544010); Py_CLEAR(clear_module_state->__pyx_int_108979822); Py_CLEAR(clear_module_state->__pyx_int_109504843); Py_CLEAR(clear_module_state->__pyx_int_110427570); Py_CLEAR(clear_module_state->__pyx_int_113390162); Py_CLEAR(clear_module_state->__pyx_int_117447894); Py_CLEAR(clear_module_state->__pyx_int_119135242); Py_CLEAR(clear_module_state->__pyx_int_119633667); Py_CLEAR(clear_module_state->__pyx_int_119948357); Py_CLEAR(clear_module_state->__pyx_int_125047544); Py_CLEAR(clear_module_state->__pyx_int_128527296); Py_CLEAR(clear_module_state->__pyx_int_129659791); Py_CLEAR(clear_module_state->__pyx_int_129754538); Py_CLEAR(clear_module_state->__pyx_int_133418666); Py_CLEAR(clear_module_state->__pyx_int_133974869); Py_CLEAR(clear_module_state->__pyx_int_136250523); Py_CLEAR(clear_module_state->__pyx_int_137271932); Py_CLEAR(clear_module_state->__pyx_int_138366295); Py_CLEAR(clear_module_state->__pyx_int_138368889); Py_CLEAR(clear_module_state->__pyx_int_139355673); Py_CLEAR(clear_module_state->__pyx_int_141271449); Py_CLEAR(clear_module_state->__pyx_int_142562297); Py_CLEAR(clear_module_state->__pyx_int_148344969); Py_CLEAR(clear_module_state->__pyx_int_150756734); Py_CLEAR(clear_module_state->__pyx_int_151978152); Py_CLEAR(clear_module_state->__pyx_int_153188860); Py_CLEAR(clear_module_state->__pyx_int_154338282); Py_CLEAR(clear_module_state->__pyx_int_154416804); Py_CLEAR(clear_module_state->__pyx_int_155387426); Py_CLEAR(clear_module_state->__pyx_int_157010104); Py_CLEAR(clear_module_state->__pyx_int_157442187); Py_CLEAR(clear_module_state->__pyx_int_159314353); Py_CLEAR(clear_module_state->__pyx_int_169907618); Py_CLEAR(clear_module_state->__pyx_int_170060645); Py_CLEAR(clear_module_state->__pyx_int_172473893); Py_CLEAR(clear_module_state->__pyx_int_174143295); Py_CLEAR(clear_module_state->__pyx_int_179286492); Py_CLEAR(clear_module_state->__pyx_int_180344665); Py_CLEAR(clear_module_state->__pyx_int_185544032); Py_CLEAR(clear_module_state->__pyx_int_188225458); Py_CLEAR(clear_module_state->__pyx_int_188265286); Py_CLEAR(clear_module_state->__pyx_int_190713963); Py_CLEAR(clear_module_state->__pyx_int_191997942); Py_CLEAR(clear_module_state->__pyx_int_199009293); Py_CLEAR(clear_module_state->__pyx_int_200261128); Py_CLEAR(clear_module_state->__pyx_int_205695869); Py_CLEAR(clear_module_state->__pyx_int_206753745); Py_CLEAR(clear_module_state->__pyx_int_207700205); Py_CLEAR(clear_module_state->__pyx_int_210124308); Py_CLEAR(clear_module_state->__pyx_int_213378848); Py_CLEAR(clear_module_state->__pyx_int_217540299); Py_CLEAR(clear_module_state->__pyx_int_218312211); Py_CLEAR(clear_module_state->__pyx_int_218785721); Py_CLEAR(clear_module_state->__pyx_int_219789001); Py_CLEAR(clear_module_state->__pyx_int_226265099); Py_CLEAR(clear_module_state->__pyx_int_228146014); Py_CLEAR(clear_module_state->__pyx_int_228566110); Py_CLEAR(clear_module_state->__pyx_int_230529602); Py_CLEAR(clear_module_state->__pyx_int_232155009); Py_CLEAR(clear_module_state->__pyx_int_232429629); Py_CLEAR(clear_module_state->__pyx_int_238095282); Py_CLEAR(clear_module_state->__pyx_int_238659478); Py_CLEAR(clear_module_state->__pyx_int_240488784); Py_CLEAR(clear_module_state->__pyx_int_241521041); Py_CLEAR(clear_module_state->__pyx_int_242672649); Py_CLEAR(clear_module_state->__pyx_int_247471373); Py_CLEAR(clear_module_state->__pyx_int_249936757); Py_CLEAR(clear_module_state->__pyx_int_251535444); Py_CLEAR(clear_module_state->__pyx_int_251556977); Py_CLEAR(clear_module_state->__pyx_int_252475336); Py_CLEAR(clear_module_state->__pyx_int_253779918); Py_CLEAR(clear_module_state->__pyx_int_258009577); Py_CLEAR(clear_module_state->__pyx_int_259347467); Py_CLEAR(clear_module_state->__pyx_int_261406006); Py_CLEAR(clear_module_state->__pyx_int_262512166); Py_CLEAR(clear_module_state->__pyx_int_265699309); Py_CLEAR(clear_module_state->__pyx_int_266123853); Py_CLEAR(clear_module_state->__pyx_int_266904154); Py_CLEAR(clear_module_state->__pyx_int_267302923); Py_CLEAR(clear_module_state->__pyx_tuple__2); Py_CLEAR(clear_module_state->__pyx_tuple__4); Py_CLEAR(clear_module_state->__pyx_tuple__5); Py_CLEAR(clear_module_state->__pyx_tuple__6); Py_CLEAR(clear_module_state->__pyx_tuple__7); Py_CLEAR(clear_module_state->__pyx_tuple__8); Py_CLEAR(clear_module_state->__pyx_tuple__9); Py_CLEAR(clear_module_state->__pyx_tuple__10); Py_CLEAR(clear_module_state->__pyx_tuple__11); Py_CLEAR(clear_module_state->__pyx_tuple__12); Py_CLEAR(clear_module_state->__pyx_tuple__13); Py_CLEAR(clear_module_state->__pyx_tuple__14); Py_CLEAR(clear_module_state->__pyx_tuple__15); Py_CLEAR(clear_module_state->__pyx_tuple__16); Py_CLEAR(clear_module_state->__pyx_tuple__17); Py_CLEAR(clear_module_state->__pyx_tuple__18); Py_CLEAR(clear_module_state->__pyx_tuple__19); Py_CLEAR(clear_module_state->__pyx_tuple__20); Py_CLEAR(clear_module_state->__pyx_tuple__21); Py_CLEAR(clear_module_state->__pyx_tuple__22); Py_CLEAR(clear_module_state->__pyx_tuple__23); Py_CLEAR(clear_module_state->__pyx_tuple__24); Py_CLEAR(clear_module_state->__pyx_tuple__25); Py_CLEAR(clear_module_state->__pyx_tuple__26); Py_CLEAR(clear_module_state->__pyx_tuple__27); Py_CLEAR(clear_module_state->__pyx_tuple__28); Py_CLEAR(clear_module_state->__pyx_tuple__29); Py_CLEAR(clear_module_state->__pyx_tuple__30); Py_CLEAR(clear_module_state->__pyx_tuple__31); Py_CLEAR(clear_module_state->__pyx_tuple__32); Py_CLEAR(clear_module_state->__pyx_tuple__33); Py_CLEAR(clear_module_state->__pyx_tuple__34); Py_CLEAR(clear_module_state->__pyx_tuple__35); Py_CLEAR(clear_module_state->__pyx_tuple__36); Py_CLEAR(clear_module_state->__pyx_tuple__37); Py_CLEAR(clear_module_state->__pyx_tuple__38); Py_CLEAR(clear_module_state->__pyx_tuple__39); Py_CLEAR(clear_module_state->__pyx_tuple__40); Py_CLEAR(clear_module_state->__pyx_tuple__41); Py_CLEAR(clear_module_state->__pyx_tuple__42); Py_CLEAR(clear_module_state->__pyx_tuple__43); Py_CLEAR(clear_module_state->__pyx_tuple__44); Py_CLEAR(clear_module_state->__pyx_tuple__45); Py_CLEAR(clear_module_state->__pyx_tuple__46); Py_CLEAR(clear_module_state->__pyx_tuple__47); Py_CLEAR(clear_module_state->__pyx_tuple__49); Py_CLEAR(clear_module_state->__pyx_tuple__51); Py_CLEAR(clear_module_state->__pyx_tuple__142); Py_CLEAR(clear_module_state->__pyx_tuple__220); Py_CLEAR(clear_module_state->__pyx_tuple__222); Py_CLEAR(clear_module_state->__pyx_tuple__224); Py_CLEAR(clear_module_state->__pyx_tuple__226); Py_CLEAR(clear_module_state->__pyx_tuple__228); Py_CLEAR(clear_module_state->__pyx_tuple__230); Py_CLEAR(clear_module_state->__pyx_tuple__232); Py_CLEAR(clear_module_state->__pyx_codeobj__48); Py_CLEAR(clear_module_state->__pyx_codeobj__50); Py_CLEAR(clear_module_state->__pyx_codeobj__52); Py_CLEAR(clear_module_state->__pyx_codeobj__53); Py_CLEAR(clear_module_state->__pyx_codeobj__54); Py_CLEAR(clear_module_state->__pyx_codeobj__55); Py_CLEAR(clear_module_state->__pyx_codeobj__56); Py_CLEAR(clear_module_state->__pyx_codeobj__57); Py_CLEAR(clear_module_state->__pyx_codeobj__58); Py_CLEAR(clear_module_state->__pyx_codeobj__59); Py_CLEAR(clear_module_state->__pyx_codeobj__60); Py_CLEAR(clear_module_state->__pyx_codeobj__61); Py_CLEAR(clear_module_state->__pyx_codeobj__62); Py_CLEAR(clear_module_state->__pyx_codeobj__63); Py_CLEAR(clear_module_state->__pyx_codeobj__64); Py_CLEAR(clear_module_state->__pyx_codeobj__65); Py_CLEAR(clear_module_state->__pyx_codeobj__66); Py_CLEAR(clear_module_state->__pyx_codeobj__67); Py_CLEAR(clear_module_state->__pyx_codeobj__68); Py_CLEAR(clear_module_state->__pyx_codeobj__69); Py_CLEAR(clear_module_state->__pyx_codeobj__70); Py_CLEAR(clear_module_state->__pyx_codeobj__71); Py_CLEAR(clear_module_state->__pyx_codeobj__72); Py_CLEAR(clear_module_state->__pyx_codeobj__73); Py_CLEAR(clear_module_state->__pyx_codeobj__74); Py_CLEAR(clear_module_state->__pyx_codeobj__75); Py_CLEAR(clear_module_state->__pyx_codeobj__76); Py_CLEAR(clear_module_state->__pyx_codeobj__77); Py_CLEAR(clear_module_state->__pyx_codeobj__78); Py_CLEAR(clear_module_state->__pyx_codeobj__79); Py_CLEAR(clear_module_state->__pyx_codeobj__80); Py_CLEAR(clear_module_state->__pyx_codeobj__81); Py_CLEAR(clear_module_state->__pyx_codeobj__82); Py_CLEAR(clear_module_state->__pyx_codeobj__83); Py_CLEAR(clear_module_state->__pyx_codeobj__84); Py_CLEAR(clear_module_state->__pyx_codeobj__85); Py_CLEAR(clear_module_state->__pyx_codeobj__86); Py_CLEAR(clear_module_state->__pyx_codeobj__87); Py_CLEAR(clear_module_state->__pyx_codeobj__88); Py_CLEAR(clear_module_state->__pyx_codeobj__89); Py_CLEAR(clear_module_state->__pyx_codeobj__90); Py_CLEAR(clear_module_state->__pyx_codeobj__91); Py_CLEAR(clear_module_state->__pyx_codeobj__92); Py_CLEAR(clear_module_state->__pyx_codeobj__93); Py_CLEAR(clear_module_state->__pyx_codeobj__94); Py_CLEAR(clear_module_state->__pyx_codeobj__95); Py_CLEAR(clear_module_state->__pyx_codeobj__96); Py_CLEAR(clear_module_state->__pyx_codeobj__97); Py_CLEAR(clear_module_state->__pyx_codeobj__98); Py_CLEAR(clear_module_state->__pyx_codeobj__99); Py_CLEAR(clear_module_state->__pyx_codeobj__100); Py_CLEAR(clear_module_state->__pyx_codeobj__101); Py_CLEAR(clear_module_state->__pyx_codeobj__102); Py_CLEAR(clear_module_state->__pyx_codeobj__103); Py_CLEAR(clear_module_state->__pyx_codeobj__104); Py_CLEAR(clear_module_state->__pyx_codeobj__105); Py_CLEAR(clear_module_state->__pyx_codeobj__106); Py_CLEAR(clear_module_state->__pyx_codeobj__107); Py_CLEAR(clear_module_state->__pyx_codeobj__108); Py_CLEAR(clear_module_state->__pyx_codeobj__109); Py_CLEAR(clear_module_state->__pyx_codeobj__110); Py_CLEAR(clear_module_state->__pyx_codeobj__111); Py_CLEAR(clear_module_state->__pyx_codeobj__112); Py_CLEAR(clear_module_state->__pyx_codeobj__113); Py_CLEAR(clear_module_state->__pyx_codeobj__114); Py_CLEAR(clear_module_state->__pyx_codeobj__115); Py_CLEAR(clear_module_state->__pyx_codeobj__116); Py_CLEAR(clear_module_state->__pyx_codeobj__117); Py_CLEAR(clear_module_state->__pyx_codeobj__118); Py_CLEAR(clear_module_state->__pyx_codeobj__119); Py_CLEAR(clear_module_state->__pyx_codeobj__120); Py_CLEAR(clear_module_state->__pyx_codeobj__121); Py_CLEAR(clear_module_state->__pyx_codeobj__122); Py_CLEAR(clear_module_state->__pyx_codeobj__123); Py_CLEAR(clear_module_state->__pyx_codeobj__124); Py_CLEAR(clear_module_state->__pyx_codeobj__125); Py_CLEAR(clear_module_state->__pyx_codeobj__126); Py_CLEAR(clear_module_state->__pyx_codeobj__127); Py_CLEAR(clear_module_state->__pyx_codeobj__128); Py_CLEAR(clear_module_state->__pyx_codeobj__129); Py_CLEAR(clear_module_state->__pyx_codeobj__130); Py_CLEAR(clear_module_state->__pyx_codeobj__131); Py_CLEAR(clear_module_state->__pyx_codeobj__132); Py_CLEAR(clear_module_state->__pyx_codeobj__133); Py_CLEAR(clear_module_state->__pyx_codeobj__134); Py_CLEAR(clear_module_state->__pyx_codeobj__135); Py_CLEAR(clear_module_state->__pyx_codeobj__136); Py_CLEAR(clear_module_state->__pyx_codeobj__137); Py_CLEAR(clear_module_state->__pyx_codeobj__138); Py_CLEAR(clear_module_state->__pyx_codeobj__139); Py_CLEAR(clear_module_state->__pyx_codeobj__140); Py_CLEAR(clear_module_state->__pyx_codeobj__141); Py_CLEAR(clear_module_state->__pyx_codeobj__143); Py_CLEAR(clear_module_state->__pyx_codeobj__144); Py_CLEAR(clear_module_state->__pyx_codeobj__145); Py_CLEAR(clear_module_state->__pyx_codeobj__146); Py_CLEAR(clear_module_state->__pyx_codeobj__147); Py_CLEAR(clear_module_state->__pyx_codeobj__148); Py_CLEAR(clear_module_state->__pyx_codeobj__149); Py_CLEAR(clear_module_state->__pyx_codeobj__150); Py_CLEAR(clear_module_state->__pyx_codeobj__151); Py_CLEAR(clear_module_state->__pyx_codeobj__152); Py_CLEAR(clear_module_state->__pyx_codeobj__153); Py_CLEAR(clear_module_state->__pyx_codeobj__154); Py_CLEAR(clear_module_state->__pyx_codeobj__155); Py_CLEAR(clear_module_state->__pyx_codeobj__156); Py_CLEAR(clear_module_state->__pyx_codeobj__157); Py_CLEAR(clear_module_state->__pyx_codeobj__158); Py_CLEAR(clear_module_state->__pyx_codeobj__159); Py_CLEAR(clear_module_state->__pyx_codeobj__160); Py_CLEAR(clear_module_state->__pyx_codeobj__161); Py_CLEAR(clear_module_state->__pyx_codeobj__162); Py_CLEAR(clear_module_state->__pyx_codeobj__163); Py_CLEAR(clear_module_state->__pyx_codeobj__164); Py_CLEAR(clear_module_state->__pyx_codeobj__165); Py_CLEAR(clear_module_state->__pyx_codeobj__166); Py_CLEAR(clear_module_state->__pyx_codeobj__167); Py_CLEAR(clear_module_state->__pyx_codeobj__168); Py_CLEAR(clear_module_state->__pyx_codeobj__169); Py_CLEAR(clear_module_state->__pyx_codeobj__170); Py_CLEAR(clear_module_state->__pyx_codeobj__171); Py_CLEAR(clear_module_state->__pyx_codeobj__172); Py_CLEAR(clear_module_state->__pyx_codeobj__173); Py_CLEAR(clear_module_state->__pyx_codeobj__174); Py_CLEAR(clear_module_state->__pyx_codeobj__175); Py_CLEAR(clear_module_state->__pyx_codeobj__176); Py_CLEAR(clear_module_state->__pyx_codeobj__177); Py_CLEAR(clear_module_state->__pyx_codeobj__178); Py_CLEAR(clear_module_state->__pyx_codeobj__179); Py_CLEAR(clear_module_state->__pyx_codeobj__180); Py_CLEAR(clear_module_state->__pyx_codeobj__181); Py_CLEAR(clear_module_state->__pyx_codeobj__182); Py_CLEAR(clear_module_state->__pyx_codeobj__183); Py_CLEAR(clear_module_state->__pyx_codeobj__184); Py_CLEAR(clear_module_state->__pyx_codeobj__185); Py_CLEAR(clear_module_state->__pyx_codeobj__186); Py_CLEAR(clear_module_state->__pyx_codeobj__187); Py_CLEAR(clear_module_state->__pyx_codeobj__188); Py_CLEAR(clear_module_state->__pyx_codeobj__189); Py_CLEAR(clear_module_state->__pyx_codeobj__190); Py_CLEAR(clear_module_state->__pyx_codeobj__191); Py_CLEAR(clear_module_state->__pyx_codeobj__192); Py_CLEAR(clear_module_state->__pyx_codeobj__193); Py_CLEAR(clear_module_state->__pyx_codeobj__194); Py_CLEAR(clear_module_state->__pyx_codeobj__195); Py_CLEAR(clear_module_state->__pyx_codeobj__196); Py_CLEAR(clear_module_state->__pyx_codeobj__197); Py_CLEAR(clear_module_state->__pyx_codeobj__198); Py_CLEAR(clear_module_state->__pyx_codeobj__199); Py_CLEAR(clear_module_state->__pyx_codeobj__200); Py_CLEAR(clear_module_state->__pyx_codeobj__201); Py_CLEAR(clear_module_state->__pyx_codeobj__202); Py_CLEAR(clear_module_state->__pyx_codeobj__203); Py_CLEAR(clear_module_state->__pyx_codeobj__204); Py_CLEAR(clear_module_state->__pyx_codeobj__205); Py_CLEAR(clear_module_state->__pyx_codeobj__206); Py_CLEAR(clear_module_state->__pyx_codeobj__207); Py_CLEAR(clear_module_state->__pyx_codeobj__208); Py_CLEAR(clear_module_state->__pyx_codeobj__209); Py_CLEAR(clear_module_state->__pyx_codeobj__210); Py_CLEAR(clear_module_state->__pyx_codeobj__211); Py_CLEAR(clear_module_state->__pyx_codeobj__212); Py_CLEAR(clear_module_state->__pyx_codeobj__213); Py_CLEAR(clear_module_state->__pyx_codeobj__214); Py_CLEAR(clear_module_state->__pyx_codeobj__215); Py_CLEAR(clear_module_state->__pyx_codeobj__216); Py_CLEAR(clear_module_state->__pyx_codeobj__217); Py_CLEAR(clear_module_state->__pyx_codeobj__218); Py_CLEAR(clear_module_state->__pyx_codeobj__219); Py_CLEAR(clear_module_state->__pyx_codeobj__221); Py_CLEAR(clear_module_state->__pyx_codeobj__223); Py_CLEAR(clear_module_state->__pyx_codeobj__225); Py_CLEAR(clear_module_state->__pyx_codeobj__227); Py_CLEAR(clear_module_state->__pyx_codeobj__229); Py_CLEAR(clear_module_state->__pyx_codeobj__231); Py_CLEAR(clear_module_state->__pyx_codeobj__233); Py_CLEAR(clear_module_state->__pyx_codeobj__234); Py_CLEAR(clear_module_state->__pyx_codeobj__235); Py_CLEAR(clear_module_state->__pyx_codeobj__236); Py_CLEAR(clear_module_state->__pyx_codeobj__237); Py_CLEAR(clear_module_state->__pyx_codeobj__238); Py_CLEAR(clear_module_state->__pyx_codeobj__239); Py_CLEAR(clear_module_state->__pyx_codeobj__240); Py_CLEAR(clear_module_state->__pyx_codeobj__241); Py_CLEAR(clear_module_state->__pyx_codeobj__242); Py_CLEAR(clear_module_state->__pyx_codeobj__243); Py_CLEAR(clear_module_state->__pyx_codeobj__244); Py_CLEAR(clear_module_state->__pyx_codeobj__245); Py_CLEAR(clear_module_state->__pyx_codeobj__246); Py_CLEAR(clear_module_state->__pyx_codeobj__247); Py_CLEAR(clear_module_state->__pyx_codeobj__248); Py_CLEAR(clear_module_state->__pyx_codeobj__249); Py_CLEAR(clear_module_state->__pyx_codeobj__250); Py_CLEAR(clear_module_state->__pyx_codeobj__251); Py_CLEAR(clear_module_state->__pyx_codeobj__252); Py_CLEAR(clear_module_state->__pyx_codeobj__253); Py_CLEAR(clear_module_state->__pyx_codeobj__254); Py_CLEAR(clear_module_state->__pyx_codeobj__255); Py_CLEAR(clear_module_state->__pyx_codeobj__256); Py_CLEAR(clear_module_state->__pyx_codeobj__257); Py_CLEAR(clear_module_state->__pyx_codeobj__258); Py_CLEAR(clear_module_state->__pyx_codeobj__259); Py_CLEAR(clear_module_state->__pyx_codeobj__260); Py_CLEAR(clear_module_state->__pyx_codeobj__261); Py_CLEAR(clear_module_state->__pyx_codeobj__262); Py_CLEAR(clear_module_state->__pyx_codeobj__263); Py_CLEAR(clear_module_state->__pyx_codeobj__264); Py_CLEAR(clear_module_state->__pyx_codeobj__265); Py_CLEAR(clear_module_state->__pyx_codeobj__266); Py_CLEAR(clear_module_state->__pyx_codeobj__267); Py_CLEAR(clear_module_state->__pyx_codeobj__268); Py_CLEAR(clear_module_state->__pyx_codeobj__269); Py_CLEAR(clear_module_state->__pyx_codeobj__270); Py_CLEAR(clear_module_state->__pyx_codeobj__271); Py_CLEAR(clear_module_state->__pyx_codeobj__272); Py_CLEAR(clear_module_state->__pyx_codeobj__273); Py_CLEAR(clear_module_state->__pyx_codeobj__274); Py_CLEAR(clear_module_state->__pyx_codeobj__275); Py_CLEAR(clear_module_state->__pyx_codeobj__276); Py_CLEAR(clear_module_state->__pyx_codeobj__277); Py_CLEAR(clear_module_state->__pyx_codeobj__278); Py_CLEAR(clear_module_state->__pyx_codeobj__279); Py_CLEAR(clear_module_state->__pyx_codeobj__280); Py_CLEAR(clear_module_state->__pyx_codeobj__281); Py_CLEAR(clear_module_state->__pyx_codeobj__282); Py_CLEAR(clear_module_state->__pyx_codeobj__283); Py_CLEAR(clear_module_state->__pyx_codeobj__284); Py_CLEAR(clear_module_state->__pyx_codeobj__285); Py_CLEAR(clear_module_state->__pyx_codeobj__286); Py_CLEAR(clear_module_state->__pyx_codeobj__287); Py_CLEAR(clear_module_state->__pyx_codeobj__288); Py_CLEAR(clear_module_state->__pyx_codeobj__289); Py_CLEAR(clear_module_state->__pyx_codeobj__290); Py_CLEAR(clear_module_state->__pyx_codeobj__291); Py_CLEAR(clear_module_state->__pyx_codeobj__292); return 0; } #endif /* #### Code section: module_state_traverse ### */ #if CYTHON_USE_MODULE_STATE static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { __pyx_mstate *traverse_module_state = __pyx_mstate(m); if (!traverse_module_state) return 0; Py_VISIT(traverse_module_state->__pyx_d); Py_VISIT(traverse_module_state->__pyx_b); Py_VISIT(traverse_module_state->__pyx_cython_runtime); Py_VISIT(traverse_module_state->__pyx_empty_tuple); Py_VISIT(traverse_module_state->__pyx_empty_bytes); Py_VISIT(traverse_module_state->__pyx_empty_unicode); #ifdef __Pyx_CyFunction_USED Py_VISIT(traverse_module_state->__pyx_CyFunctionType); #endif #ifdef __Pyx_FusedFunction_USED Py_VISIT(traverse_module_state->__pyx_FusedFunctionType); #endif Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type); Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4bool_bool); Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_7complex_complex); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Constraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_Constraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_PatternConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_RecMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_RecMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_CoercerMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_AnyMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ListMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ListMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_SetMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_SetMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_LiteralMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_MappingMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Field); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_Field); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_FlattenedField); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_PatternField); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_PatternField); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_AdditionalField); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Constructor); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_Constructor); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_NoConstructor); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_RawConstructor); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_DefaultField); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_DefaultField); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FactoryField); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_FactoryField); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ObjectMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_NoneMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_IntMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_IntMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_FloatMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_StrMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_StrMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_BoolMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_TupleMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_OptionalMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_UnionMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_Discriminated); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_Discriminated); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr); Py_VISIT(traverse_module_state->__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr); Py_VISIT(traverse_module_state->__pyx_kp_u_); Py_VISIT(traverse_module_state->__pyx_n_s_AbstractSet); Py_VISIT(traverse_module_state->__pyx_n_s_AdditionalField); Py_VISIT(traverse_module_state->__pyx_n_s_AdditionalField___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_AdditionalField___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_Aliaser); Py_VISIT(traverse_module_state->__pyx_n_s_Any); Py_VISIT(traverse_module_state->__pyx_n_s_AnyMethod); Py_VISIT(traverse_module_state->__pyx_n_s_AnyMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_AnyMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_AnyMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_AnyType); Py_VISIT(traverse_module_state->__pyx_n_s_AssertionError); Py_VISIT(traverse_module_state->__pyx_n_s_BoolMethod); Py_VISIT(traverse_module_state->__pyx_n_s_BoolMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_BoolMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_BoolMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Callable); Py_VISIT(traverse_module_state->__pyx_n_s_Coercer); Py_VISIT(traverse_module_state->__pyx_n_s_CoercerMethod); Py_VISIT(traverse_module_state->__pyx_n_s_CoercerMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_CoercerMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_CoercerMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedFloatMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedFloatMethod___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedFloatMethod___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedFloatMethod_deseriali); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedIntMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedIntMethod___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedIntMethod___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedIntMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedStrMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedStrMethod___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedStrMethod___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_ConstrainedStrMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Constraint); Py_VISIT(traverse_module_state->__pyx_n_s_Constraint___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_Constraint___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_Constructor); Py_VISIT(traverse_module_state->__pyx_n_s_Constructor___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_Constructor___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionAlternative); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionAlternative___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionAlternative___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionMethod___setstate_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionUnionMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionUnionMethod___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionUnionMethod___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionUnionMethod_deserializ); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionWithValueErrorMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionWithValueErrorMethod_2); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionWithValueErrorMethod_3); Py_VISIT(traverse_module_state->__pyx_n_s_ConversionWithValueErrorMethod_d); Py_VISIT(traverse_module_state->__pyx_n_s_Converter); Py_VISIT(traverse_module_state->__pyx_n_s_DefaultField); Py_VISIT(traverse_module_state->__pyx_n_s_DefaultField___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_DefaultField___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_DeserializationMethod); Py_VISIT(traverse_module_state->__pyx_n_s_DeserializationMethod___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_DeserializationMethod___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_Dict); Py_VISIT(traverse_module_state->__pyx_n_s_Discriminated); Py_VISIT(traverse_module_state->__pyx_n_s_Discriminated___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_Discriminated___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_DiscriminatorMethod); Py_VISIT(traverse_module_state->__pyx_n_s_DiscriminatorMethod___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_DiscriminatorMethod___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_DiscriminatorMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_ErrorKey); Py_VISIT(traverse_module_state->__pyx_n_s_ErrorMsg); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMaximumConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMaximumConstraint___red); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMaximumConstraint___set); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMaximumConstraint_valid); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMinimumConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMinimumConstraint___red); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMinimumConstraint___set); Py_VISIT(traverse_module_state->__pyx_n_s_ExclusiveMinimumConstraint_valid); Py_VISIT(traverse_module_state->__pyx_n_s_FactoryField); Py_VISIT(traverse_module_state->__pyx_n_s_FactoryField___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FactoryField___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_Field); Py_VISIT(traverse_module_state->__pyx_n_s_Field___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_Field___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FieldsConstructor); Py_VISIT(traverse_module_state->__pyx_n_s_FieldsConstructor___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_FieldsConstructor___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_FieldsConstructor_construct); Py_VISIT(traverse_module_state->__pyx_n_s_FlattenedField); Py_VISIT(traverse_module_state->__pyx_n_s_FlattenedField___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FlattenedField___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FloatMethod); Py_VISIT(traverse_module_state->__pyx_n_s_FloatMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FloatMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FloatMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_FrozenSetMethod); Py_VISIT(traverse_module_state->__pyx_n_s_FrozenSetMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_FrozenSetMethod___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_FrozenSetMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8); Py_VISIT(traverse_module_state->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9); Py_VISIT(traverse_module_state->__pyx_n_s_IndexError); Py_VISIT(traverse_module_state->__pyx_n_s_IntMethod); Py_VISIT(traverse_module_state->__pyx_n_s_IntMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_IntMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_IntMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_KeyError); Py_VISIT(traverse_module_state->__pyx_n_s_Lazy); Py_VISIT(traverse_module_state->__pyx_n_s_List); Py_VISIT(traverse_module_state->__pyx_n_s_ListCheckOnlyMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ListCheckOnlyMethod___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_ListCheckOnlyMethod___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_ListCheckOnlyMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_ListMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ListMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ListMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ListMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_LiteralMethod); Py_VISIT(traverse_module_state->__pyx_n_s_LiteralMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_LiteralMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_LiteralMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Mapping); Py_VISIT(traverse_module_state->__pyx_n_s_MappingCheckOnly); Py_VISIT(traverse_module_state->__pyx_n_s_MappingCheckOnly___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_MappingCheckOnly___setstate_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_MappingCheckOnly_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_MappingMethod); Py_VISIT(traverse_module_state->__pyx_n_s_MappingMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_MappingMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_MappingMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_MaxItemsConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MaxItemsConstraint___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_MaxItemsConstraint___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_MaxItemsConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MaxLengthConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MaxLengthConstraint___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_MaxLengthConstraint___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_MaxLengthConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MaxPropertiesConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MaxPropertiesConstraint___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_MaxPropertiesConstraint___setsta); Py_VISIT(traverse_module_state->__pyx_n_s_MaxPropertiesConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MaximumConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MaximumConstraint___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_MaximumConstraint___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_MaximumConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MinItemsConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MinItemsConstraint___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_MinItemsConstraint___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_MinItemsConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MinLengthConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MinLengthConstraint___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_MinLengthConstraint___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_MinLengthConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MinPropertiesConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MinPropertiesConstraint___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_MinPropertiesConstraint___setsta); Py_VISIT(traverse_module_state->__pyx_n_s_MinPropertiesConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MinimumConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MinimumConstraint___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_MinimumConstraint___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_MinimumConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_MultipleOfConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_MultipleOfConstraint___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_MultipleOfConstraint___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_MultipleOfConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_NoConstructor); Py_VISIT(traverse_module_state->__pyx_n_s_NoConstructor___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_NoConstructor___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_NoConstructor_construct); Py_VISIT(traverse_module_state->__pyx_n_s_NoneMethod); Py_VISIT(traverse_module_state->__pyx_n_s_NoneMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_NoneMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_NoneMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_NoneType); Py_VISIT(traverse_module_state->__pyx_n_s_NotImplementedError); Py_VISIT(traverse_module_state->__pyx_n_s_ObjectMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ObjectMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ObjectMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ObjectMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Optional); Py_VISIT(traverse_module_state->__pyx_n_s_OptionalMethod); Py_VISIT(traverse_module_state->__pyx_n_s_OptionalMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_OptionalMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_OptionalMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Pattern); Py_VISIT(traverse_module_state->__pyx_n_s_PatternConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_PatternConstraint___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_PatternConstraint___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_PatternConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_PatternField); Py_VISIT(traverse_module_state->__pyx_n_s_PatternField___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_PatternField___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_PickleError); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructor); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructorCopy); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructorCopy___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructorCopy___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructorCopy_construct); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructor___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructor___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_RawConstructor_construct); Py_VISIT(traverse_module_state->__pyx_n_s_RecMethod); Py_VISIT(traverse_module_state->__pyx_n_s_RecMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_RecMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_RecMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Sequence); Py_VISIT(traverse_module_state->__pyx_n_s_SetMethod); Py_VISIT(traverse_module_state->__pyx_n_s_SetMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_SetMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_SetMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_SimpleObjectMethod); Py_VISIT(traverse_module_state->__pyx_n_s_SimpleObjectMethod___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_SimpleObjectMethod___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_SimpleObjectMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_StrMethod); Py_VISIT(traverse_module_state->__pyx_n_s_StrMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_StrMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_StrMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_SubprimitiveMethod); Py_VISIT(traverse_module_state->__pyx_n_s_SubprimitiveMethod___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_SubprimitiveMethod___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_SubprimitiveMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_Tuple); Py_VISIT(traverse_module_state->__pyx_n_s_TupleMethod); Py_VISIT(traverse_module_state->__pyx_n_s_TupleMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_TupleMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_TupleMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_TypeCheckMethod); Py_VISIT(traverse_module_state->__pyx_n_s_TypeCheckMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_TypeCheckMethod___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_TypeCheckMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_TypeError); Py_VISIT(traverse_module_state->__pyx_n_s_Union); Py_VISIT(traverse_module_state->__pyx_n_s_UnionByTypeMethod); Py_VISIT(traverse_module_state->__pyx_n_s_UnionByTypeMethod___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_UnionByTypeMethod___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_UnionByTypeMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_UnionByTypeMethod_deserialize_lo); Py_VISIT(traverse_module_state->__pyx_n_s_UnionMethod); Py_VISIT(traverse_module_state->__pyx_n_s_UnionMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_UnionMethod___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_UnionMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_UniqueItemsConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_UniqueItemsConstraint___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_UniqueItemsConstraint___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_UniqueItemsConstraint_validate); Py_VISIT(traverse_module_state->__pyx_n_s_ValidationError); Py_VISIT(traverse_module_state->__pyx_n_s_Validator); Py_VISIT(traverse_module_state->__pyx_n_s_ValidatorMethod); Py_VISIT(traverse_module_state->__pyx_n_s_ValidatorMethod___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_ValidatorMethod___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_ValidatorMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_ValidatorMock); Py_VISIT(traverse_module_state->__pyx_n_s_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_VariadicTupleMethod); Py_VISIT(traverse_module_state->__pyx_n_s_VariadicTupleMethod___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_VariadicTupleMethod___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_VariadicTupleMethod_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s__293); Py_VISIT(traverse_module_state->__pyx_kp_u__3); Py_VISIT(traverse_module_state->__pyx_n_s_additional_field); Py_VISIT(traverse_module_state->__pyx_n_s_additional_properties); Py_VISIT(traverse_module_state->__pyx_n_s_alias); Py_VISIT(traverse_module_state->__pyx_n_s_aliaser); Py_VISIT(traverse_module_state->__pyx_n_s_aliases); Py_VISIT(traverse_module_state->__pyx_n_s_all_aliases); Py_VISIT(traverse_module_state->__pyx_n_s_alt_methods); Py_VISIT(traverse_module_state->__pyx_n_s_alternatives); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_aliases); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_conversions_utils); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_deserialization_coerci); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_deserialization_method); Py_VISIT(traverse_module_state->__pyx_kp_s_apischema_deserialization_method_2); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_json_schema_types); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_types); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_utils); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_validation_errors); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_validation_mock); Py_VISIT(traverse_module_state->__pyx_n_s_apischema_validation_validators); Py_VISIT(traverse_module_state->__pyx_n_s_args); Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines); Py_VISIT(traverse_module_state->__pyx_n_s_bad_type); Py_VISIT(traverse_module_state->__pyx_n_s_children); Py_VISIT(traverse_module_state->__pyx_n_s_children_errors); Py_VISIT(traverse_module_state->__pyx_n_s_class_getitem); Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback); Py_VISIT(traverse_module_state->__pyx_n_s_close); Py_VISIT(traverse_module_state->__pyx_n_s_cls); Py_VISIT(traverse_module_state->__pyx_n_s_coercer); Py_VISIT(traverse_module_state->__pyx_n_s_constraints); Py_VISIT(traverse_module_state->__pyx_n_s_construct); Py_VISIT(traverse_module_state->__pyx_n_s_constructor); Py_VISIT(traverse_module_state->__pyx_n_s_converter); Py_VISIT(traverse_module_state->__pyx_n_s_copy); Py_VISIT(traverse_module_state->__pyx_n_s_data); Py_VISIT(traverse_module_state->__pyx_n_s_dataclass); Py_VISIT(traverse_module_state->__pyx_n_s_dataclasses); Py_VISIT(traverse_module_state->__pyx_n_s_default_fields); Py_VISIT(traverse_module_state->__pyx_n_s_default_value); Py_VISIT(traverse_module_state->__pyx_n_s_dependencies); Py_VISIT(traverse_module_state->__pyx_n_s_deserialize); Py_VISIT(traverse_module_state->__pyx_n_s_dict); Py_VISIT(traverse_module_state->__pyx_n_s_dict_2); Py_VISIT(traverse_module_state->__pyx_n_s_difference_update); Py_VISIT(traverse_module_state->__pyx_kp_u_disable); Py_VISIT(traverse_module_state->__pyx_n_s_discriminator); Py_VISIT(traverse_module_state->__pyx_n_s_elt_methods); Py_VISIT(traverse_module_state->__pyx_kp_u_enable); Py_VISIT(traverse_module_state->__pyx_n_s_enumerate); Py_VISIT(traverse_module_state->__pyx_n_s_err); Py_VISIT(traverse_module_state->__pyx_n_s_error); Py_VISIT(traverse_module_state->__pyx_n_s_errors); Py_VISIT(traverse_module_state->__pyx_n_s_exc_max); Py_VISIT(traverse_module_state->__pyx_n_s_exc_min); Py_VISIT(traverse_module_state->__pyx_n_s_expected); Py_VISIT(traverse_module_state->__pyx_n_s_extend); Py_VISIT(traverse_module_state->__pyx_n_s_extend_errors); Py_VISIT(traverse_module_state->__pyx_n_s_factory); Py_VISIT(traverse_module_state->__pyx_n_s_factory_fields); Py_VISIT(traverse_module_state->__pyx_n_s_fall_back_on_default); Py_VISIT(traverse_module_state->__pyx_n_s_fallback); Py_VISIT(traverse_module_state->__pyx_n_s_field); Py_VISIT(traverse_module_state->__pyx_n_s_fields); Py_VISIT(traverse_module_state->__pyx_n_s_flattened_fields); Py_VISIT(traverse_module_state->__pyx_n_s_format_error); Py_VISIT(traverse_module_state->__pyx_kp_u_gc); Py_VISIT(traverse_module_state->__pyx_n_s_genexpr); Py_VISIT(traverse_module_state->__pyx_n_s_getstate); Py_VISIT(traverse_module_state->__pyx_n_s_import); Py_VISIT(traverse_module_state->__pyx_n_s_init_defaults); Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine); Py_VISIT(traverse_module_state->__pyx_n_s_isdisjoint); Py_VISIT(traverse_module_state->__pyx_kp_u_isenabled); Py_VISIT(traverse_module_state->__pyx_n_s_items); Py_VISIT(traverse_module_state->__pyx_n_s_key); Py_VISIT(traverse_module_state->__pyx_n_s_key_method); Py_VISIT(traverse_module_state->__pyx_n_s_keys); Py_VISIT(traverse_module_state->__pyx_n_s_lazy); Py_VISIT(traverse_module_state->__pyx_n_s_main); Py_VISIT(traverse_module_state->__pyx_n_s_map); Py_VISIT(traverse_module_state->__pyx_n_s_mapping); Py_VISIT(traverse_module_state->__pyx_n_s_match); Py_VISIT(traverse_module_state->__pyx_n_s_max_items); Py_VISIT(traverse_module_state->__pyx_n_s_max_len); Py_VISIT(traverse_module_state->__pyx_n_s_max_len_error); Py_VISIT(traverse_module_state->__pyx_n_s_max_properties); Py_VISIT(traverse_module_state->__pyx_n_s_maximum); Py_VISIT(traverse_module_state->__pyx_n_s_merge_errors); Py_VISIT(traverse_module_state->__pyx_n_s_messages); Py_VISIT(traverse_module_state->__pyx_n_s_method); Py_VISIT(traverse_module_state->__pyx_n_s_method_by_cls); Py_VISIT(traverse_module_state->__pyx_n_s_min_items); Py_VISIT(traverse_module_state->__pyx_n_s_min_len); Py_VISIT(traverse_module_state->__pyx_n_s_min_len_error); Py_VISIT(traverse_module_state->__pyx_n_s_min_properties); Py_VISIT(traverse_module_state->__pyx_n_s_minimum); Py_VISIT(traverse_module_state->__pyx_n_s_missing); Py_VISIT(traverse_module_state->__pyx_n_s_mult_of); Py_VISIT(traverse_module_state->__pyx_n_s_name); Py_VISIT(traverse_module_state->__pyx_n_s_name_2); Py_VISIT(traverse_module_state->__pyx_n_s_nb_fields); Py_VISIT(traverse_module_state->__pyx_n_s_new); Py_VISIT(traverse_module_state->__pyx_n_s_object); Py_VISIT(traverse_module_state->__pyx_n_s_pattern); Py_VISIT(traverse_module_state->__pyx_n_s_pattern_fields); Py_VISIT(traverse_module_state->__pyx_n_s_pickle); Py_VISIT(traverse_module_state->__pyx_n_s_post_init_modified); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_PickleError); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_checksum); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_result); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_state); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_type); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_AdditionalField); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_AnyMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_BoolMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_CoercerMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConstrainedFloatM); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConstrainedIntMet); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConstrainedStrMet); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_Constraint); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_Constructor); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConversionAlterna); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConversionMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConversionUnionMe); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ConversionWithVal); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_DefaultField); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_DeserializationMe); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_Discriminated); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_DiscriminatorMeth); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ExclusiveMaximumC); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ExclusiveMinimumC); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_FactoryField); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_Field); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_FieldsConstructor); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_FlattenedField); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_FloatMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_FrozenSetMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_IntMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ListCheckOnlyMeth); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ListMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_LiteralMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MappingCheckOnly); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MappingMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MaxItemsConstrain); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MaxLengthConstrai); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MaxPropertiesCons); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MaximumConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MinItemsConstrain); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MinLengthConstrai); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MinPropertiesCons); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MinimumConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_MultipleOfConstra); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_NoConstructor); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_NoneMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ObjectMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_OptionalMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_PatternConstraint); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_PatternField); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_RawConstructor); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_RawConstructorCop); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_RecMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_SetMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_SimpleObjectMetho); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_StrMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_SubprimitiveMetho); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_TupleMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_TypeCheckMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_UnionByTypeMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_UnionMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_UniqueItemsConstr); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_ValidatorMethod); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_unpickle_VariadicTupleMeth); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_vtable); Py_VISIT(traverse_module_state->__pyx_n_s_range); Py_VISIT(traverse_module_state->__pyx_n_s_reduce); Py_VISIT(traverse_module_state->__pyx_n_s_reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_reduce_ex); Py_VISIT(traverse_module_state->__pyx_n_s_required); Py_VISIT(traverse_module_state->__pyx_n_s_required_by); Py_VISIT(traverse_module_state->__pyx_kp_u_required_by_2); Py_VISIT(traverse_module_state->__pyx_n_s_self); Py_VISIT(traverse_module_state->__pyx_n_s_send); Py_VISIT(traverse_module_state->__pyx_n_s_set_child_error); Py_VISIT(traverse_module_state->__pyx_n_s_setstate); Py_VISIT(traverse_module_state->__pyx_n_s_setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_state); Py_VISIT(traverse_module_state->__pyx_kp_s_stringsource); Py_VISIT(traverse_module_state->__pyx_n_s_test); Py_VISIT(traverse_module_state->__pyx_n_s_throw); Py_VISIT(traverse_module_state->__pyx_n_s_to_hashable); Py_VISIT(traverse_module_state->__pyx_n_s_typed_dict); Py_VISIT(traverse_module_state->__pyx_n_s_types); Py_VISIT(traverse_module_state->__pyx_n_s_typing); Py_VISIT(traverse_module_state->__pyx_n_s_unexpected); Py_VISIT(traverse_module_state->__pyx_n_s_unique); Py_VISIT(traverse_module_state->__pyx_n_s_update); Py_VISIT(traverse_module_state->__pyx_n_s_update_children_errors); Py_VISIT(traverse_module_state->__pyx_n_s_use_setstate); Py_VISIT(traverse_module_state->__pyx_n_s_validate); Py_VISIT(traverse_module_state->__pyx_n_s_validate_constraints); Py_VISIT(traverse_module_state->__pyx_n_s_validators); Py_VISIT(traverse_module_state->__pyx_n_s_value_error); Py_VISIT(traverse_module_state->__pyx_n_s_value_map); Py_VISIT(traverse_module_state->__pyx_n_s_value_method); Py_VISIT(traverse_module_state->__pyx_int_0); Py_VISIT(traverse_module_state->__pyx_int_1); Py_VISIT(traverse_module_state->__pyx_int_1061315); Py_VISIT(traverse_module_state->__pyx_int_4393368); Py_VISIT(traverse_module_state->__pyx_int_5409203); Py_VISIT(traverse_module_state->__pyx_int_6074692); Py_VISIT(traverse_module_state->__pyx_int_10534196); Py_VISIT(traverse_module_state->__pyx_int_16592120); Py_VISIT(traverse_module_state->__pyx_int_16874699); Py_VISIT(traverse_module_state->__pyx_int_17381039); Py_VISIT(traverse_module_state->__pyx_int_18412159); Py_VISIT(traverse_module_state->__pyx_int_21831954); Py_VISIT(traverse_module_state->__pyx_int_21894935); Py_VISIT(traverse_module_state->__pyx_int_22404078); Py_VISIT(traverse_module_state->__pyx_int_25683109); Py_VISIT(traverse_module_state->__pyx_int_29064226); Py_VISIT(traverse_module_state->__pyx_int_30346496); Py_VISIT(traverse_module_state->__pyx_int_31099836); Py_VISIT(traverse_module_state->__pyx_int_31777368); Py_VISIT(traverse_module_state->__pyx_int_34399964); Py_VISIT(traverse_module_state->__pyx_int_34456425); Py_VISIT(traverse_module_state->__pyx_int_34564873); Py_VISIT(traverse_module_state->__pyx_int_39566027); Py_VISIT(traverse_module_state->__pyx_int_39646481); Py_VISIT(traverse_module_state->__pyx_int_43145208); Py_VISIT(traverse_module_state->__pyx_int_47519927); Py_VISIT(traverse_module_state->__pyx_int_49712037); Py_VISIT(traverse_module_state->__pyx_int_50166306); Py_VISIT(traverse_module_state->__pyx_int_50548289); Py_VISIT(traverse_module_state->__pyx_int_56952783); Py_VISIT(traverse_module_state->__pyx_int_59113187); Py_VISIT(traverse_module_state->__pyx_int_59973580); Py_VISIT(traverse_module_state->__pyx_int_65652202); Py_VISIT(traverse_module_state->__pyx_int_67187364); Py_VISIT(traverse_module_state->__pyx_int_68348896); Py_VISIT(traverse_module_state->__pyx_int_69439193); Py_VISIT(traverse_module_state->__pyx_int_71361338); Py_VISIT(traverse_module_state->__pyx_int_71989837); Py_VISIT(traverse_module_state->__pyx_int_73886977); Py_VISIT(traverse_module_state->__pyx_int_76745901); Py_VISIT(traverse_module_state->__pyx_int_80339441); Py_VISIT(traverse_module_state->__pyx_int_86498115); Py_VISIT(traverse_module_state->__pyx_int_87055098); Py_VISIT(traverse_module_state->__pyx_int_87926185); Py_VISIT(traverse_module_state->__pyx_int_89106541); Py_VISIT(traverse_module_state->__pyx_int_89247923); Py_VISIT(traverse_module_state->__pyx_int_89365892); Py_VISIT(traverse_module_state->__pyx_int_90778316); Py_VISIT(traverse_module_state->__pyx_int_92337353); Py_VISIT(traverse_module_state->__pyx_int_99602557); Py_VISIT(traverse_module_state->__pyx_int_99761709); Py_VISIT(traverse_module_state->__pyx_int_100986846); Py_VISIT(traverse_module_state->__pyx_int_102462867); Py_VISIT(traverse_module_state->__pyx_int_105653666); Py_VISIT(traverse_module_state->__pyx_int_107165658); Py_VISIT(traverse_module_state->__pyx_int_108544010); Py_VISIT(traverse_module_state->__pyx_int_108979822); Py_VISIT(traverse_module_state->__pyx_int_109504843); Py_VISIT(traverse_module_state->__pyx_int_110427570); Py_VISIT(traverse_module_state->__pyx_int_113390162); Py_VISIT(traverse_module_state->__pyx_int_117447894); Py_VISIT(traverse_module_state->__pyx_int_119135242); Py_VISIT(traverse_module_state->__pyx_int_119633667); Py_VISIT(traverse_module_state->__pyx_int_119948357); Py_VISIT(traverse_module_state->__pyx_int_125047544); Py_VISIT(traverse_module_state->__pyx_int_128527296); Py_VISIT(traverse_module_state->__pyx_int_129659791); Py_VISIT(traverse_module_state->__pyx_int_129754538); Py_VISIT(traverse_module_state->__pyx_int_133418666); Py_VISIT(traverse_module_state->__pyx_int_133974869); Py_VISIT(traverse_module_state->__pyx_int_136250523); Py_VISIT(traverse_module_state->__pyx_int_137271932); Py_VISIT(traverse_module_state->__pyx_int_138366295); Py_VISIT(traverse_module_state->__pyx_int_138368889); Py_VISIT(traverse_module_state->__pyx_int_139355673); Py_VISIT(traverse_module_state->__pyx_int_141271449); Py_VISIT(traverse_module_state->__pyx_int_142562297); Py_VISIT(traverse_module_state->__pyx_int_148344969); Py_VISIT(traverse_module_state->__pyx_int_150756734); Py_VISIT(traverse_module_state->__pyx_int_151978152); Py_VISIT(traverse_module_state->__pyx_int_153188860); Py_VISIT(traverse_module_state->__pyx_int_154338282); Py_VISIT(traverse_module_state->__pyx_int_154416804); Py_VISIT(traverse_module_state->__pyx_int_155387426); Py_VISIT(traverse_module_state->__pyx_int_157010104); Py_VISIT(traverse_module_state->__pyx_int_157442187); Py_VISIT(traverse_module_state->__pyx_int_159314353); Py_VISIT(traverse_module_state->__pyx_int_169907618); Py_VISIT(traverse_module_state->__pyx_int_170060645); Py_VISIT(traverse_module_state->__pyx_int_172473893); Py_VISIT(traverse_module_state->__pyx_int_174143295); Py_VISIT(traverse_module_state->__pyx_int_179286492); Py_VISIT(traverse_module_state->__pyx_int_180344665); Py_VISIT(traverse_module_state->__pyx_int_185544032); Py_VISIT(traverse_module_state->__pyx_int_188225458); Py_VISIT(traverse_module_state->__pyx_int_188265286); Py_VISIT(traverse_module_state->__pyx_int_190713963); Py_VISIT(traverse_module_state->__pyx_int_191997942); Py_VISIT(traverse_module_state->__pyx_int_199009293); Py_VISIT(traverse_module_state->__pyx_int_200261128); Py_VISIT(traverse_module_state->__pyx_int_205695869); Py_VISIT(traverse_module_state->__pyx_int_206753745); Py_VISIT(traverse_module_state->__pyx_int_207700205); Py_VISIT(traverse_module_state->__pyx_int_210124308); Py_VISIT(traverse_module_state->__pyx_int_213378848); Py_VISIT(traverse_module_state->__pyx_int_217540299); Py_VISIT(traverse_module_state->__pyx_int_218312211); Py_VISIT(traverse_module_state->__pyx_int_218785721); Py_VISIT(traverse_module_state->__pyx_int_219789001); Py_VISIT(traverse_module_state->__pyx_int_226265099); Py_VISIT(traverse_module_state->__pyx_int_228146014); Py_VISIT(traverse_module_state->__pyx_int_228566110); Py_VISIT(traverse_module_state->__pyx_int_230529602); Py_VISIT(traverse_module_state->__pyx_int_232155009); Py_VISIT(traverse_module_state->__pyx_int_232429629); Py_VISIT(traverse_module_state->__pyx_int_238095282); Py_VISIT(traverse_module_state->__pyx_int_238659478); Py_VISIT(traverse_module_state->__pyx_int_240488784); Py_VISIT(traverse_module_state->__pyx_int_241521041); Py_VISIT(traverse_module_state->__pyx_int_242672649); Py_VISIT(traverse_module_state->__pyx_int_247471373); Py_VISIT(traverse_module_state->__pyx_int_249936757); Py_VISIT(traverse_module_state->__pyx_int_251535444); Py_VISIT(traverse_module_state->__pyx_int_251556977); Py_VISIT(traverse_module_state->__pyx_int_252475336); Py_VISIT(traverse_module_state->__pyx_int_253779918); Py_VISIT(traverse_module_state->__pyx_int_258009577); Py_VISIT(traverse_module_state->__pyx_int_259347467); Py_VISIT(traverse_module_state->__pyx_int_261406006); Py_VISIT(traverse_module_state->__pyx_int_262512166); Py_VISIT(traverse_module_state->__pyx_int_265699309); Py_VISIT(traverse_module_state->__pyx_int_266123853); Py_VISIT(traverse_module_state->__pyx_int_266904154); Py_VISIT(traverse_module_state->__pyx_int_267302923); Py_VISIT(traverse_module_state->__pyx_tuple__2); Py_VISIT(traverse_module_state->__pyx_tuple__4); Py_VISIT(traverse_module_state->__pyx_tuple__5); Py_VISIT(traverse_module_state->__pyx_tuple__6); Py_VISIT(traverse_module_state->__pyx_tuple__7); Py_VISIT(traverse_module_state->__pyx_tuple__8); Py_VISIT(traverse_module_state->__pyx_tuple__9); Py_VISIT(traverse_module_state->__pyx_tuple__10); Py_VISIT(traverse_module_state->__pyx_tuple__11); Py_VISIT(traverse_module_state->__pyx_tuple__12); Py_VISIT(traverse_module_state->__pyx_tuple__13); Py_VISIT(traverse_module_state->__pyx_tuple__14); Py_VISIT(traverse_module_state->__pyx_tuple__15); Py_VISIT(traverse_module_state->__pyx_tuple__16); Py_VISIT(traverse_module_state->__pyx_tuple__17); Py_VISIT(traverse_module_state->__pyx_tuple__18); Py_VISIT(traverse_module_state->__pyx_tuple__19); Py_VISIT(traverse_module_state->__pyx_tuple__20); Py_VISIT(traverse_module_state->__pyx_tuple__21); Py_VISIT(traverse_module_state->__pyx_tuple__22); Py_VISIT(traverse_module_state->__pyx_tuple__23); Py_VISIT(traverse_module_state->__pyx_tuple__24); Py_VISIT(traverse_module_state->__pyx_tuple__25); Py_VISIT(traverse_module_state->__pyx_tuple__26); Py_VISIT(traverse_module_state->__pyx_tuple__27); Py_VISIT(traverse_module_state->__pyx_tuple__28); Py_VISIT(traverse_module_state->__pyx_tuple__29); Py_VISIT(traverse_module_state->__pyx_tuple__30); Py_VISIT(traverse_module_state->__pyx_tuple__31); Py_VISIT(traverse_module_state->__pyx_tuple__32); Py_VISIT(traverse_module_state->__pyx_tuple__33); Py_VISIT(traverse_module_state->__pyx_tuple__34); Py_VISIT(traverse_module_state->__pyx_tuple__35); Py_VISIT(traverse_module_state->__pyx_tuple__36); Py_VISIT(traverse_module_state->__pyx_tuple__37); Py_VISIT(traverse_module_state->__pyx_tuple__38); Py_VISIT(traverse_module_state->__pyx_tuple__39); Py_VISIT(traverse_module_state->__pyx_tuple__40); Py_VISIT(traverse_module_state->__pyx_tuple__41); Py_VISIT(traverse_module_state->__pyx_tuple__42); Py_VISIT(traverse_module_state->__pyx_tuple__43); Py_VISIT(traverse_module_state->__pyx_tuple__44); Py_VISIT(traverse_module_state->__pyx_tuple__45); Py_VISIT(traverse_module_state->__pyx_tuple__46); Py_VISIT(traverse_module_state->__pyx_tuple__47); Py_VISIT(traverse_module_state->__pyx_tuple__49); Py_VISIT(traverse_module_state->__pyx_tuple__51); Py_VISIT(traverse_module_state->__pyx_tuple__142); Py_VISIT(traverse_module_state->__pyx_tuple__220); Py_VISIT(traverse_module_state->__pyx_tuple__222); Py_VISIT(traverse_module_state->__pyx_tuple__224); Py_VISIT(traverse_module_state->__pyx_tuple__226); Py_VISIT(traverse_module_state->__pyx_tuple__228); Py_VISIT(traverse_module_state->__pyx_tuple__230); Py_VISIT(traverse_module_state->__pyx_tuple__232); Py_VISIT(traverse_module_state->__pyx_codeobj__48); Py_VISIT(traverse_module_state->__pyx_codeobj__50); Py_VISIT(traverse_module_state->__pyx_codeobj__52); Py_VISIT(traverse_module_state->__pyx_codeobj__53); Py_VISIT(traverse_module_state->__pyx_codeobj__54); Py_VISIT(traverse_module_state->__pyx_codeobj__55); Py_VISIT(traverse_module_state->__pyx_codeobj__56); Py_VISIT(traverse_module_state->__pyx_codeobj__57); Py_VISIT(traverse_module_state->__pyx_codeobj__58); Py_VISIT(traverse_module_state->__pyx_codeobj__59); Py_VISIT(traverse_module_state->__pyx_codeobj__60); Py_VISIT(traverse_module_state->__pyx_codeobj__61); Py_VISIT(traverse_module_state->__pyx_codeobj__62); Py_VISIT(traverse_module_state->__pyx_codeobj__63); Py_VISIT(traverse_module_state->__pyx_codeobj__64); Py_VISIT(traverse_module_state->__pyx_codeobj__65); Py_VISIT(traverse_module_state->__pyx_codeobj__66); Py_VISIT(traverse_module_state->__pyx_codeobj__67); Py_VISIT(traverse_module_state->__pyx_codeobj__68); Py_VISIT(traverse_module_state->__pyx_codeobj__69); Py_VISIT(traverse_module_state->__pyx_codeobj__70); Py_VISIT(traverse_module_state->__pyx_codeobj__71); Py_VISIT(traverse_module_state->__pyx_codeobj__72); Py_VISIT(traverse_module_state->__pyx_codeobj__73); Py_VISIT(traverse_module_state->__pyx_codeobj__74); Py_VISIT(traverse_module_state->__pyx_codeobj__75); Py_VISIT(traverse_module_state->__pyx_codeobj__76); Py_VISIT(traverse_module_state->__pyx_codeobj__77); Py_VISIT(traverse_module_state->__pyx_codeobj__78); Py_VISIT(traverse_module_state->__pyx_codeobj__79); Py_VISIT(traverse_module_state->__pyx_codeobj__80); Py_VISIT(traverse_module_state->__pyx_codeobj__81); Py_VISIT(traverse_module_state->__pyx_codeobj__82); Py_VISIT(traverse_module_state->__pyx_codeobj__83); Py_VISIT(traverse_module_state->__pyx_codeobj__84); Py_VISIT(traverse_module_state->__pyx_codeobj__85); Py_VISIT(traverse_module_state->__pyx_codeobj__86); Py_VISIT(traverse_module_state->__pyx_codeobj__87); Py_VISIT(traverse_module_state->__pyx_codeobj__88); Py_VISIT(traverse_module_state->__pyx_codeobj__89); Py_VISIT(traverse_module_state->__pyx_codeobj__90); Py_VISIT(traverse_module_state->__pyx_codeobj__91); Py_VISIT(traverse_module_state->__pyx_codeobj__92); Py_VISIT(traverse_module_state->__pyx_codeobj__93); Py_VISIT(traverse_module_state->__pyx_codeobj__94); Py_VISIT(traverse_module_state->__pyx_codeobj__95); Py_VISIT(traverse_module_state->__pyx_codeobj__96); Py_VISIT(traverse_module_state->__pyx_codeobj__97); Py_VISIT(traverse_module_state->__pyx_codeobj__98); Py_VISIT(traverse_module_state->__pyx_codeobj__99); Py_VISIT(traverse_module_state->__pyx_codeobj__100); Py_VISIT(traverse_module_state->__pyx_codeobj__101); Py_VISIT(traverse_module_state->__pyx_codeobj__102); Py_VISIT(traverse_module_state->__pyx_codeobj__103); Py_VISIT(traverse_module_state->__pyx_codeobj__104); Py_VISIT(traverse_module_state->__pyx_codeobj__105); Py_VISIT(traverse_module_state->__pyx_codeobj__106); Py_VISIT(traverse_module_state->__pyx_codeobj__107); Py_VISIT(traverse_module_state->__pyx_codeobj__108); Py_VISIT(traverse_module_state->__pyx_codeobj__109); Py_VISIT(traverse_module_state->__pyx_codeobj__110); Py_VISIT(traverse_module_state->__pyx_codeobj__111); Py_VISIT(traverse_module_state->__pyx_codeobj__112); Py_VISIT(traverse_module_state->__pyx_codeobj__113); Py_VISIT(traverse_module_state->__pyx_codeobj__114); Py_VISIT(traverse_module_state->__pyx_codeobj__115); Py_VISIT(traverse_module_state->__pyx_codeobj__116); Py_VISIT(traverse_module_state->__pyx_codeobj__117); Py_VISIT(traverse_module_state->__pyx_codeobj__118); Py_VISIT(traverse_module_state->__pyx_codeobj__119); Py_VISIT(traverse_module_state->__pyx_codeobj__120); Py_VISIT(traverse_module_state->__pyx_codeobj__121); Py_VISIT(traverse_module_state->__pyx_codeobj__122); Py_VISIT(traverse_module_state->__pyx_codeobj__123); Py_VISIT(traverse_module_state->__pyx_codeobj__124); Py_VISIT(traverse_module_state->__pyx_codeobj__125); Py_VISIT(traverse_module_state->__pyx_codeobj__126); Py_VISIT(traverse_module_state->__pyx_codeobj__127); Py_VISIT(traverse_module_state->__pyx_codeobj__128); Py_VISIT(traverse_module_state->__pyx_codeobj__129); Py_VISIT(traverse_module_state->__pyx_codeobj__130); Py_VISIT(traverse_module_state->__pyx_codeobj__131); Py_VISIT(traverse_module_state->__pyx_codeobj__132); Py_VISIT(traverse_module_state->__pyx_codeobj__133); Py_VISIT(traverse_module_state->__pyx_codeobj__134); Py_VISIT(traverse_module_state->__pyx_codeobj__135); Py_VISIT(traverse_module_state->__pyx_codeobj__136); Py_VISIT(traverse_module_state->__pyx_codeobj__137); Py_VISIT(traverse_module_state->__pyx_codeobj__138); Py_VISIT(traverse_module_state->__pyx_codeobj__139); Py_VISIT(traverse_module_state->__pyx_codeobj__140); Py_VISIT(traverse_module_state->__pyx_codeobj__141); Py_VISIT(traverse_module_state->__pyx_codeobj__143); Py_VISIT(traverse_module_state->__pyx_codeobj__144); Py_VISIT(traverse_module_state->__pyx_codeobj__145); Py_VISIT(traverse_module_state->__pyx_codeobj__146); Py_VISIT(traverse_module_state->__pyx_codeobj__147); Py_VISIT(traverse_module_state->__pyx_codeobj__148); Py_VISIT(traverse_module_state->__pyx_codeobj__149); Py_VISIT(traverse_module_state->__pyx_codeobj__150); Py_VISIT(traverse_module_state->__pyx_codeobj__151); Py_VISIT(traverse_module_state->__pyx_codeobj__152); Py_VISIT(traverse_module_state->__pyx_codeobj__153); Py_VISIT(traverse_module_state->__pyx_codeobj__154); Py_VISIT(traverse_module_state->__pyx_codeobj__155); Py_VISIT(traverse_module_state->__pyx_codeobj__156); Py_VISIT(traverse_module_state->__pyx_codeobj__157); Py_VISIT(traverse_module_state->__pyx_codeobj__158); Py_VISIT(traverse_module_state->__pyx_codeobj__159); Py_VISIT(traverse_module_state->__pyx_codeobj__160); Py_VISIT(traverse_module_state->__pyx_codeobj__161); Py_VISIT(traverse_module_state->__pyx_codeobj__162); Py_VISIT(traverse_module_state->__pyx_codeobj__163); Py_VISIT(traverse_module_state->__pyx_codeobj__164); Py_VISIT(traverse_module_state->__pyx_codeobj__165); Py_VISIT(traverse_module_state->__pyx_codeobj__166); Py_VISIT(traverse_module_state->__pyx_codeobj__167); Py_VISIT(traverse_module_state->__pyx_codeobj__168); Py_VISIT(traverse_module_state->__pyx_codeobj__169); Py_VISIT(traverse_module_state->__pyx_codeobj__170); Py_VISIT(traverse_module_state->__pyx_codeobj__171); Py_VISIT(traverse_module_state->__pyx_codeobj__172); Py_VISIT(traverse_module_state->__pyx_codeobj__173); Py_VISIT(traverse_module_state->__pyx_codeobj__174); Py_VISIT(traverse_module_state->__pyx_codeobj__175); Py_VISIT(traverse_module_state->__pyx_codeobj__176); Py_VISIT(traverse_module_state->__pyx_codeobj__177); Py_VISIT(traverse_module_state->__pyx_codeobj__178); Py_VISIT(traverse_module_state->__pyx_codeobj__179); Py_VISIT(traverse_module_state->__pyx_codeobj__180); Py_VISIT(traverse_module_state->__pyx_codeobj__181); Py_VISIT(traverse_module_state->__pyx_codeobj__182); Py_VISIT(traverse_module_state->__pyx_codeobj__183); Py_VISIT(traverse_module_state->__pyx_codeobj__184); Py_VISIT(traverse_module_state->__pyx_codeobj__185); Py_VISIT(traverse_module_state->__pyx_codeobj__186); Py_VISIT(traverse_module_state->__pyx_codeobj__187); Py_VISIT(traverse_module_state->__pyx_codeobj__188); Py_VISIT(traverse_module_state->__pyx_codeobj__189); Py_VISIT(traverse_module_state->__pyx_codeobj__190); Py_VISIT(traverse_module_state->__pyx_codeobj__191); Py_VISIT(traverse_module_state->__pyx_codeobj__192); Py_VISIT(traverse_module_state->__pyx_codeobj__193); Py_VISIT(traverse_module_state->__pyx_codeobj__194); Py_VISIT(traverse_module_state->__pyx_codeobj__195); Py_VISIT(traverse_module_state->__pyx_codeobj__196); Py_VISIT(traverse_module_state->__pyx_codeobj__197); Py_VISIT(traverse_module_state->__pyx_codeobj__198); Py_VISIT(traverse_module_state->__pyx_codeobj__199); Py_VISIT(traverse_module_state->__pyx_codeobj__200); Py_VISIT(traverse_module_state->__pyx_codeobj__201); Py_VISIT(traverse_module_state->__pyx_codeobj__202); Py_VISIT(traverse_module_state->__pyx_codeobj__203); Py_VISIT(traverse_module_state->__pyx_codeobj__204); Py_VISIT(traverse_module_state->__pyx_codeobj__205); Py_VISIT(traverse_module_state->__pyx_codeobj__206); Py_VISIT(traverse_module_state->__pyx_codeobj__207); Py_VISIT(traverse_module_state->__pyx_codeobj__208); Py_VISIT(traverse_module_state->__pyx_codeobj__209); Py_VISIT(traverse_module_state->__pyx_codeobj__210); Py_VISIT(traverse_module_state->__pyx_codeobj__211); Py_VISIT(traverse_module_state->__pyx_codeobj__212); Py_VISIT(traverse_module_state->__pyx_codeobj__213); Py_VISIT(traverse_module_state->__pyx_codeobj__214); Py_VISIT(traverse_module_state->__pyx_codeobj__215); Py_VISIT(traverse_module_state->__pyx_codeobj__216); Py_VISIT(traverse_module_state->__pyx_codeobj__217); Py_VISIT(traverse_module_state->__pyx_codeobj__218); Py_VISIT(traverse_module_state->__pyx_codeobj__219); Py_VISIT(traverse_module_state->__pyx_codeobj__221); Py_VISIT(traverse_module_state->__pyx_codeobj__223); Py_VISIT(traverse_module_state->__pyx_codeobj__225); Py_VISIT(traverse_module_state->__pyx_codeobj__227); Py_VISIT(traverse_module_state->__pyx_codeobj__229); Py_VISIT(traverse_module_state->__pyx_codeobj__231); Py_VISIT(traverse_module_state->__pyx_codeobj__233); Py_VISIT(traverse_module_state->__pyx_codeobj__234); Py_VISIT(traverse_module_state->__pyx_codeobj__235); Py_VISIT(traverse_module_state->__pyx_codeobj__236); Py_VISIT(traverse_module_state->__pyx_codeobj__237); Py_VISIT(traverse_module_state->__pyx_codeobj__238); Py_VISIT(traverse_module_state->__pyx_codeobj__239); Py_VISIT(traverse_module_state->__pyx_codeobj__240); Py_VISIT(traverse_module_state->__pyx_codeobj__241); Py_VISIT(traverse_module_state->__pyx_codeobj__242); Py_VISIT(traverse_module_state->__pyx_codeobj__243); Py_VISIT(traverse_module_state->__pyx_codeobj__244); Py_VISIT(traverse_module_state->__pyx_codeobj__245); Py_VISIT(traverse_module_state->__pyx_codeobj__246); Py_VISIT(traverse_module_state->__pyx_codeobj__247); Py_VISIT(traverse_module_state->__pyx_codeobj__248); Py_VISIT(traverse_module_state->__pyx_codeobj__249); Py_VISIT(traverse_module_state->__pyx_codeobj__250); Py_VISIT(traverse_module_state->__pyx_codeobj__251); Py_VISIT(traverse_module_state->__pyx_codeobj__252); Py_VISIT(traverse_module_state->__pyx_codeobj__253); Py_VISIT(traverse_module_state->__pyx_codeobj__254); Py_VISIT(traverse_module_state->__pyx_codeobj__255); Py_VISIT(traverse_module_state->__pyx_codeobj__256); Py_VISIT(traverse_module_state->__pyx_codeobj__257); Py_VISIT(traverse_module_state->__pyx_codeobj__258); Py_VISIT(traverse_module_state->__pyx_codeobj__259); Py_VISIT(traverse_module_state->__pyx_codeobj__260); Py_VISIT(traverse_module_state->__pyx_codeobj__261); Py_VISIT(traverse_module_state->__pyx_codeobj__262); Py_VISIT(traverse_module_state->__pyx_codeobj__263); Py_VISIT(traverse_module_state->__pyx_codeobj__264); Py_VISIT(traverse_module_state->__pyx_codeobj__265); Py_VISIT(traverse_module_state->__pyx_codeobj__266); Py_VISIT(traverse_module_state->__pyx_codeobj__267); Py_VISIT(traverse_module_state->__pyx_codeobj__268); Py_VISIT(traverse_module_state->__pyx_codeobj__269); Py_VISIT(traverse_module_state->__pyx_codeobj__270); Py_VISIT(traverse_module_state->__pyx_codeobj__271); Py_VISIT(traverse_module_state->__pyx_codeobj__272); Py_VISIT(traverse_module_state->__pyx_codeobj__273); Py_VISIT(traverse_module_state->__pyx_codeobj__274); Py_VISIT(traverse_module_state->__pyx_codeobj__275); Py_VISIT(traverse_module_state->__pyx_codeobj__276); Py_VISIT(traverse_module_state->__pyx_codeobj__277); Py_VISIT(traverse_module_state->__pyx_codeobj__278); Py_VISIT(traverse_module_state->__pyx_codeobj__279); Py_VISIT(traverse_module_state->__pyx_codeobj__280); Py_VISIT(traverse_module_state->__pyx_codeobj__281); Py_VISIT(traverse_module_state->__pyx_codeobj__282); Py_VISIT(traverse_module_state->__pyx_codeobj__283); Py_VISIT(traverse_module_state->__pyx_codeobj__284); Py_VISIT(traverse_module_state->__pyx_codeobj__285); Py_VISIT(traverse_module_state->__pyx_codeobj__286); Py_VISIT(traverse_module_state->__pyx_codeobj__287); Py_VISIT(traverse_module_state->__pyx_codeobj__288); Py_VISIT(traverse_module_state->__pyx_codeobj__289); Py_VISIT(traverse_module_state->__pyx_codeobj__290); Py_VISIT(traverse_module_state->__pyx_codeobj__291); Py_VISIT(traverse_module_state->__pyx_codeobj__292); return 0; } #endif /* #### Code section: module_state_defines ### */ #define __pyx_d __pyx_mstate_global->__pyx_d #define __pyx_b __pyx_mstate_global->__pyx_b #define __pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime #define __pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple #define __pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes #define __pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode #ifdef __Pyx_CyFunction_USED #define __pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType #endif #ifdef __Pyx_FusedFunction_USED #define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType #endif #ifdef __Pyx_Generator_USED #define __pyx_GeneratorType __pyx_mstate_global->__pyx_GeneratorType #endif #ifdef __Pyx_IterableCoroutine_USED #define __pyx_IterableCoroutineType __pyx_mstate_global->__pyx_IterableCoroutineType #endif #ifdef __Pyx_Coroutine_USED #define __pyx_CoroutineAwaitType __pyx_mstate_global->__pyx_CoroutineAwaitType #endif #ifdef __Pyx_Coroutine_USED #define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #define __pyx_ptype_7cpython_4type_type __pyx_mstate_global->__pyx_ptype_7cpython_4type_type #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #define __pyx_ptype_7cpython_4bool_bool __pyx_mstate_global->__pyx_ptype_7cpython_4bool_bool #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #define __pyx_ptype_7cpython_7complex_complex __pyx_mstate_global->__pyx_ptype_7cpython_7complex_complex #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #define __pyx_type_9apischema_15deserialization_7methods_Constraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_Constraint #define __pyx_type_9apischema_15deserialization_7methods_MinimumConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint #define __pyx_type_9apischema_15deserialization_7methods_MaximumConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint #define __pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint #define __pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint #define __pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint #define __pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint #define __pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint #define __pyx_type_9apischema_15deserialization_7methods_PatternConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_PatternConstraint #define __pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint #define __pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint #define __pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint #define __pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint #define __pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint #define __pyx_type_9apischema_15deserialization_7methods_DeserializationMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod #define __pyx_type_9apischema_15deserialization_7methods_RecMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_RecMethod #define __pyx_type_9apischema_15deserialization_7methods_ValidatorMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod #define __pyx_type_9apischema_15deserialization_7methods_CoercerMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_CoercerMethod #define __pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod #define __pyx_type_9apischema_15deserialization_7methods_AnyMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_AnyMethod #define __pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod #define __pyx_type_9apischema_15deserialization_7methods_ListMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ListMethod #define __pyx_type_9apischema_15deserialization_7methods_SetMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_SetMethod #define __pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod #define __pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod #define __pyx_type_9apischema_15deserialization_7methods_LiteralMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_LiteralMethod #define __pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly #define __pyx_type_9apischema_15deserialization_7methods_MappingMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_MappingMethod #define __pyx_type_9apischema_15deserialization_7methods_Field __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_Field #define __pyx_type_9apischema_15deserialization_7methods_FlattenedField __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_FlattenedField #define __pyx_type_9apischema_15deserialization_7methods_PatternField __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_PatternField #define __pyx_type_9apischema_15deserialization_7methods_AdditionalField __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_AdditionalField #define __pyx_type_9apischema_15deserialization_7methods_Constructor __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_Constructor #define __pyx_type_9apischema_15deserialization_7methods_NoConstructor __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_NoConstructor #define __pyx_type_9apischema_15deserialization_7methods_RawConstructor __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_RawConstructor #define __pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy #define __pyx_type_9apischema_15deserialization_7methods_DefaultField __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_DefaultField #define __pyx_type_9apischema_15deserialization_7methods_FactoryField __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_FactoryField #define __pyx_type_9apischema_15deserialization_7methods_FieldsConstructor __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor #define __pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod #define __pyx_type_9apischema_15deserialization_7methods_ObjectMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ObjectMethod #define __pyx_type_9apischema_15deserialization_7methods_NoneMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_NoneMethod #define __pyx_type_9apischema_15deserialization_7methods_IntMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_IntMethod #define __pyx_type_9apischema_15deserialization_7methods_FloatMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_FloatMethod #define __pyx_type_9apischema_15deserialization_7methods_StrMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_StrMethod #define __pyx_type_9apischema_15deserialization_7methods_BoolMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_BoolMethod #define __pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod #define __pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod #define __pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod #define __pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod #define __pyx_type_9apischema_15deserialization_7methods_TupleMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_TupleMethod #define __pyx_type_9apischema_15deserialization_7methods_OptionalMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_OptionalMethod #define __pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod #define __pyx_type_9apischema_15deserialization_7methods_UnionMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_UnionMethod #define __pyx_type_9apischema_15deserialization_7methods_ConversionMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConversionMethod #define __pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod #define __pyx_type_9apischema_15deserialization_7methods_ConversionAlternative __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative #define __pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod #define __pyx_type_9apischema_15deserialization_7methods_Discriminated __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_Discriminated #define __pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod #define __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize #define __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr __pyx_mstate_global->__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr #endif #define __pyx_ptype_9apischema_15deserialization_7methods_Constraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_Constraint #define __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint #define __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod #define __pyx_ptype_9apischema_15deserialization_7methods_RecMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_RecMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod #define __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod #define __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod #define __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ListMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ListMethod #define __pyx_ptype_9apischema_15deserialization_7methods_SetMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_SetMethod #define __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod #define __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod #define __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod #define __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly #define __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod #define __pyx_ptype_9apischema_15deserialization_7methods_Field __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_Field #define __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField #define __pyx_ptype_9apischema_15deserialization_7methods_PatternField __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_PatternField #define __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField #define __pyx_ptype_9apischema_15deserialization_7methods_Constructor __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_Constructor #define __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor #define __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor #define __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy #define __pyx_ptype_9apischema_15deserialization_7methods_DefaultField __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_DefaultField #define __pyx_ptype_9apischema_15deserialization_7methods_FactoryField __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_FactoryField #define __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor #define __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod #define __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod #define __pyx_ptype_9apischema_15deserialization_7methods_IntMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_IntMethod #define __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod #define __pyx_ptype_9apischema_15deserialization_7methods_StrMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_StrMethod #define __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod #define __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod #define __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod #define __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod #define __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod #define __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod #define __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative #define __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod #define __pyx_ptype_9apischema_15deserialization_7methods_Discriminated __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_Discriminated #define __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod #define __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize #define __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr __pyx_mstate_global->__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr #define __pyx_kp_u_ __pyx_mstate_global->__pyx_kp_u_ #define __pyx_n_s_AbstractSet __pyx_mstate_global->__pyx_n_s_AbstractSet #define __pyx_n_s_AdditionalField __pyx_mstate_global->__pyx_n_s_AdditionalField #define __pyx_n_s_AdditionalField___reduce_cython __pyx_mstate_global->__pyx_n_s_AdditionalField___reduce_cython #define __pyx_n_s_AdditionalField___setstate_cytho __pyx_mstate_global->__pyx_n_s_AdditionalField___setstate_cytho #define __pyx_n_s_Aliaser __pyx_mstate_global->__pyx_n_s_Aliaser #define __pyx_n_s_Any __pyx_mstate_global->__pyx_n_s_Any #define __pyx_n_s_AnyMethod __pyx_mstate_global->__pyx_n_s_AnyMethod #define __pyx_n_s_AnyMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_AnyMethod___reduce_cython #define __pyx_n_s_AnyMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_AnyMethod___setstate_cython #define __pyx_n_s_AnyMethod_deserialize __pyx_mstate_global->__pyx_n_s_AnyMethod_deserialize #define __pyx_n_s_AnyType __pyx_mstate_global->__pyx_n_s_AnyType #define __pyx_n_s_AssertionError __pyx_mstate_global->__pyx_n_s_AssertionError #define __pyx_n_s_BoolMethod __pyx_mstate_global->__pyx_n_s_BoolMethod #define __pyx_n_s_BoolMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_BoolMethod___reduce_cython #define __pyx_n_s_BoolMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_BoolMethod___setstate_cython #define __pyx_n_s_BoolMethod_deserialize __pyx_mstate_global->__pyx_n_s_BoolMethod_deserialize #define __pyx_n_s_Callable __pyx_mstate_global->__pyx_n_s_Callable #define __pyx_n_s_Coercer __pyx_mstate_global->__pyx_n_s_Coercer #define __pyx_n_s_CoercerMethod __pyx_mstate_global->__pyx_n_s_CoercerMethod #define __pyx_n_s_CoercerMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_CoercerMethod___reduce_cython #define __pyx_n_s_CoercerMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_CoercerMethod___setstate_cython #define __pyx_n_s_CoercerMethod_deserialize __pyx_mstate_global->__pyx_n_s_CoercerMethod_deserialize #define __pyx_n_s_ConstrainedFloatMethod __pyx_mstate_global->__pyx_n_s_ConstrainedFloatMethod #define __pyx_n_s_ConstrainedFloatMethod___reduce __pyx_mstate_global->__pyx_n_s_ConstrainedFloatMethod___reduce #define __pyx_n_s_ConstrainedFloatMethod___setstat __pyx_mstate_global->__pyx_n_s_ConstrainedFloatMethod___setstat #define __pyx_n_s_ConstrainedFloatMethod_deseriali __pyx_mstate_global->__pyx_n_s_ConstrainedFloatMethod_deseriali #define __pyx_n_s_ConstrainedIntMethod __pyx_mstate_global->__pyx_n_s_ConstrainedIntMethod #define __pyx_n_s_ConstrainedIntMethod___reduce_cy __pyx_mstate_global->__pyx_n_s_ConstrainedIntMethod___reduce_cy #define __pyx_n_s_ConstrainedIntMethod___setstate __pyx_mstate_global->__pyx_n_s_ConstrainedIntMethod___setstate #define __pyx_n_s_ConstrainedIntMethod_deserialize __pyx_mstate_global->__pyx_n_s_ConstrainedIntMethod_deserialize #define __pyx_n_s_ConstrainedStrMethod __pyx_mstate_global->__pyx_n_s_ConstrainedStrMethod #define __pyx_n_s_ConstrainedStrMethod___reduce_cy __pyx_mstate_global->__pyx_n_s_ConstrainedStrMethod___reduce_cy #define __pyx_n_s_ConstrainedStrMethod___setstate __pyx_mstate_global->__pyx_n_s_ConstrainedStrMethod___setstate #define __pyx_n_s_ConstrainedStrMethod_deserialize __pyx_mstate_global->__pyx_n_s_ConstrainedStrMethod_deserialize #define __pyx_n_s_Constraint __pyx_mstate_global->__pyx_n_s_Constraint #define __pyx_n_s_Constraint___reduce_cython __pyx_mstate_global->__pyx_n_s_Constraint___reduce_cython #define __pyx_n_s_Constraint___setstate_cython __pyx_mstate_global->__pyx_n_s_Constraint___setstate_cython #define __pyx_n_s_Constructor __pyx_mstate_global->__pyx_n_s_Constructor #define __pyx_n_s_Constructor___reduce_cython __pyx_mstate_global->__pyx_n_s_Constructor___reduce_cython #define __pyx_n_s_Constructor___setstate_cython __pyx_mstate_global->__pyx_n_s_Constructor___setstate_cython #define __pyx_n_s_ConversionAlternative __pyx_mstate_global->__pyx_n_s_ConversionAlternative #define __pyx_n_s_ConversionAlternative___reduce_c __pyx_mstate_global->__pyx_n_s_ConversionAlternative___reduce_c #define __pyx_n_s_ConversionAlternative___setstate __pyx_mstate_global->__pyx_n_s_ConversionAlternative___setstate #define __pyx_n_s_ConversionMethod __pyx_mstate_global->__pyx_n_s_ConversionMethod #define __pyx_n_s_ConversionMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_ConversionMethod___reduce_cython #define __pyx_n_s_ConversionMethod___setstate_cyth __pyx_mstate_global->__pyx_n_s_ConversionMethod___setstate_cyth #define __pyx_n_s_ConversionMethod_deserialize __pyx_mstate_global->__pyx_n_s_ConversionMethod_deserialize #define __pyx_n_s_ConversionUnionMethod __pyx_mstate_global->__pyx_n_s_ConversionUnionMethod #define __pyx_n_s_ConversionUnionMethod___reduce_c __pyx_mstate_global->__pyx_n_s_ConversionUnionMethod___reduce_c #define __pyx_n_s_ConversionUnionMethod___setstate __pyx_mstate_global->__pyx_n_s_ConversionUnionMethod___setstate #define __pyx_n_s_ConversionUnionMethod_deserializ __pyx_mstate_global->__pyx_n_s_ConversionUnionMethod_deserializ #define __pyx_n_s_ConversionWithValueErrorMethod __pyx_mstate_global->__pyx_n_s_ConversionWithValueErrorMethod #define __pyx_n_s_ConversionWithValueErrorMethod_2 __pyx_mstate_global->__pyx_n_s_ConversionWithValueErrorMethod_2 #define __pyx_n_s_ConversionWithValueErrorMethod_3 __pyx_mstate_global->__pyx_n_s_ConversionWithValueErrorMethod_3 #define __pyx_n_s_ConversionWithValueErrorMethod_d __pyx_mstate_global->__pyx_n_s_ConversionWithValueErrorMethod_d #define __pyx_n_s_Converter __pyx_mstate_global->__pyx_n_s_Converter #define __pyx_n_s_DefaultField __pyx_mstate_global->__pyx_n_s_DefaultField #define __pyx_n_s_DefaultField___reduce_cython __pyx_mstate_global->__pyx_n_s_DefaultField___reduce_cython #define __pyx_n_s_DefaultField___setstate_cython __pyx_mstate_global->__pyx_n_s_DefaultField___setstate_cython #define __pyx_n_s_DeserializationMethod __pyx_mstate_global->__pyx_n_s_DeserializationMethod #define __pyx_n_s_DeserializationMethod___reduce_c __pyx_mstate_global->__pyx_n_s_DeserializationMethod___reduce_c #define __pyx_n_s_DeserializationMethod___setstate __pyx_mstate_global->__pyx_n_s_DeserializationMethod___setstate #define __pyx_n_s_Dict __pyx_mstate_global->__pyx_n_s_Dict #define __pyx_n_s_Discriminated __pyx_mstate_global->__pyx_n_s_Discriminated #define __pyx_n_s_Discriminated___reduce_cython __pyx_mstate_global->__pyx_n_s_Discriminated___reduce_cython #define __pyx_n_s_Discriminated___setstate_cython __pyx_mstate_global->__pyx_n_s_Discriminated___setstate_cython #define __pyx_n_s_DiscriminatorMethod __pyx_mstate_global->__pyx_n_s_DiscriminatorMethod #define __pyx_n_s_DiscriminatorMethod___reduce_cyt __pyx_mstate_global->__pyx_n_s_DiscriminatorMethod___reduce_cyt #define __pyx_n_s_DiscriminatorMethod___setstate_c __pyx_mstate_global->__pyx_n_s_DiscriminatorMethod___setstate_c #define __pyx_n_s_DiscriminatorMethod_deserialize __pyx_mstate_global->__pyx_n_s_DiscriminatorMethod_deserialize #define __pyx_n_s_ErrorKey __pyx_mstate_global->__pyx_n_s_ErrorKey #define __pyx_n_s_ErrorMsg __pyx_mstate_global->__pyx_n_s_ErrorMsg #define __pyx_n_s_ExclusiveMaximumConstraint __pyx_mstate_global->__pyx_n_s_ExclusiveMaximumConstraint #define __pyx_n_s_ExclusiveMaximumConstraint___red __pyx_mstate_global->__pyx_n_s_ExclusiveMaximumConstraint___red #define __pyx_n_s_ExclusiveMaximumConstraint___set __pyx_mstate_global->__pyx_n_s_ExclusiveMaximumConstraint___set #define __pyx_n_s_ExclusiveMaximumConstraint_valid __pyx_mstate_global->__pyx_n_s_ExclusiveMaximumConstraint_valid #define __pyx_n_s_ExclusiveMinimumConstraint __pyx_mstate_global->__pyx_n_s_ExclusiveMinimumConstraint #define __pyx_n_s_ExclusiveMinimumConstraint___red __pyx_mstate_global->__pyx_n_s_ExclusiveMinimumConstraint___red #define __pyx_n_s_ExclusiveMinimumConstraint___set __pyx_mstate_global->__pyx_n_s_ExclusiveMinimumConstraint___set #define __pyx_n_s_ExclusiveMinimumConstraint_valid __pyx_mstate_global->__pyx_n_s_ExclusiveMinimumConstraint_valid #define __pyx_n_s_FactoryField __pyx_mstate_global->__pyx_n_s_FactoryField #define __pyx_n_s_FactoryField___reduce_cython __pyx_mstate_global->__pyx_n_s_FactoryField___reduce_cython #define __pyx_n_s_FactoryField___setstate_cython __pyx_mstate_global->__pyx_n_s_FactoryField___setstate_cython #define __pyx_n_s_Field __pyx_mstate_global->__pyx_n_s_Field #define __pyx_n_s_Field___reduce_cython __pyx_mstate_global->__pyx_n_s_Field___reduce_cython #define __pyx_n_s_Field___setstate_cython __pyx_mstate_global->__pyx_n_s_Field___setstate_cython #define __pyx_n_s_FieldsConstructor __pyx_mstate_global->__pyx_n_s_FieldsConstructor #define __pyx_n_s_FieldsConstructor___reduce_cytho __pyx_mstate_global->__pyx_n_s_FieldsConstructor___reduce_cytho #define __pyx_n_s_FieldsConstructor___setstate_cyt __pyx_mstate_global->__pyx_n_s_FieldsConstructor___setstate_cyt #define __pyx_n_s_FieldsConstructor_construct __pyx_mstate_global->__pyx_n_s_FieldsConstructor_construct #define __pyx_n_s_FlattenedField __pyx_mstate_global->__pyx_n_s_FlattenedField #define __pyx_n_s_FlattenedField___reduce_cython __pyx_mstate_global->__pyx_n_s_FlattenedField___reduce_cython #define __pyx_n_s_FlattenedField___setstate_cython __pyx_mstate_global->__pyx_n_s_FlattenedField___setstate_cython #define __pyx_n_s_FloatMethod __pyx_mstate_global->__pyx_n_s_FloatMethod #define __pyx_n_s_FloatMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_FloatMethod___reduce_cython #define __pyx_n_s_FloatMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_FloatMethod___setstate_cython #define __pyx_n_s_FloatMethod_deserialize __pyx_mstate_global->__pyx_n_s_FloatMethod_deserialize #define __pyx_n_s_FrozenSetMethod __pyx_mstate_global->__pyx_n_s_FrozenSetMethod #define __pyx_n_s_FrozenSetMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_FrozenSetMethod___reduce_cython #define __pyx_n_s_FrozenSetMethod___setstate_cytho __pyx_mstate_global->__pyx_n_s_FrozenSetMethod___setstate_cytho #define __pyx_n_s_FrozenSetMethod_deserialize __pyx_mstate_global->__pyx_n_s_FrozenSetMethod_deserialize #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8 #define __pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9 __pyx_mstate_global->__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9 #define __pyx_n_s_IndexError __pyx_mstate_global->__pyx_n_s_IndexError #define __pyx_n_s_IntMethod __pyx_mstate_global->__pyx_n_s_IntMethod #define __pyx_n_s_IntMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_IntMethod___reduce_cython #define __pyx_n_s_IntMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_IntMethod___setstate_cython #define __pyx_n_s_IntMethod_deserialize __pyx_mstate_global->__pyx_n_s_IntMethod_deserialize #define __pyx_n_s_KeyError __pyx_mstate_global->__pyx_n_s_KeyError #define __pyx_n_s_Lazy __pyx_mstate_global->__pyx_n_s_Lazy #define __pyx_n_s_List __pyx_mstate_global->__pyx_n_s_List #define __pyx_n_s_ListCheckOnlyMethod __pyx_mstate_global->__pyx_n_s_ListCheckOnlyMethod #define __pyx_n_s_ListCheckOnlyMethod___reduce_cyt __pyx_mstate_global->__pyx_n_s_ListCheckOnlyMethod___reduce_cyt #define __pyx_n_s_ListCheckOnlyMethod___setstate_c __pyx_mstate_global->__pyx_n_s_ListCheckOnlyMethod___setstate_c #define __pyx_n_s_ListCheckOnlyMethod_deserialize __pyx_mstate_global->__pyx_n_s_ListCheckOnlyMethod_deserialize #define __pyx_n_s_ListMethod __pyx_mstate_global->__pyx_n_s_ListMethod #define __pyx_n_s_ListMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_ListMethod___reduce_cython #define __pyx_n_s_ListMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_ListMethod___setstate_cython #define __pyx_n_s_ListMethod_deserialize __pyx_mstate_global->__pyx_n_s_ListMethod_deserialize #define __pyx_n_s_LiteralMethod __pyx_mstate_global->__pyx_n_s_LiteralMethod #define __pyx_n_s_LiteralMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_LiteralMethod___reduce_cython #define __pyx_n_s_LiteralMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_LiteralMethod___setstate_cython #define __pyx_n_s_LiteralMethod_deserialize __pyx_mstate_global->__pyx_n_s_LiteralMethod_deserialize #define __pyx_n_s_Mapping __pyx_mstate_global->__pyx_n_s_Mapping #define __pyx_n_s_MappingCheckOnly __pyx_mstate_global->__pyx_n_s_MappingCheckOnly #define __pyx_n_s_MappingCheckOnly___reduce_cython __pyx_mstate_global->__pyx_n_s_MappingCheckOnly___reduce_cython #define __pyx_n_s_MappingCheckOnly___setstate_cyth __pyx_mstate_global->__pyx_n_s_MappingCheckOnly___setstate_cyth #define __pyx_n_s_MappingCheckOnly_deserialize __pyx_mstate_global->__pyx_n_s_MappingCheckOnly_deserialize #define __pyx_n_s_MappingMethod __pyx_mstate_global->__pyx_n_s_MappingMethod #define __pyx_n_s_MappingMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_MappingMethod___reduce_cython #define __pyx_n_s_MappingMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_MappingMethod___setstate_cython #define __pyx_n_s_MappingMethod_deserialize __pyx_mstate_global->__pyx_n_s_MappingMethod_deserialize #define __pyx_n_s_MaxItemsConstraint __pyx_mstate_global->__pyx_n_s_MaxItemsConstraint #define __pyx_n_s_MaxItemsConstraint___reduce_cyth __pyx_mstate_global->__pyx_n_s_MaxItemsConstraint___reduce_cyth #define __pyx_n_s_MaxItemsConstraint___setstate_cy __pyx_mstate_global->__pyx_n_s_MaxItemsConstraint___setstate_cy #define __pyx_n_s_MaxItemsConstraint_validate __pyx_mstate_global->__pyx_n_s_MaxItemsConstraint_validate #define __pyx_n_s_MaxLengthConstraint __pyx_mstate_global->__pyx_n_s_MaxLengthConstraint #define __pyx_n_s_MaxLengthConstraint___reduce_cyt __pyx_mstate_global->__pyx_n_s_MaxLengthConstraint___reduce_cyt #define __pyx_n_s_MaxLengthConstraint___setstate_c __pyx_mstate_global->__pyx_n_s_MaxLengthConstraint___setstate_c #define __pyx_n_s_MaxLengthConstraint_validate __pyx_mstate_global->__pyx_n_s_MaxLengthConstraint_validate #define __pyx_n_s_MaxPropertiesConstraint __pyx_mstate_global->__pyx_n_s_MaxPropertiesConstraint #define __pyx_n_s_MaxPropertiesConstraint___reduce __pyx_mstate_global->__pyx_n_s_MaxPropertiesConstraint___reduce #define __pyx_n_s_MaxPropertiesConstraint___setsta __pyx_mstate_global->__pyx_n_s_MaxPropertiesConstraint___setsta #define __pyx_n_s_MaxPropertiesConstraint_validate __pyx_mstate_global->__pyx_n_s_MaxPropertiesConstraint_validate #define __pyx_n_s_MaximumConstraint __pyx_mstate_global->__pyx_n_s_MaximumConstraint #define __pyx_n_s_MaximumConstraint___reduce_cytho __pyx_mstate_global->__pyx_n_s_MaximumConstraint___reduce_cytho #define __pyx_n_s_MaximumConstraint___setstate_cyt __pyx_mstate_global->__pyx_n_s_MaximumConstraint___setstate_cyt #define __pyx_n_s_MaximumConstraint_validate __pyx_mstate_global->__pyx_n_s_MaximumConstraint_validate #define __pyx_n_s_MinItemsConstraint __pyx_mstate_global->__pyx_n_s_MinItemsConstraint #define __pyx_n_s_MinItemsConstraint___reduce_cyth __pyx_mstate_global->__pyx_n_s_MinItemsConstraint___reduce_cyth #define __pyx_n_s_MinItemsConstraint___setstate_cy __pyx_mstate_global->__pyx_n_s_MinItemsConstraint___setstate_cy #define __pyx_n_s_MinItemsConstraint_validate __pyx_mstate_global->__pyx_n_s_MinItemsConstraint_validate #define __pyx_n_s_MinLengthConstraint __pyx_mstate_global->__pyx_n_s_MinLengthConstraint #define __pyx_n_s_MinLengthConstraint___reduce_cyt __pyx_mstate_global->__pyx_n_s_MinLengthConstraint___reduce_cyt #define __pyx_n_s_MinLengthConstraint___setstate_c __pyx_mstate_global->__pyx_n_s_MinLengthConstraint___setstate_c #define __pyx_n_s_MinLengthConstraint_validate __pyx_mstate_global->__pyx_n_s_MinLengthConstraint_validate #define __pyx_n_s_MinPropertiesConstraint __pyx_mstate_global->__pyx_n_s_MinPropertiesConstraint #define __pyx_n_s_MinPropertiesConstraint___reduce __pyx_mstate_global->__pyx_n_s_MinPropertiesConstraint___reduce #define __pyx_n_s_MinPropertiesConstraint___setsta __pyx_mstate_global->__pyx_n_s_MinPropertiesConstraint___setsta #define __pyx_n_s_MinPropertiesConstraint_validate __pyx_mstate_global->__pyx_n_s_MinPropertiesConstraint_validate #define __pyx_n_s_MinimumConstraint __pyx_mstate_global->__pyx_n_s_MinimumConstraint #define __pyx_n_s_MinimumConstraint___reduce_cytho __pyx_mstate_global->__pyx_n_s_MinimumConstraint___reduce_cytho #define __pyx_n_s_MinimumConstraint___setstate_cyt __pyx_mstate_global->__pyx_n_s_MinimumConstraint___setstate_cyt #define __pyx_n_s_MinimumConstraint_validate __pyx_mstate_global->__pyx_n_s_MinimumConstraint_validate #define __pyx_n_s_MultipleOfConstraint __pyx_mstate_global->__pyx_n_s_MultipleOfConstraint #define __pyx_n_s_MultipleOfConstraint___reduce_cy __pyx_mstate_global->__pyx_n_s_MultipleOfConstraint___reduce_cy #define __pyx_n_s_MultipleOfConstraint___setstate __pyx_mstate_global->__pyx_n_s_MultipleOfConstraint___setstate #define __pyx_n_s_MultipleOfConstraint_validate __pyx_mstate_global->__pyx_n_s_MultipleOfConstraint_validate #define __pyx_n_s_NoConstructor __pyx_mstate_global->__pyx_n_s_NoConstructor #define __pyx_n_s_NoConstructor___reduce_cython __pyx_mstate_global->__pyx_n_s_NoConstructor___reduce_cython #define __pyx_n_s_NoConstructor___setstate_cython __pyx_mstate_global->__pyx_n_s_NoConstructor___setstate_cython #define __pyx_n_s_NoConstructor_construct __pyx_mstate_global->__pyx_n_s_NoConstructor_construct #define __pyx_n_s_NoneMethod __pyx_mstate_global->__pyx_n_s_NoneMethod #define __pyx_n_s_NoneMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_NoneMethod___reduce_cython #define __pyx_n_s_NoneMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_NoneMethod___setstate_cython #define __pyx_n_s_NoneMethod_deserialize __pyx_mstate_global->__pyx_n_s_NoneMethod_deserialize #define __pyx_n_s_NoneType __pyx_mstate_global->__pyx_n_s_NoneType #define __pyx_n_s_NotImplementedError __pyx_mstate_global->__pyx_n_s_NotImplementedError #define __pyx_n_s_ObjectMethod __pyx_mstate_global->__pyx_n_s_ObjectMethod #define __pyx_n_s_ObjectMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_ObjectMethod___reduce_cython #define __pyx_n_s_ObjectMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_ObjectMethod___setstate_cython #define __pyx_n_s_ObjectMethod_deserialize __pyx_mstate_global->__pyx_n_s_ObjectMethod_deserialize #define __pyx_n_s_Optional __pyx_mstate_global->__pyx_n_s_Optional #define __pyx_n_s_OptionalMethod __pyx_mstate_global->__pyx_n_s_OptionalMethod #define __pyx_n_s_OptionalMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_OptionalMethod___reduce_cython #define __pyx_n_s_OptionalMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_OptionalMethod___setstate_cython #define __pyx_n_s_OptionalMethod_deserialize __pyx_mstate_global->__pyx_n_s_OptionalMethod_deserialize #define __pyx_n_s_Pattern __pyx_mstate_global->__pyx_n_s_Pattern #define __pyx_n_s_PatternConstraint __pyx_mstate_global->__pyx_n_s_PatternConstraint #define __pyx_n_s_PatternConstraint___reduce_cytho __pyx_mstate_global->__pyx_n_s_PatternConstraint___reduce_cytho #define __pyx_n_s_PatternConstraint___setstate_cyt __pyx_mstate_global->__pyx_n_s_PatternConstraint___setstate_cyt #define __pyx_n_s_PatternConstraint_validate __pyx_mstate_global->__pyx_n_s_PatternConstraint_validate #define __pyx_n_s_PatternField __pyx_mstate_global->__pyx_n_s_PatternField #define __pyx_n_s_PatternField___reduce_cython __pyx_mstate_global->__pyx_n_s_PatternField___reduce_cython #define __pyx_n_s_PatternField___setstate_cython __pyx_mstate_global->__pyx_n_s_PatternField___setstate_cython #define __pyx_n_s_PickleError __pyx_mstate_global->__pyx_n_s_PickleError #define __pyx_n_s_RawConstructor __pyx_mstate_global->__pyx_n_s_RawConstructor #define __pyx_n_s_RawConstructorCopy __pyx_mstate_global->__pyx_n_s_RawConstructorCopy #define __pyx_n_s_RawConstructorCopy___reduce_cyth __pyx_mstate_global->__pyx_n_s_RawConstructorCopy___reduce_cyth #define __pyx_n_s_RawConstructorCopy___setstate_cy __pyx_mstate_global->__pyx_n_s_RawConstructorCopy___setstate_cy #define __pyx_n_s_RawConstructorCopy_construct __pyx_mstate_global->__pyx_n_s_RawConstructorCopy_construct #define __pyx_n_s_RawConstructor___reduce_cython __pyx_mstate_global->__pyx_n_s_RawConstructor___reduce_cython #define __pyx_n_s_RawConstructor___setstate_cython __pyx_mstate_global->__pyx_n_s_RawConstructor___setstate_cython #define __pyx_n_s_RawConstructor_construct __pyx_mstate_global->__pyx_n_s_RawConstructor_construct #define __pyx_n_s_RecMethod __pyx_mstate_global->__pyx_n_s_RecMethod #define __pyx_n_s_RecMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_RecMethod___reduce_cython #define __pyx_n_s_RecMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_RecMethod___setstate_cython #define __pyx_n_s_RecMethod_deserialize __pyx_mstate_global->__pyx_n_s_RecMethod_deserialize #define __pyx_n_s_Sequence __pyx_mstate_global->__pyx_n_s_Sequence #define __pyx_n_s_SetMethod __pyx_mstate_global->__pyx_n_s_SetMethod #define __pyx_n_s_SetMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_SetMethod___reduce_cython #define __pyx_n_s_SetMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_SetMethod___setstate_cython #define __pyx_n_s_SetMethod_deserialize __pyx_mstate_global->__pyx_n_s_SetMethod_deserialize #define __pyx_n_s_SimpleObjectMethod __pyx_mstate_global->__pyx_n_s_SimpleObjectMethod #define __pyx_n_s_SimpleObjectMethod___reduce_cyth __pyx_mstate_global->__pyx_n_s_SimpleObjectMethod___reduce_cyth #define __pyx_n_s_SimpleObjectMethod___setstate_cy __pyx_mstate_global->__pyx_n_s_SimpleObjectMethod___setstate_cy #define __pyx_n_s_SimpleObjectMethod_deserialize __pyx_mstate_global->__pyx_n_s_SimpleObjectMethod_deserialize #define __pyx_n_s_StrMethod __pyx_mstate_global->__pyx_n_s_StrMethod #define __pyx_n_s_StrMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_StrMethod___reduce_cython #define __pyx_n_s_StrMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_StrMethod___setstate_cython #define __pyx_n_s_StrMethod_deserialize __pyx_mstate_global->__pyx_n_s_StrMethod_deserialize #define __pyx_n_s_SubprimitiveMethod __pyx_mstate_global->__pyx_n_s_SubprimitiveMethod #define __pyx_n_s_SubprimitiveMethod___reduce_cyth __pyx_mstate_global->__pyx_n_s_SubprimitiveMethod___reduce_cyth #define __pyx_n_s_SubprimitiveMethod___setstate_cy __pyx_mstate_global->__pyx_n_s_SubprimitiveMethod___setstate_cy #define __pyx_n_s_SubprimitiveMethod_deserialize __pyx_mstate_global->__pyx_n_s_SubprimitiveMethod_deserialize #define __pyx_n_s_Tuple __pyx_mstate_global->__pyx_n_s_Tuple #define __pyx_n_s_TupleMethod __pyx_mstate_global->__pyx_n_s_TupleMethod #define __pyx_n_s_TupleMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_TupleMethod___reduce_cython #define __pyx_n_s_TupleMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_TupleMethod___setstate_cython #define __pyx_n_s_TupleMethod_deserialize __pyx_mstate_global->__pyx_n_s_TupleMethod_deserialize #define __pyx_n_s_TypeCheckMethod __pyx_mstate_global->__pyx_n_s_TypeCheckMethod #define __pyx_n_s_TypeCheckMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_TypeCheckMethod___reduce_cython #define __pyx_n_s_TypeCheckMethod___setstate_cytho __pyx_mstate_global->__pyx_n_s_TypeCheckMethod___setstate_cytho #define __pyx_n_s_TypeCheckMethod_deserialize __pyx_mstate_global->__pyx_n_s_TypeCheckMethod_deserialize #define __pyx_n_s_TypeError __pyx_mstate_global->__pyx_n_s_TypeError #define __pyx_n_s_Union __pyx_mstate_global->__pyx_n_s_Union #define __pyx_n_s_UnionByTypeMethod __pyx_mstate_global->__pyx_n_s_UnionByTypeMethod #define __pyx_n_s_UnionByTypeMethod___reduce_cytho __pyx_mstate_global->__pyx_n_s_UnionByTypeMethod___reduce_cytho #define __pyx_n_s_UnionByTypeMethod___setstate_cyt __pyx_mstate_global->__pyx_n_s_UnionByTypeMethod___setstate_cyt #define __pyx_n_s_UnionByTypeMethod_deserialize __pyx_mstate_global->__pyx_n_s_UnionByTypeMethod_deserialize #define __pyx_n_s_UnionByTypeMethod_deserialize_lo __pyx_mstate_global->__pyx_n_s_UnionByTypeMethod_deserialize_lo #define __pyx_n_s_UnionMethod __pyx_mstate_global->__pyx_n_s_UnionMethod #define __pyx_n_s_UnionMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_UnionMethod___reduce_cython #define __pyx_n_s_UnionMethod___setstate_cython __pyx_mstate_global->__pyx_n_s_UnionMethod___setstate_cython #define __pyx_n_s_UnionMethod_deserialize __pyx_mstate_global->__pyx_n_s_UnionMethod_deserialize #define __pyx_n_s_UniqueItemsConstraint __pyx_mstate_global->__pyx_n_s_UniqueItemsConstraint #define __pyx_n_s_UniqueItemsConstraint___reduce_c __pyx_mstate_global->__pyx_n_s_UniqueItemsConstraint___reduce_c #define __pyx_n_s_UniqueItemsConstraint___setstate __pyx_mstate_global->__pyx_n_s_UniqueItemsConstraint___setstate #define __pyx_n_s_UniqueItemsConstraint_validate __pyx_mstate_global->__pyx_n_s_UniqueItemsConstraint_validate #define __pyx_n_s_ValidationError __pyx_mstate_global->__pyx_n_s_ValidationError #define __pyx_n_s_Validator __pyx_mstate_global->__pyx_n_s_Validator #define __pyx_n_s_ValidatorMethod __pyx_mstate_global->__pyx_n_s_ValidatorMethod #define __pyx_n_s_ValidatorMethod___reduce_cython __pyx_mstate_global->__pyx_n_s_ValidatorMethod___reduce_cython #define __pyx_n_s_ValidatorMethod___setstate_cytho __pyx_mstate_global->__pyx_n_s_ValidatorMethod___setstate_cytho #define __pyx_n_s_ValidatorMethod_deserialize __pyx_mstate_global->__pyx_n_s_ValidatorMethod_deserialize #define __pyx_n_s_ValidatorMock __pyx_mstate_global->__pyx_n_s_ValidatorMock #define __pyx_n_s_ValueError __pyx_mstate_global->__pyx_n_s_ValueError #define __pyx_n_s_VariadicTupleMethod __pyx_mstate_global->__pyx_n_s_VariadicTupleMethod #define __pyx_n_s_VariadicTupleMethod___reduce_cyt __pyx_mstate_global->__pyx_n_s_VariadicTupleMethod___reduce_cyt #define __pyx_n_s_VariadicTupleMethod___setstate_c __pyx_mstate_global->__pyx_n_s_VariadicTupleMethod___setstate_c #define __pyx_n_s_VariadicTupleMethod_deserialize __pyx_mstate_global->__pyx_n_s_VariadicTupleMethod_deserialize #define __pyx_n_s__293 __pyx_mstate_global->__pyx_n_s__293 #define __pyx_kp_u__3 __pyx_mstate_global->__pyx_kp_u__3 #define __pyx_n_s_additional_field __pyx_mstate_global->__pyx_n_s_additional_field #define __pyx_n_s_additional_properties __pyx_mstate_global->__pyx_n_s_additional_properties #define __pyx_n_s_alias __pyx_mstate_global->__pyx_n_s_alias #define __pyx_n_s_aliaser __pyx_mstate_global->__pyx_n_s_aliaser #define __pyx_n_s_aliases __pyx_mstate_global->__pyx_n_s_aliases #define __pyx_n_s_all_aliases __pyx_mstate_global->__pyx_n_s_all_aliases #define __pyx_n_s_alt_methods __pyx_mstate_global->__pyx_n_s_alt_methods #define __pyx_n_s_alternatives __pyx_mstate_global->__pyx_n_s_alternatives #define __pyx_n_s_apischema_aliases __pyx_mstate_global->__pyx_n_s_apischema_aliases #define __pyx_n_s_apischema_conversions_utils __pyx_mstate_global->__pyx_n_s_apischema_conversions_utils #define __pyx_n_s_apischema_deserialization_coerci __pyx_mstate_global->__pyx_n_s_apischema_deserialization_coerci #define __pyx_n_s_apischema_deserialization_method __pyx_mstate_global->__pyx_n_s_apischema_deserialization_method #define __pyx_kp_s_apischema_deserialization_method_2 __pyx_mstate_global->__pyx_kp_s_apischema_deserialization_method_2 #define __pyx_n_s_apischema_json_schema_types __pyx_mstate_global->__pyx_n_s_apischema_json_schema_types #define __pyx_n_s_apischema_types __pyx_mstate_global->__pyx_n_s_apischema_types #define __pyx_n_s_apischema_utils __pyx_mstate_global->__pyx_n_s_apischema_utils #define __pyx_n_s_apischema_validation_errors __pyx_mstate_global->__pyx_n_s_apischema_validation_errors #define __pyx_n_s_apischema_validation_mock __pyx_mstate_global->__pyx_n_s_apischema_validation_mock #define __pyx_n_s_apischema_validation_validators __pyx_mstate_global->__pyx_n_s_apischema_validation_validators #define __pyx_n_s_args __pyx_mstate_global->__pyx_n_s_args #define __pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines #define __pyx_n_s_bad_type __pyx_mstate_global->__pyx_n_s_bad_type #define __pyx_n_s_children __pyx_mstate_global->__pyx_n_s_children #define __pyx_n_s_children_errors __pyx_mstate_global->__pyx_n_s_children_errors #define __pyx_n_s_class_getitem __pyx_mstate_global->__pyx_n_s_class_getitem #define __pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback #define __pyx_n_s_close __pyx_mstate_global->__pyx_n_s_close #define __pyx_n_s_cls __pyx_mstate_global->__pyx_n_s_cls #define __pyx_n_s_coercer __pyx_mstate_global->__pyx_n_s_coercer #define __pyx_n_s_constraints __pyx_mstate_global->__pyx_n_s_constraints #define __pyx_n_s_construct __pyx_mstate_global->__pyx_n_s_construct #define __pyx_n_s_constructor __pyx_mstate_global->__pyx_n_s_constructor #define __pyx_n_s_converter __pyx_mstate_global->__pyx_n_s_converter #define __pyx_n_s_copy __pyx_mstate_global->__pyx_n_s_copy #define __pyx_n_s_data __pyx_mstate_global->__pyx_n_s_data #define __pyx_n_s_dataclass __pyx_mstate_global->__pyx_n_s_dataclass #define __pyx_n_s_dataclasses __pyx_mstate_global->__pyx_n_s_dataclasses #define __pyx_n_s_default_fields __pyx_mstate_global->__pyx_n_s_default_fields #define __pyx_n_s_default_value __pyx_mstate_global->__pyx_n_s_default_value #define __pyx_n_s_dependencies __pyx_mstate_global->__pyx_n_s_dependencies #define __pyx_n_s_deserialize __pyx_mstate_global->__pyx_n_s_deserialize #define __pyx_n_s_dict __pyx_mstate_global->__pyx_n_s_dict #define __pyx_n_s_dict_2 __pyx_mstate_global->__pyx_n_s_dict_2 #define __pyx_n_s_difference_update __pyx_mstate_global->__pyx_n_s_difference_update #define __pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable #define __pyx_n_s_discriminator __pyx_mstate_global->__pyx_n_s_discriminator #define __pyx_n_s_elt_methods __pyx_mstate_global->__pyx_n_s_elt_methods #define __pyx_kp_u_enable __pyx_mstate_global->__pyx_kp_u_enable #define __pyx_n_s_enumerate __pyx_mstate_global->__pyx_n_s_enumerate #define __pyx_n_s_err __pyx_mstate_global->__pyx_n_s_err #define __pyx_n_s_error __pyx_mstate_global->__pyx_n_s_error #define __pyx_n_s_errors __pyx_mstate_global->__pyx_n_s_errors #define __pyx_n_s_exc_max __pyx_mstate_global->__pyx_n_s_exc_max #define __pyx_n_s_exc_min __pyx_mstate_global->__pyx_n_s_exc_min #define __pyx_n_s_expected __pyx_mstate_global->__pyx_n_s_expected #define __pyx_n_s_extend __pyx_mstate_global->__pyx_n_s_extend #define __pyx_n_s_extend_errors __pyx_mstate_global->__pyx_n_s_extend_errors #define __pyx_n_s_factory __pyx_mstate_global->__pyx_n_s_factory #define __pyx_n_s_factory_fields __pyx_mstate_global->__pyx_n_s_factory_fields #define __pyx_n_s_fall_back_on_default __pyx_mstate_global->__pyx_n_s_fall_back_on_default #define __pyx_n_s_fallback __pyx_mstate_global->__pyx_n_s_fallback #define __pyx_n_s_field __pyx_mstate_global->__pyx_n_s_field #define __pyx_n_s_fields __pyx_mstate_global->__pyx_n_s_fields #define __pyx_n_s_flattened_fields __pyx_mstate_global->__pyx_n_s_flattened_fields #define __pyx_n_s_format_error __pyx_mstate_global->__pyx_n_s_format_error #define __pyx_kp_u_gc __pyx_mstate_global->__pyx_kp_u_gc #define __pyx_n_s_genexpr __pyx_mstate_global->__pyx_n_s_genexpr #define __pyx_n_s_getstate __pyx_mstate_global->__pyx_n_s_getstate #define __pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import #define __pyx_n_s_init_defaults __pyx_mstate_global->__pyx_n_s_init_defaults #define __pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine #define __pyx_n_s_isdisjoint __pyx_mstate_global->__pyx_n_s_isdisjoint #define __pyx_kp_u_isenabled __pyx_mstate_global->__pyx_kp_u_isenabled #define __pyx_n_s_items __pyx_mstate_global->__pyx_n_s_items #define __pyx_n_s_key __pyx_mstate_global->__pyx_n_s_key #define __pyx_n_s_key_method __pyx_mstate_global->__pyx_n_s_key_method #define __pyx_n_s_keys __pyx_mstate_global->__pyx_n_s_keys #define __pyx_n_s_lazy __pyx_mstate_global->__pyx_n_s_lazy #define __pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main #define __pyx_n_s_map __pyx_mstate_global->__pyx_n_s_map #define __pyx_n_s_mapping __pyx_mstate_global->__pyx_n_s_mapping #define __pyx_n_s_match __pyx_mstate_global->__pyx_n_s_match #define __pyx_n_s_max_items __pyx_mstate_global->__pyx_n_s_max_items #define __pyx_n_s_max_len __pyx_mstate_global->__pyx_n_s_max_len #define __pyx_n_s_max_len_error __pyx_mstate_global->__pyx_n_s_max_len_error #define __pyx_n_s_max_properties __pyx_mstate_global->__pyx_n_s_max_properties #define __pyx_n_s_maximum __pyx_mstate_global->__pyx_n_s_maximum #define __pyx_n_s_merge_errors __pyx_mstate_global->__pyx_n_s_merge_errors #define __pyx_n_s_messages __pyx_mstate_global->__pyx_n_s_messages #define __pyx_n_s_method __pyx_mstate_global->__pyx_n_s_method #define __pyx_n_s_method_by_cls __pyx_mstate_global->__pyx_n_s_method_by_cls #define __pyx_n_s_min_items __pyx_mstate_global->__pyx_n_s_min_items #define __pyx_n_s_min_len __pyx_mstate_global->__pyx_n_s_min_len #define __pyx_n_s_min_len_error __pyx_mstate_global->__pyx_n_s_min_len_error #define __pyx_n_s_min_properties __pyx_mstate_global->__pyx_n_s_min_properties #define __pyx_n_s_minimum __pyx_mstate_global->__pyx_n_s_minimum #define __pyx_n_s_missing __pyx_mstate_global->__pyx_n_s_missing #define __pyx_n_s_mult_of __pyx_mstate_global->__pyx_n_s_mult_of #define __pyx_n_s_name __pyx_mstate_global->__pyx_n_s_name #define __pyx_n_s_name_2 __pyx_mstate_global->__pyx_n_s_name_2 #define __pyx_n_s_nb_fields __pyx_mstate_global->__pyx_n_s_nb_fields #define __pyx_n_s_new __pyx_mstate_global->__pyx_n_s_new #define __pyx_n_s_object __pyx_mstate_global->__pyx_n_s_object #define __pyx_n_s_pattern __pyx_mstate_global->__pyx_n_s_pattern #define __pyx_n_s_pattern_fields __pyx_mstate_global->__pyx_n_s_pattern_fields #define __pyx_n_s_pickle __pyx_mstate_global->__pyx_n_s_pickle #define __pyx_n_s_post_init_modified __pyx_mstate_global->__pyx_n_s_post_init_modified #define __pyx_n_s_pyx_PickleError __pyx_mstate_global->__pyx_n_s_pyx_PickleError #define __pyx_n_s_pyx_checksum __pyx_mstate_global->__pyx_n_s_pyx_checksum #define __pyx_n_s_pyx_result __pyx_mstate_global->__pyx_n_s_pyx_result #define __pyx_n_s_pyx_state __pyx_mstate_global->__pyx_n_s_pyx_state #define __pyx_n_s_pyx_type __pyx_mstate_global->__pyx_n_s_pyx_type #define __pyx_n_s_pyx_unpickle_AdditionalField __pyx_mstate_global->__pyx_n_s_pyx_unpickle_AdditionalField #define __pyx_n_s_pyx_unpickle_AnyMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_AnyMethod #define __pyx_n_s_pyx_unpickle_BoolMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_BoolMethod #define __pyx_n_s_pyx_unpickle_CoercerMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_CoercerMethod #define __pyx_n_s_pyx_unpickle_ConstrainedFloatM __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConstrainedFloatM #define __pyx_n_s_pyx_unpickle_ConstrainedIntMet __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConstrainedIntMet #define __pyx_n_s_pyx_unpickle_ConstrainedStrMet __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConstrainedStrMet #define __pyx_n_s_pyx_unpickle_Constraint __pyx_mstate_global->__pyx_n_s_pyx_unpickle_Constraint #define __pyx_n_s_pyx_unpickle_Constructor __pyx_mstate_global->__pyx_n_s_pyx_unpickle_Constructor #define __pyx_n_s_pyx_unpickle_ConversionAlterna __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConversionAlterna #define __pyx_n_s_pyx_unpickle_ConversionMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConversionMethod #define __pyx_n_s_pyx_unpickle_ConversionUnionMe __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConversionUnionMe #define __pyx_n_s_pyx_unpickle_ConversionWithVal __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ConversionWithVal #define __pyx_n_s_pyx_unpickle_DefaultField __pyx_mstate_global->__pyx_n_s_pyx_unpickle_DefaultField #define __pyx_n_s_pyx_unpickle_DeserializationMe __pyx_mstate_global->__pyx_n_s_pyx_unpickle_DeserializationMe #define __pyx_n_s_pyx_unpickle_Discriminated __pyx_mstate_global->__pyx_n_s_pyx_unpickle_Discriminated #define __pyx_n_s_pyx_unpickle_DiscriminatorMeth __pyx_mstate_global->__pyx_n_s_pyx_unpickle_DiscriminatorMeth #define __pyx_n_s_pyx_unpickle_ExclusiveMaximumC __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ExclusiveMaximumC #define __pyx_n_s_pyx_unpickle_ExclusiveMinimumC __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ExclusiveMinimumC #define __pyx_n_s_pyx_unpickle_FactoryField __pyx_mstate_global->__pyx_n_s_pyx_unpickle_FactoryField #define __pyx_n_s_pyx_unpickle_Field __pyx_mstate_global->__pyx_n_s_pyx_unpickle_Field #define __pyx_n_s_pyx_unpickle_FieldsConstructor __pyx_mstate_global->__pyx_n_s_pyx_unpickle_FieldsConstructor #define __pyx_n_s_pyx_unpickle_FlattenedField __pyx_mstate_global->__pyx_n_s_pyx_unpickle_FlattenedField #define __pyx_n_s_pyx_unpickle_FloatMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_FloatMethod #define __pyx_n_s_pyx_unpickle_FrozenSetMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_FrozenSetMethod #define __pyx_n_s_pyx_unpickle_IntMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_IntMethod #define __pyx_n_s_pyx_unpickle_ListCheckOnlyMeth __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ListCheckOnlyMeth #define __pyx_n_s_pyx_unpickle_ListMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ListMethod #define __pyx_n_s_pyx_unpickle_LiteralMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_LiteralMethod #define __pyx_n_s_pyx_unpickle_MappingCheckOnly __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MappingCheckOnly #define __pyx_n_s_pyx_unpickle_MappingMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MappingMethod #define __pyx_n_s_pyx_unpickle_MaxItemsConstrain __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MaxItemsConstrain #define __pyx_n_s_pyx_unpickle_MaxLengthConstrai __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MaxLengthConstrai #define __pyx_n_s_pyx_unpickle_MaxPropertiesCons __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MaxPropertiesCons #define __pyx_n_s_pyx_unpickle_MaximumConstraint __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MaximumConstraint #define __pyx_n_s_pyx_unpickle_MinItemsConstrain __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MinItemsConstrain #define __pyx_n_s_pyx_unpickle_MinLengthConstrai __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MinLengthConstrai #define __pyx_n_s_pyx_unpickle_MinPropertiesCons __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MinPropertiesCons #define __pyx_n_s_pyx_unpickle_MinimumConstraint __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MinimumConstraint #define __pyx_n_s_pyx_unpickle_MultipleOfConstra __pyx_mstate_global->__pyx_n_s_pyx_unpickle_MultipleOfConstra #define __pyx_n_s_pyx_unpickle_NoConstructor __pyx_mstate_global->__pyx_n_s_pyx_unpickle_NoConstructor #define __pyx_n_s_pyx_unpickle_NoneMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_NoneMethod #define __pyx_n_s_pyx_unpickle_ObjectMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ObjectMethod #define __pyx_n_s_pyx_unpickle_OptionalMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_OptionalMethod #define __pyx_n_s_pyx_unpickle_PatternConstraint __pyx_mstate_global->__pyx_n_s_pyx_unpickle_PatternConstraint #define __pyx_n_s_pyx_unpickle_PatternField __pyx_mstate_global->__pyx_n_s_pyx_unpickle_PatternField #define __pyx_n_s_pyx_unpickle_RawConstructor __pyx_mstate_global->__pyx_n_s_pyx_unpickle_RawConstructor #define __pyx_n_s_pyx_unpickle_RawConstructorCop __pyx_mstate_global->__pyx_n_s_pyx_unpickle_RawConstructorCop #define __pyx_n_s_pyx_unpickle_RecMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_RecMethod #define __pyx_n_s_pyx_unpickle_SetMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_SetMethod #define __pyx_n_s_pyx_unpickle_SimpleObjectMetho __pyx_mstate_global->__pyx_n_s_pyx_unpickle_SimpleObjectMetho #define __pyx_n_s_pyx_unpickle_StrMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_StrMethod #define __pyx_n_s_pyx_unpickle_SubprimitiveMetho __pyx_mstate_global->__pyx_n_s_pyx_unpickle_SubprimitiveMetho #define __pyx_n_s_pyx_unpickle_TupleMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_TupleMethod #define __pyx_n_s_pyx_unpickle_TypeCheckMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_TypeCheckMethod #define __pyx_n_s_pyx_unpickle_UnionByTypeMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_UnionByTypeMethod #define __pyx_n_s_pyx_unpickle_UnionMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_UnionMethod #define __pyx_n_s_pyx_unpickle_UniqueItemsConstr __pyx_mstate_global->__pyx_n_s_pyx_unpickle_UniqueItemsConstr #define __pyx_n_s_pyx_unpickle_ValidatorMethod __pyx_mstate_global->__pyx_n_s_pyx_unpickle_ValidatorMethod #define __pyx_n_s_pyx_unpickle_VariadicTupleMeth __pyx_mstate_global->__pyx_n_s_pyx_unpickle_VariadicTupleMeth #define __pyx_n_s_pyx_vtable __pyx_mstate_global->__pyx_n_s_pyx_vtable #define __pyx_n_s_range __pyx_mstate_global->__pyx_n_s_range #define __pyx_n_s_reduce __pyx_mstate_global->__pyx_n_s_reduce #define __pyx_n_s_reduce_cython __pyx_mstate_global->__pyx_n_s_reduce_cython #define __pyx_n_s_reduce_ex __pyx_mstate_global->__pyx_n_s_reduce_ex #define __pyx_n_s_required __pyx_mstate_global->__pyx_n_s_required #define __pyx_n_s_required_by __pyx_mstate_global->__pyx_n_s_required_by #define __pyx_kp_u_required_by_2 __pyx_mstate_global->__pyx_kp_u_required_by_2 #define __pyx_n_s_self __pyx_mstate_global->__pyx_n_s_self #define __pyx_n_s_send __pyx_mstate_global->__pyx_n_s_send #define __pyx_n_s_set_child_error __pyx_mstate_global->__pyx_n_s_set_child_error #define __pyx_n_s_setstate __pyx_mstate_global->__pyx_n_s_setstate #define __pyx_n_s_setstate_cython __pyx_mstate_global->__pyx_n_s_setstate_cython #define __pyx_n_s_state __pyx_mstate_global->__pyx_n_s_state #define __pyx_kp_s_stringsource __pyx_mstate_global->__pyx_kp_s_stringsource #define __pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test #define __pyx_n_s_throw __pyx_mstate_global->__pyx_n_s_throw #define __pyx_n_s_to_hashable __pyx_mstate_global->__pyx_n_s_to_hashable #define __pyx_n_s_typed_dict __pyx_mstate_global->__pyx_n_s_typed_dict #define __pyx_n_s_types __pyx_mstate_global->__pyx_n_s_types #define __pyx_n_s_typing __pyx_mstate_global->__pyx_n_s_typing #define __pyx_n_s_unexpected __pyx_mstate_global->__pyx_n_s_unexpected #define __pyx_n_s_unique __pyx_mstate_global->__pyx_n_s_unique #define __pyx_n_s_update __pyx_mstate_global->__pyx_n_s_update #define __pyx_n_s_update_children_errors __pyx_mstate_global->__pyx_n_s_update_children_errors #define __pyx_n_s_use_setstate __pyx_mstate_global->__pyx_n_s_use_setstate #define __pyx_n_s_validate __pyx_mstate_global->__pyx_n_s_validate #define __pyx_n_s_validate_constraints __pyx_mstate_global->__pyx_n_s_validate_constraints #define __pyx_n_s_validators __pyx_mstate_global->__pyx_n_s_validators #define __pyx_n_s_value_error __pyx_mstate_global->__pyx_n_s_value_error #define __pyx_n_s_value_map __pyx_mstate_global->__pyx_n_s_value_map #define __pyx_n_s_value_method __pyx_mstate_global->__pyx_n_s_value_method #define __pyx_int_0 __pyx_mstate_global->__pyx_int_0 #define __pyx_int_1 __pyx_mstate_global->__pyx_int_1 #define __pyx_int_1061315 __pyx_mstate_global->__pyx_int_1061315 #define __pyx_int_4393368 __pyx_mstate_global->__pyx_int_4393368 #define __pyx_int_5409203 __pyx_mstate_global->__pyx_int_5409203 #define __pyx_int_6074692 __pyx_mstate_global->__pyx_int_6074692 #define __pyx_int_10534196 __pyx_mstate_global->__pyx_int_10534196 #define __pyx_int_16592120 __pyx_mstate_global->__pyx_int_16592120 #define __pyx_int_16874699 __pyx_mstate_global->__pyx_int_16874699 #define __pyx_int_17381039 __pyx_mstate_global->__pyx_int_17381039 #define __pyx_int_18412159 __pyx_mstate_global->__pyx_int_18412159 #define __pyx_int_21831954 __pyx_mstate_global->__pyx_int_21831954 #define __pyx_int_21894935 __pyx_mstate_global->__pyx_int_21894935 #define __pyx_int_22404078 __pyx_mstate_global->__pyx_int_22404078 #define __pyx_int_25683109 __pyx_mstate_global->__pyx_int_25683109 #define __pyx_int_29064226 __pyx_mstate_global->__pyx_int_29064226 #define __pyx_int_30346496 __pyx_mstate_global->__pyx_int_30346496 #define __pyx_int_31099836 __pyx_mstate_global->__pyx_int_31099836 #define __pyx_int_31777368 __pyx_mstate_global->__pyx_int_31777368 #define __pyx_int_34399964 __pyx_mstate_global->__pyx_int_34399964 #define __pyx_int_34456425 __pyx_mstate_global->__pyx_int_34456425 #define __pyx_int_34564873 __pyx_mstate_global->__pyx_int_34564873 #define __pyx_int_39566027 __pyx_mstate_global->__pyx_int_39566027 #define __pyx_int_39646481 __pyx_mstate_global->__pyx_int_39646481 #define __pyx_int_43145208 __pyx_mstate_global->__pyx_int_43145208 #define __pyx_int_47519927 __pyx_mstate_global->__pyx_int_47519927 #define __pyx_int_49712037 __pyx_mstate_global->__pyx_int_49712037 #define __pyx_int_50166306 __pyx_mstate_global->__pyx_int_50166306 #define __pyx_int_50548289 __pyx_mstate_global->__pyx_int_50548289 #define __pyx_int_56952783 __pyx_mstate_global->__pyx_int_56952783 #define __pyx_int_59113187 __pyx_mstate_global->__pyx_int_59113187 #define __pyx_int_59973580 __pyx_mstate_global->__pyx_int_59973580 #define __pyx_int_65652202 __pyx_mstate_global->__pyx_int_65652202 #define __pyx_int_67187364 __pyx_mstate_global->__pyx_int_67187364 #define __pyx_int_68348896 __pyx_mstate_global->__pyx_int_68348896 #define __pyx_int_69439193 __pyx_mstate_global->__pyx_int_69439193 #define __pyx_int_71361338 __pyx_mstate_global->__pyx_int_71361338 #define __pyx_int_71989837 __pyx_mstate_global->__pyx_int_71989837 #define __pyx_int_73886977 __pyx_mstate_global->__pyx_int_73886977 #define __pyx_int_76745901 __pyx_mstate_global->__pyx_int_76745901 #define __pyx_int_80339441 __pyx_mstate_global->__pyx_int_80339441 #define __pyx_int_86498115 __pyx_mstate_global->__pyx_int_86498115 #define __pyx_int_87055098 __pyx_mstate_global->__pyx_int_87055098 #define __pyx_int_87926185 __pyx_mstate_global->__pyx_int_87926185 #define __pyx_int_89106541 __pyx_mstate_global->__pyx_int_89106541 #define __pyx_int_89247923 __pyx_mstate_global->__pyx_int_89247923 #define __pyx_int_89365892 __pyx_mstate_global->__pyx_int_89365892 #define __pyx_int_90778316 __pyx_mstate_global->__pyx_int_90778316 #define __pyx_int_92337353 __pyx_mstate_global->__pyx_int_92337353 #define __pyx_int_99602557 __pyx_mstate_global->__pyx_int_99602557 #define __pyx_int_99761709 __pyx_mstate_global->__pyx_int_99761709 #define __pyx_int_100986846 __pyx_mstate_global->__pyx_int_100986846 #define __pyx_int_102462867 __pyx_mstate_global->__pyx_int_102462867 #define __pyx_int_105653666 __pyx_mstate_global->__pyx_int_105653666 #define __pyx_int_107165658 __pyx_mstate_global->__pyx_int_107165658 #define __pyx_int_108544010 __pyx_mstate_global->__pyx_int_108544010 #define __pyx_int_108979822 __pyx_mstate_global->__pyx_int_108979822 #define __pyx_int_109504843 __pyx_mstate_global->__pyx_int_109504843 #define __pyx_int_110427570 __pyx_mstate_global->__pyx_int_110427570 #define __pyx_int_113390162 __pyx_mstate_global->__pyx_int_113390162 #define __pyx_int_117447894 __pyx_mstate_global->__pyx_int_117447894 #define __pyx_int_119135242 __pyx_mstate_global->__pyx_int_119135242 #define __pyx_int_119633667 __pyx_mstate_global->__pyx_int_119633667 #define __pyx_int_119948357 __pyx_mstate_global->__pyx_int_119948357 #define __pyx_int_125047544 __pyx_mstate_global->__pyx_int_125047544 #define __pyx_int_128527296 __pyx_mstate_global->__pyx_int_128527296 #define __pyx_int_129659791 __pyx_mstate_global->__pyx_int_129659791 #define __pyx_int_129754538 __pyx_mstate_global->__pyx_int_129754538 #define __pyx_int_133418666 __pyx_mstate_global->__pyx_int_133418666 #define __pyx_int_133974869 __pyx_mstate_global->__pyx_int_133974869 #define __pyx_int_136250523 __pyx_mstate_global->__pyx_int_136250523 #define __pyx_int_137271932 __pyx_mstate_global->__pyx_int_137271932 #define __pyx_int_138366295 __pyx_mstate_global->__pyx_int_138366295 #define __pyx_int_138368889 __pyx_mstate_global->__pyx_int_138368889 #define __pyx_int_139355673 __pyx_mstate_global->__pyx_int_139355673 #define __pyx_int_141271449 __pyx_mstate_global->__pyx_int_141271449 #define __pyx_int_142562297 __pyx_mstate_global->__pyx_int_142562297 #define __pyx_int_148344969 __pyx_mstate_global->__pyx_int_148344969 #define __pyx_int_150756734 __pyx_mstate_global->__pyx_int_150756734 #define __pyx_int_151978152 __pyx_mstate_global->__pyx_int_151978152 #define __pyx_int_153188860 __pyx_mstate_global->__pyx_int_153188860 #define __pyx_int_154338282 __pyx_mstate_global->__pyx_int_154338282 #define __pyx_int_154416804 __pyx_mstate_global->__pyx_int_154416804 #define __pyx_int_155387426 __pyx_mstate_global->__pyx_int_155387426 #define __pyx_int_157010104 __pyx_mstate_global->__pyx_int_157010104 #define __pyx_int_157442187 __pyx_mstate_global->__pyx_int_157442187 #define __pyx_int_159314353 __pyx_mstate_global->__pyx_int_159314353 #define __pyx_int_169907618 __pyx_mstate_global->__pyx_int_169907618 #define __pyx_int_170060645 __pyx_mstate_global->__pyx_int_170060645 #define __pyx_int_172473893 __pyx_mstate_global->__pyx_int_172473893 #define __pyx_int_174143295 __pyx_mstate_global->__pyx_int_174143295 #define __pyx_int_179286492 __pyx_mstate_global->__pyx_int_179286492 #define __pyx_int_180344665 __pyx_mstate_global->__pyx_int_180344665 #define __pyx_int_185544032 __pyx_mstate_global->__pyx_int_185544032 #define __pyx_int_188225458 __pyx_mstate_global->__pyx_int_188225458 #define __pyx_int_188265286 __pyx_mstate_global->__pyx_int_188265286 #define __pyx_int_190713963 __pyx_mstate_global->__pyx_int_190713963 #define __pyx_int_191997942 __pyx_mstate_global->__pyx_int_191997942 #define __pyx_int_199009293 __pyx_mstate_global->__pyx_int_199009293 #define __pyx_int_200261128 __pyx_mstate_global->__pyx_int_200261128 #define __pyx_int_205695869 __pyx_mstate_global->__pyx_int_205695869 #define __pyx_int_206753745 __pyx_mstate_global->__pyx_int_206753745 #define __pyx_int_207700205 __pyx_mstate_global->__pyx_int_207700205 #define __pyx_int_210124308 __pyx_mstate_global->__pyx_int_210124308 #define __pyx_int_213378848 __pyx_mstate_global->__pyx_int_213378848 #define __pyx_int_217540299 __pyx_mstate_global->__pyx_int_217540299 #define __pyx_int_218312211 __pyx_mstate_global->__pyx_int_218312211 #define __pyx_int_218785721 __pyx_mstate_global->__pyx_int_218785721 #define __pyx_int_219789001 __pyx_mstate_global->__pyx_int_219789001 #define __pyx_int_226265099 __pyx_mstate_global->__pyx_int_226265099 #define __pyx_int_228146014 __pyx_mstate_global->__pyx_int_228146014 #define __pyx_int_228566110 __pyx_mstate_global->__pyx_int_228566110 #define __pyx_int_230529602 __pyx_mstate_global->__pyx_int_230529602 #define __pyx_int_232155009 __pyx_mstate_global->__pyx_int_232155009 #define __pyx_int_232429629 __pyx_mstate_global->__pyx_int_232429629 #define __pyx_int_238095282 __pyx_mstate_global->__pyx_int_238095282 #define __pyx_int_238659478 __pyx_mstate_global->__pyx_int_238659478 #define __pyx_int_240488784 __pyx_mstate_global->__pyx_int_240488784 #define __pyx_int_241521041 __pyx_mstate_global->__pyx_int_241521041 #define __pyx_int_242672649 __pyx_mstate_global->__pyx_int_242672649 #define __pyx_int_247471373 __pyx_mstate_global->__pyx_int_247471373 #define __pyx_int_249936757 __pyx_mstate_global->__pyx_int_249936757 #define __pyx_int_251535444 __pyx_mstate_global->__pyx_int_251535444 #define __pyx_int_251556977 __pyx_mstate_global->__pyx_int_251556977 #define __pyx_int_252475336 __pyx_mstate_global->__pyx_int_252475336 #define __pyx_int_253779918 __pyx_mstate_global->__pyx_int_253779918 #define __pyx_int_258009577 __pyx_mstate_global->__pyx_int_258009577 #define __pyx_int_259347467 __pyx_mstate_global->__pyx_int_259347467 #define __pyx_int_261406006 __pyx_mstate_global->__pyx_int_261406006 #define __pyx_int_262512166 __pyx_mstate_global->__pyx_int_262512166 #define __pyx_int_265699309 __pyx_mstate_global->__pyx_int_265699309 #define __pyx_int_266123853 __pyx_mstate_global->__pyx_int_266123853 #define __pyx_int_266904154 __pyx_mstate_global->__pyx_int_266904154 #define __pyx_int_267302923 __pyx_mstate_global->__pyx_int_267302923 #define __pyx_tuple__2 __pyx_mstate_global->__pyx_tuple__2 #define __pyx_tuple__4 __pyx_mstate_global->__pyx_tuple__4 #define __pyx_tuple__5 __pyx_mstate_global->__pyx_tuple__5 #define __pyx_tuple__6 __pyx_mstate_global->__pyx_tuple__6 #define __pyx_tuple__7 __pyx_mstate_global->__pyx_tuple__7 #define __pyx_tuple__8 __pyx_mstate_global->__pyx_tuple__8 #define __pyx_tuple__9 __pyx_mstate_global->__pyx_tuple__9 #define __pyx_tuple__10 __pyx_mstate_global->__pyx_tuple__10 #define __pyx_tuple__11 __pyx_mstate_global->__pyx_tuple__11 #define __pyx_tuple__12 __pyx_mstate_global->__pyx_tuple__12 #define __pyx_tuple__13 __pyx_mstate_global->__pyx_tuple__13 #define __pyx_tuple__14 __pyx_mstate_global->__pyx_tuple__14 #define __pyx_tuple__15 __pyx_mstate_global->__pyx_tuple__15 #define __pyx_tuple__16 __pyx_mstate_global->__pyx_tuple__16 #define __pyx_tuple__17 __pyx_mstate_global->__pyx_tuple__17 #define __pyx_tuple__18 __pyx_mstate_global->__pyx_tuple__18 #define __pyx_tuple__19 __pyx_mstate_global->__pyx_tuple__19 #define __pyx_tuple__20 __pyx_mstate_global->__pyx_tuple__20 #define __pyx_tuple__21 __pyx_mstate_global->__pyx_tuple__21 #define __pyx_tuple__22 __pyx_mstate_global->__pyx_tuple__22 #define __pyx_tuple__23 __pyx_mstate_global->__pyx_tuple__23 #define __pyx_tuple__24 __pyx_mstate_global->__pyx_tuple__24 #define __pyx_tuple__25 __pyx_mstate_global->__pyx_tuple__25 #define __pyx_tuple__26 __pyx_mstate_global->__pyx_tuple__26 #define __pyx_tuple__27 __pyx_mstate_global->__pyx_tuple__27 #define __pyx_tuple__28 __pyx_mstate_global->__pyx_tuple__28 #define __pyx_tuple__29 __pyx_mstate_global->__pyx_tuple__29 #define __pyx_tuple__30 __pyx_mstate_global->__pyx_tuple__30 #define __pyx_tuple__31 __pyx_mstate_global->__pyx_tuple__31 #define __pyx_tuple__32 __pyx_mstate_global->__pyx_tuple__32 #define __pyx_tuple__33 __pyx_mstate_global->__pyx_tuple__33 #define __pyx_tuple__34 __pyx_mstate_global->__pyx_tuple__34 #define __pyx_tuple__35 __pyx_mstate_global->__pyx_tuple__35 #define __pyx_tuple__36 __pyx_mstate_global->__pyx_tuple__36 #define __pyx_tuple__37 __pyx_mstate_global->__pyx_tuple__37 #define __pyx_tuple__38 __pyx_mstate_global->__pyx_tuple__38 #define __pyx_tuple__39 __pyx_mstate_global->__pyx_tuple__39 #define __pyx_tuple__40 __pyx_mstate_global->__pyx_tuple__40 #define __pyx_tuple__41 __pyx_mstate_global->__pyx_tuple__41 #define __pyx_tuple__42 __pyx_mstate_global->__pyx_tuple__42 #define __pyx_tuple__43 __pyx_mstate_global->__pyx_tuple__43 #define __pyx_tuple__44 __pyx_mstate_global->__pyx_tuple__44 #define __pyx_tuple__45 __pyx_mstate_global->__pyx_tuple__45 #define __pyx_tuple__46 __pyx_mstate_global->__pyx_tuple__46 #define __pyx_tuple__47 __pyx_mstate_global->__pyx_tuple__47 #define __pyx_tuple__49 __pyx_mstate_global->__pyx_tuple__49 #define __pyx_tuple__51 __pyx_mstate_global->__pyx_tuple__51 #define __pyx_tuple__142 __pyx_mstate_global->__pyx_tuple__142 #define __pyx_tuple__220 __pyx_mstate_global->__pyx_tuple__220 #define __pyx_tuple__222 __pyx_mstate_global->__pyx_tuple__222 #define __pyx_tuple__224 __pyx_mstate_global->__pyx_tuple__224 #define __pyx_tuple__226 __pyx_mstate_global->__pyx_tuple__226 #define __pyx_tuple__228 __pyx_mstate_global->__pyx_tuple__228 #define __pyx_tuple__230 __pyx_mstate_global->__pyx_tuple__230 #define __pyx_tuple__232 __pyx_mstate_global->__pyx_tuple__232 #define __pyx_codeobj__48 __pyx_mstate_global->__pyx_codeobj__48 #define __pyx_codeobj__50 __pyx_mstate_global->__pyx_codeobj__50 #define __pyx_codeobj__52 __pyx_mstate_global->__pyx_codeobj__52 #define __pyx_codeobj__53 __pyx_mstate_global->__pyx_codeobj__53 #define __pyx_codeobj__54 __pyx_mstate_global->__pyx_codeobj__54 #define __pyx_codeobj__55 __pyx_mstate_global->__pyx_codeobj__55 #define __pyx_codeobj__56 __pyx_mstate_global->__pyx_codeobj__56 #define __pyx_codeobj__57 __pyx_mstate_global->__pyx_codeobj__57 #define __pyx_codeobj__58 __pyx_mstate_global->__pyx_codeobj__58 #define __pyx_codeobj__59 __pyx_mstate_global->__pyx_codeobj__59 #define __pyx_codeobj__60 __pyx_mstate_global->__pyx_codeobj__60 #define __pyx_codeobj__61 __pyx_mstate_global->__pyx_codeobj__61 #define __pyx_codeobj__62 __pyx_mstate_global->__pyx_codeobj__62 #define __pyx_codeobj__63 __pyx_mstate_global->__pyx_codeobj__63 #define __pyx_codeobj__64 __pyx_mstate_global->__pyx_codeobj__64 #define __pyx_codeobj__65 __pyx_mstate_global->__pyx_codeobj__65 #define __pyx_codeobj__66 __pyx_mstate_global->__pyx_codeobj__66 #define __pyx_codeobj__67 __pyx_mstate_global->__pyx_codeobj__67 #define __pyx_codeobj__68 __pyx_mstate_global->__pyx_codeobj__68 #define __pyx_codeobj__69 __pyx_mstate_global->__pyx_codeobj__69 #define __pyx_codeobj__70 __pyx_mstate_global->__pyx_codeobj__70 #define __pyx_codeobj__71 __pyx_mstate_global->__pyx_codeobj__71 #define __pyx_codeobj__72 __pyx_mstate_global->__pyx_codeobj__72 #define __pyx_codeobj__73 __pyx_mstate_global->__pyx_codeobj__73 #define __pyx_codeobj__74 __pyx_mstate_global->__pyx_codeobj__74 #define __pyx_codeobj__75 __pyx_mstate_global->__pyx_codeobj__75 #define __pyx_codeobj__76 __pyx_mstate_global->__pyx_codeobj__76 #define __pyx_codeobj__77 __pyx_mstate_global->__pyx_codeobj__77 #define __pyx_codeobj__78 __pyx_mstate_global->__pyx_codeobj__78 #define __pyx_codeobj__79 __pyx_mstate_global->__pyx_codeobj__79 #define __pyx_codeobj__80 __pyx_mstate_global->__pyx_codeobj__80 #define __pyx_codeobj__81 __pyx_mstate_global->__pyx_codeobj__81 #define __pyx_codeobj__82 __pyx_mstate_global->__pyx_codeobj__82 #define __pyx_codeobj__83 __pyx_mstate_global->__pyx_codeobj__83 #define __pyx_codeobj__84 __pyx_mstate_global->__pyx_codeobj__84 #define __pyx_codeobj__85 __pyx_mstate_global->__pyx_codeobj__85 #define __pyx_codeobj__86 __pyx_mstate_global->__pyx_codeobj__86 #define __pyx_codeobj__87 __pyx_mstate_global->__pyx_codeobj__87 #define __pyx_codeobj__88 __pyx_mstate_global->__pyx_codeobj__88 #define __pyx_codeobj__89 __pyx_mstate_global->__pyx_codeobj__89 #define __pyx_codeobj__90 __pyx_mstate_global->__pyx_codeobj__90 #define __pyx_codeobj__91 __pyx_mstate_global->__pyx_codeobj__91 #define __pyx_codeobj__92 __pyx_mstate_global->__pyx_codeobj__92 #define __pyx_codeobj__93 __pyx_mstate_global->__pyx_codeobj__93 #define __pyx_codeobj__94 __pyx_mstate_global->__pyx_codeobj__94 #define __pyx_codeobj__95 __pyx_mstate_global->__pyx_codeobj__95 #define __pyx_codeobj__96 __pyx_mstate_global->__pyx_codeobj__96 #define __pyx_codeobj__97 __pyx_mstate_global->__pyx_codeobj__97 #define __pyx_codeobj__98 __pyx_mstate_global->__pyx_codeobj__98 #define __pyx_codeobj__99 __pyx_mstate_global->__pyx_codeobj__99 #define __pyx_codeobj__100 __pyx_mstate_global->__pyx_codeobj__100 #define __pyx_codeobj__101 __pyx_mstate_global->__pyx_codeobj__101 #define __pyx_codeobj__102 __pyx_mstate_global->__pyx_codeobj__102 #define __pyx_codeobj__103 __pyx_mstate_global->__pyx_codeobj__103 #define __pyx_codeobj__104 __pyx_mstate_global->__pyx_codeobj__104 #define __pyx_codeobj__105 __pyx_mstate_global->__pyx_codeobj__105 #define __pyx_codeobj__106 __pyx_mstate_global->__pyx_codeobj__106 #define __pyx_codeobj__107 __pyx_mstate_global->__pyx_codeobj__107 #define __pyx_codeobj__108 __pyx_mstate_global->__pyx_codeobj__108 #define __pyx_codeobj__109 __pyx_mstate_global->__pyx_codeobj__109 #define __pyx_codeobj__110 __pyx_mstate_global->__pyx_codeobj__110 #define __pyx_codeobj__111 __pyx_mstate_global->__pyx_codeobj__111 #define __pyx_codeobj__112 __pyx_mstate_global->__pyx_codeobj__112 #define __pyx_codeobj__113 __pyx_mstate_global->__pyx_codeobj__113 #define __pyx_codeobj__114 __pyx_mstate_global->__pyx_codeobj__114 #define __pyx_codeobj__115 __pyx_mstate_global->__pyx_codeobj__115 #define __pyx_codeobj__116 __pyx_mstate_global->__pyx_codeobj__116 #define __pyx_codeobj__117 __pyx_mstate_global->__pyx_codeobj__117 #define __pyx_codeobj__118 __pyx_mstate_global->__pyx_codeobj__118 #define __pyx_codeobj__119 __pyx_mstate_global->__pyx_codeobj__119 #define __pyx_codeobj__120 __pyx_mstate_global->__pyx_codeobj__120 #define __pyx_codeobj__121 __pyx_mstate_global->__pyx_codeobj__121 #define __pyx_codeobj__122 __pyx_mstate_global->__pyx_codeobj__122 #define __pyx_codeobj__123 __pyx_mstate_global->__pyx_codeobj__123 #define __pyx_codeobj__124 __pyx_mstate_global->__pyx_codeobj__124 #define __pyx_codeobj__125 __pyx_mstate_global->__pyx_codeobj__125 #define __pyx_codeobj__126 __pyx_mstate_global->__pyx_codeobj__126 #define __pyx_codeobj__127 __pyx_mstate_global->__pyx_codeobj__127 #define __pyx_codeobj__128 __pyx_mstate_global->__pyx_codeobj__128 #define __pyx_codeobj__129 __pyx_mstate_global->__pyx_codeobj__129 #define __pyx_codeobj__130 __pyx_mstate_global->__pyx_codeobj__130 #define __pyx_codeobj__131 __pyx_mstate_global->__pyx_codeobj__131 #define __pyx_codeobj__132 __pyx_mstate_global->__pyx_codeobj__132 #define __pyx_codeobj__133 __pyx_mstate_global->__pyx_codeobj__133 #define __pyx_codeobj__134 __pyx_mstate_global->__pyx_codeobj__134 #define __pyx_codeobj__135 __pyx_mstate_global->__pyx_codeobj__135 #define __pyx_codeobj__136 __pyx_mstate_global->__pyx_codeobj__136 #define __pyx_codeobj__137 __pyx_mstate_global->__pyx_codeobj__137 #define __pyx_codeobj__138 __pyx_mstate_global->__pyx_codeobj__138 #define __pyx_codeobj__139 __pyx_mstate_global->__pyx_codeobj__139 #define __pyx_codeobj__140 __pyx_mstate_global->__pyx_codeobj__140 #define __pyx_codeobj__141 __pyx_mstate_global->__pyx_codeobj__141 #define __pyx_codeobj__143 __pyx_mstate_global->__pyx_codeobj__143 #define __pyx_codeobj__144 __pyx_mstate_global->__pyx_codeobj__144 #define __pyx_codeobj__145 __pyx_mstate_global->__pyx_codeobj__145 #define __pyx_codeobj__146 __pyx_mstate_global->__pyx_codeobj__146 #define __pyx_codeobj__147 __pyx_mstate_global->__pyx_codeobj__147 #define __pyx_codeobj__148 __pyx_mstate_global->__pyx_codeobj__148 #define __pyx_codeobj__149 __pyx_mstate_global->__pyx_codeobj__149 #define __pyx_codeobj__150 __pyx_mstate_global->__pyx_codeobj__150 #define __pyx_codeobj__151 __pyx_mstate_global->__pyx_codeobj__151 #define __pyx_codeobj__152 __pyx_mstate_global->__pyx_codeobj__152 #define __pyx_codeobj__153 __pyx_mstate_global->__pyx_codeobj__153 #define __pyx_codeobj__154 __pyx_mstate_global->__pyx_codeobj__154 #define __pyx_codeobj__155 __pyx_mstate_global->__pyx_codeobj__155 #define __pyx_codeobj__156 __pyx_mstate_global->__pyx_codeobj__156 #define __pyx_codeobj__157 __pyx_mstate_global->__pyx_codeobj__157 #define __pyx_codeobj__158 __pyx_mstate_global->__pyx_codeobj__158 #define __pyx_codeobj__159 __pyx_mstate_global->__pyx_codeobj__159 #define __pyx_codeobj__160 __pyx_mstate_global->__pyx_codeobj__160 #define __pyx_codeobj__161 __pyx_mstate_global->__pyx_codeobj__161 #define __pyx_codeobj__162 __pyx_mstate_global->__pyx_codeobj__162 #define __pyx_codeobj__163 __pyx_mstate_global->__pyx_codeobj__163 #define __pyx_codeobj__164 __pyx_mstate_global->__pyx_codeobj__164 #define __pyx_codeobj__165 __pyx_mstate_global->__pyx_codeobj__165 #define __pyx_codeobj__166 __pyx_mstate_global->__pyx_codeobj__166 #define __pyx_codeobj__167 __pyx_mstate_global->__pyx_codeobj__167 #define __pyx_codeobj__168 __pyx_mstate_global->__pyx_codeobj__168 #define __pyx_codeobj__169 __pyx_mstate_global->__pyx_codeobj__169 #define __pyx_codeobj__170 __pyx_mstate_global->__pyx_codeobj__170 #define __pyx_codeobj__171 __pyx_mstate_global->__pyx_codeobj__171 #define __pyx_codeobj__172 __pyx_mstate_global->__pyx_codeobj__172 #define __pyx_codeobj__173 __pyx_mstate_global->__pyx_codeobj__173 #define __pyx_codeobj__174 __pyx_mstate_global->__pyx_codeobj__174 #define __pyx_codeobj__175 __pyx_mstate_global->__pyx_codeobj__175 #define __pyx_codeobj__176 __pyx_mstate_global->__pyx_codeobj__176 #define __pyx_codeobj__177 __pyx_mstate_global->__pyx_codeobj__177 #define __pyx_codeobj__178 __pyx_mstate_global->__pyx_codeobj__178 #define __pyx_codeobj__179 __pyx_mstate_global->__pyx_codeobj__179 #define __pyx_codeobj__180 __pyx_mstate_global->__pyx_codeobj__180 #define __pyx_codeobj__181 __pyx_mstate_global->__pyx_codeobj__181 #define __pyx_codeobj__182 __pyx_mstate_global->__pyx_codeobj__182 #define __pyx_codeobj__183 __pyx_mstate_global->__pyx_codeobj__183 #define __pyx_codeobj__184 __pyx_mstate_global->__pyx_codeobj__184 #define __pyx_codeobj__185 __pyx_mstate_global->__pyx_codeobj__185 #define __pyx_codeobj__186 __pyx_mstate_global->__pyx_codeobj__186 #define __pyx_codeobj__187 __pyx_mstate_global->__pyx_codeobj__187 #define __pyx_codeobj__188 __pyx_mstate_global->__pyx_codeobj__188 #define __pyx_codeobj__189 __pyx_mstate_global->__pyx_codeobj__189 #define __pyx_codeobj__190 __pyx_mstate_global->__pyx_codeobj__190 #define __pyx_codeobj__191 __pyx_mstate_global->__pyx_codeobj__191 #define __pyx_codeobj__192 __pyx_mstate_global->__pyx_codeobj__192 #define __pyx_codeobj__193 __pyx_mstate_global->__pyx_codeobj__193 #define __pyx_codeobj__194 __pyx_mstate_global->__pyx_codeobj__194 #define __pyx_codeobj__195 __pyx_mstate_global->__pyx_codeobj__195 #define __pyx_codeobj__196 __pyx_mstate_global->__pyx_codeobj__196 #define __pyx_codeobj__197 __pyx_mstate_global->__pyx_codeobj__197 #define __pyx_codeobj__198 __pyx_mstate_global->__pyx_codeobj__198 #define __pyx_codeobj__199 __pyx_mstate_global->__pyx_codeobj__199 #define __pyx_codeobj__200 __pyx_mstate_global->__pyx_codeobj__200 #define __pyx_codeobj__201 __pyx_mstate_global->__pyx_codeobj__201 #define __pyx_codeobj__202 __pyx_mstate_global->__pyx_codeobj__202 #define __pyx_codeobj__203 __pyx_mstate_global->__pyx_codeobj__203 #define __pyx_codeobj__204 __pyx_mstate_global->__pyx_codeobj__204 #define __pyx_codeobj__205 __pyx_mstate_global->__pyx_codeobj__205 #define __pyx_codeobj__206 __pyx_mstate_global->__pyx_codeobj__206 #define __pyx_codeobj__207 __pyx_mstate_global->__pyx_codeobj__207 #define __pyx_codeobj__208 __pyx_mstate_global->__pyx_codeobj__208 #define __pyx_codeobj__209 __pyx_mstate_global->__pyx_codeobj__209 #define __pyx_codeobj__210 __pyx_mstate_global->__pyx_codeobj__210 #define __pyx_codeobj__211 __pyx_mstate_global->__pyx_codeobj__211 #define __pyx_codeobj__212 __pyx_mstate_global->__pyx_codeobj__212 #define __pyx_codeobj__213 __pyx_mstate_global->__pyx_codeobj__213 #define __pyx_codeobj__214 __pyx_mstate_global->__pyx_codeobj__214 #define __pyx_codeobj__215 __pyx_mstate_global->__pyx_codeobj__215 #define __pyx_codeobj__216 __pyx_mstate_global->__pyx_codeobj__216 #define __pyx_codeobj__217 __pyx_mstate_global->__pyx_codeobj__217 #define __pyx_codeobj__218 __pyx_mstate_global->__pyx_codeobj__218 #define __pyx_codeobj__219 __pyx_mstate_global->__pyx_codeobj__219 #define __pyx_codeobj__221 __pyx_mstate_global->__pyx_codeobj__221 #define __pyx_codeobj__223 __pyx_mstate_global->__pyx_codeobj__223 #define __pyx_codeobj__225 __pyx_mstate_global->__pyx_codeobj__225 #define __pyx_codeobj__227 __pyx_mstate_global->__pyx_codeobj__227 #define __pyx_codeobj__229 __pyx_mstate_global->__pyx_codeobj__229 #define __pyx_codeobj__231 __pyx_mstate_global->__pyx_codeobj__231 #define __pyx_codeobj__233 __pyx_mstate_global->__pyx_codeobj__233 #define __pyx_codeobj__234 __pyx_mstate_global->__pyx_codeobj__234 #define __pyx_codeobj__235 __pyx_mstate_global->__pyx_codeobj__235 #define __pyx_codeobj__236 __pyx_mstate_global->__pyx_codeobj__236 #define __pyx_codeobj__237 __pyx_mstate_global->__pyx_codeobj__237 #define __pyx_codeobj__238 __pyx_mstate_global->__pyx_codeobj__238 #define __pyx_codeobj__239 __pyx_mstate_global->__pyx_codeobj__239 #define __pyx_codeobj__240 __pyx_mstate_global->__pyx_codeobj__240 #define __pyx_codeobj__241 __pyx_mstate_global->__pyx_codeobj__241 #define __pyx_codeobj__242 __pyx_mstate_global->__pyx_codeobj__242 #define __pyx_codeobj__243 __pyx_mstate_global->__pyx_codeobj__243 #define __pyx_codeobj__244 __pyx_mstate_global->__pyx_codeobj__244 #define __pyx_codeobj__245 __pyx_mstate_global->__pyx_codeobj__245 #define __pyx_codeobj__246 __pyx_mstate_global->__pyx_codeobj__246 #define __pyx_codeobj__247 __pyx_mstate_global->__pyx_codeobj__247 #define __pyx_codeobj__248 __pyx_mstate_global->__pyx_codeobj__248 #define __pyx_codeobj__249 __pyx_mstate_global->__pyx_codeobj__249 #define __pyx_codeobj__250 __pyx_mstate_global->__pyx_codeobj__250 #define __pyx_codeobj__251 __pyx_mstate_global->__pyx_codeobj__251 #define __pyx_codeobj__252 __pyx_mstate_global->__pyx_codeobj__252 #define __pyx_codeobj__253 __pyx_mstate_global->__pyx_codeobj__253 #define __pyx_codeobj__254 __pyx_mstate_global->__pyx_codeobj__254 #define __pyx_codeobj__255 __pyx_mstate_global->__pyx_codeobj__255 #define __pyx_codeobj__256 __pyx_mstate_global->__pyx_codeobj__256 #define __pyx_codeobj__257 __pyx_mstate_global->__pyx_codeobj__257 #define __pyx_codeobj__258 __pyx_mstate_global->__pyx_codeobj__258 #define __pyx_codeobj__259 __pyx_mstate_global->__pyx_codeobj__259 #define __pyx_codeobj__260 __pyx_mstate_global->__pyx_codeobj__260 #define __pyx_codeobj__261 __pyx_mstate_global->__pyx_codeobj__261 #define __pyx_codeobj__262 __pyx_mstate_global->__pyx_codeobj__262 #define __pyx_codeobj__263 __pyx_mstate_global->__pyx_codeobj__263 #define __pyx_codeobj__264 __pyx_mstate_global->__pyx_codeobj__264 #define __pyx_codeobj__265 __pyx_mstate_global->__pyx_codeobj__265 #define __pyx_codeobj__266 __pyx_mstate_global->__pyx_codeobj__266 #define __pyx_codeobj__267 __pyx_mstate_global->__pyx_codeobj__267 #define __pyx_codeobj__268 __pyx_mstate_global->__pyx_codeobj__268 #define __pyx_codeobj__269 __pyx_mstate_global->__pyx_codeobj__269 #define __pyx_codeobj__270 __pyx_mstate_global->__pyx_codeobj__270 #define __pyx_codeobj__271 __pyx_mstate_global->__pyx_codeobj__271 #define __pyx_codeobj__272 __pyx_mstate_global->__pyx_codeobj__272 #define __pyx_codeobj__273 __pyx_mstate_global->__pyx_codeobj__273 #define __pyx_codeobj__274 __pyx_mstate_global->__pyx_codeobj__274 #define __pyx_codeobj__275 __pyx_mstate_global->__pyx_codeobj__275 #define __pyx_codeobj__276 __pyx_mstate_global->__pyx_codeobj__276 #define __pyx_codeobj__277 __pyx_mstate_global->__pyx_codeobj__277 #define __pyx_codeobj__278 __pyx_mstate_global->__pyx_codeobj__278 #define __pyx_codeobj__279 __pyx_mstate_global->__pyx_codeobj__279 #define __pyx_codeobj__280 __pyx_mstate_global->__pyx_codeobj__280 #define __pyx_codeobj__281 __pyx_mstate_global->__pyx_codeobj__281 #define __pyx_codeobj__282 __pyx_mstate_global->__pyx_codeobj__282 #define __pyx_codeobj__283 __pyx_mstate_global->__pyx_codeobj__283 #define __pyx_codeobj__284 __pyx_mstate_global->__pyx_codeobj__284 #define __pyx_codeobj__285 __pyx_mstate_global->__pyx_codeobj__285 #define __pyx_codeobj__286 __pyx_mstate_global->__pyx_codeobj__286 #define __pyx_codeobj__287 __pyx_mstate_global->__pyx_codeobj__287 #define __pyx_codeobj__288 __pyx_mstate_global->__pyx_codeobj__288 #define __pyx_codeobj__289 __pyx_mstate_global->__pyx_codeobj__289 #define __pyx_codeobj__290 __pyx_mstate_global->__pyx_codeobj__290 #define __pyx_codeobj__291 __pyx_mstate_global->__pyx_codeobj__291 #define __pyx_codeobj__292 __pyx_mstate_global->__pyx_codeobj__292 /* #### Code section: module_code ### */ /* "cpython/complex.pxd":19 * * @property * cdef inline double real(self) noexcept: # <<<<<<<<<<<<<< * return self.cval.real * */ static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4real_real(PyComplexObject *__pyx_v_self) { double __pyx_r; /* "cpython/complex.pxd":20 * @property * cdef inline double real(self) noexcept: * return self.cval.real # <<<<<<<<<<<<<< * * @property */ __pyx_r = __pyx_v_self->cval.real; goto __pyx_L0; /* "cpython/complex.pxd":19 * * @property * cdef inline double real(self) noexcept: # <<<<<<<<<<<<<< * return self.cval.real * */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "cpython/complex.pxd":23 * * @property * cdef inline double imag(self) noexcept: # <<<<<<<<<<<<<< * return self.cval.imag * */ static CYTHON_INLINE double __pyx_f_7cpython_7complex_7complex_4imag_imag(PyComplexObject *__pyx_v_self) { double __pyx_r; /* "cpython/complex.pxd":24 * @property * cdef inline double imag(self) noexcept: * return self.cval.imag # <<<<<<<<<<<<<< * * # PyTypeObject PyComplex_Type */ __pyx_r = __pyx_v_self->cval.imag; goto __pyx_L0; /* "cpython/complex.pxd":23 * * @property * cdef inline double imag(self) noexcept: # <<<<<<<<<<<<<< * return self.cval.imag * */ /* function exit code */ __pyx_L0:; return __pyx_r; } /* "cpython/contextvars.pxd":112 * * * cdef inline object get_value(var, default_value=None): # <<<<<<<<<<<<<< * """Return a new reference to the value of the context variable, * or the default value of the context variable, */ static CYTHON_INLINE PyObject *__pyx_f_7cpython_11contextvars_get_value(PyObject *__pyx_v_var, struct __pyx_opt_args_7cpython_11contextvars_get_value *__pyx_optional_args) { PyObject *__pyx_v_default_value = ((PyObject *)Py_None); PyObject *__pyx_v_value; PyObject *__pyx_v_pyvalue = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_value", 1); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_default_value = __pyx_optional_args->default_value; } } /* "cpython/contextvars.pxd":117 * or None if no such value or default was found. * """ * cdef PyObject *value = NULL # <<<<<<<<<<<<<< * PyContextVar_Get(var, NULL, &value) * if value is NULL: */ __pyx_v_value = NULL; /* "cpython/contextvars.pxd":118 * """ * cdef PyObject *value = NULL * PyContextVar_Get(var, NULL, &value) # <<<<<<<<<<<<<< * if value is NULL: * # context variable does not have a default */ __pyx_t_1 = PyContextVar_Get(__pyx_v_var, NULL, (&__pyx_v_value)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 118, __pyx_L1_error) /* "cpython/contextvars.pxd":119 * cdef PyObject *value = NULL * PyContextVar_Get(var, NULL, &value) * if value is NULL: # <<<<<<<<<<<<<< * # context variable does not have a default * pyvalue = default_value */ __pyx_t_2 = (__pyx_v_value == NULL); if (__pyx_t_2) { /* "cpython/contextvars.pxd":121 * if value is NULL: * # context variable does not have a default * pyvalue = default_value # <<<<<<<<<<<<<< * else: * # value or default value of context variable */ __Pyx_INCREF(__pyx_v_default_value); __pyx_v_pyvalue = __pyx_v_default_value; /* "cpython/contextvars.pxd":119 * cdef PyObject *value = NULL * PyContextVar_Get(var, NULL, &value) * if value is NULL: # <<<<<<<<<<<<<< * # context variable does not have a default * pyvalue = default_value */ goto __pyx_L3; } /* "cpython/contextvars.pxd":124 * else: * # value or default value of context variable * pyvalue = value # <<<<<<<<<<<<<< * Py_XDECREF(value) # PyContextVar_Get() returned an owned reference as 'PyObject*' * return pyvalue */ /*else*/ { __pyx_t_3 = ((PyObject *)__pyx_v_value); __Pyx_INCREF(__pyx_t_3); __pyx_v_pyvalue = __pyx_t_3; __pyx_t_3 = 0; /* "cpython/contextvars.pxd":125 * # value or default value of context variable * pyvalue = value * Py_XDECREF(value) # PyContextVar_Get() returned an owned reference as 'PyObject*' # <<<<<<<<<<<<<< * return pyvalue * */ Py_XDECREF(__pyx_v_value); } __pyx_L3:; /* "cpython/contextvars.pxd":126 * pyvalue = value * Py_XDECREF(value) # PyContextVar_Get() returned an owned reference as 'PyObject*' * return pyvalue # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_pyvalue); __pyx_r = __pyx_v_pyvalue; goto __pyx_L0; /* "cpython/contextvars.pxd":112 * * * cdef inline object get_value(var, default_value=None): # <<<<<<<<<<<<<< * """Return a new reference to the value of the context variable, * or the default value of the context variable, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cpython.contextvars.get_value", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pyvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cpython/contextvars.pxd":129 * * * cdef inline object get_value_no_default(var, default_value=None): # <<<<<<<<<<<<<< * """Return a new reference to the value of the context variable, * or the provided default value if no such value was found. */ static CYTHON_INLINE PyObject *__pyx_f_7cpython_11contextvars_get_value_no_default(PyObject *__pyx_v_var, struct __pyx_opt_args_7cpython_11contextvars_get_value_no_default *__pyx_optional_args) { PyObject *__pyx_v_default_value = ((PyObject *)Py_None); PyObject *__pyx_v_value; PyObject *__pyx_v_pyvalue = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_value_no_default", 1); if (__pyx_optional_args) { if (__pyx_optional_args->__pyx_n > 0) { __pyx_v_default_value = __pyx_optional_args->default_value; } } /* "cpython/contextvars.pxd":135 * Ignores the default value of the context variable, if any. * """ * cdef PyObject *value = NULL # <<<<<<<<<<<<<< * PyContextVar_Get(var, default_value, &value) * # value of context variable or 'default_value' */ __pyx_v_value = NULL; /* "cpython/contextvars.pxd":136 * """ * cdef PyObject *value = NULL * PyContextVar_Get(var, default_value, &value) # <<<<<<<<<<<<<< * # value of context variable or 'default_value' * pyvalue = value */ __pyx_t_1 = PyContextVar_Get(__pyx_v_var, ((PyObject *)__pyx_v_default_value), (&__pyx_v_value)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 136, __pyx_L1_error) /* "cpython/contextvars.pxd":138 * PyContextVar_Get(var, default_value, &value) * # value of context variable or 'default_value' * pyvalue = value # <<<<<<<<<<<<<< * Py_XDECREF(value) # PyContextVar_Get() returned an owned reference as 'PyObject*' * return pyvalue */ __pyx_t_2 = ((PyObject *)__pyx_v_value); __Pyx_INCREF(__pyx_t_2); __pyx_v_pyvalue = __pyx_t_2; __pyx_t_2 = 0; /* "cpython/contextvars.pxd":139 * # value of context variable or 'default_value' * pyvalue = value * Py_XDECREF(value) # PyContextVar_Get() returned an owned reference as 'PyObject*' # <<<<<<<<<<<<<< * return pyvalue */ Py_XDECREF(__pyx_v_value); /* "cpython/contextvars.pxd":140 * pyvalue = value * Py_XDECREF(value) # PyContextVar_Get() returned an owned reference as 'PyObject*' * return pyvalue # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_pyvalue); __pyx_r = __pyx_v_pyvalue; goto __pyx_L0; /* "cpython/contextvars.pxd":129 * * * cdef inline object get_value_no_default(var, default_value=None): # <<<<<<<<<<<<<< * """Return a new reference to the value of the context variable, * or the provided default value if no such value was found. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("cpython.contextvars.get_value_no_default", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pyvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":38 * cdef int _dispatch * * def __init__(self, error): # <<<<<<<<<<<<<< * self.error = error * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_10Constraint_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_10Constraint_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 38, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 38, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_error = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 38, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Constraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10Constraint___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_v_self), __pyx_v_error); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_10Constraint___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self, PyObject *__pyx_v_error) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":39 * * def __init__(self, error): * self.error = error # <<<<<<<<<<<<<< * * cdef class MinimumConstraint(Constraint): */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->error); __Pyx_DECREF(__pyx_v_self->error); __pyx_v_self->error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":38 * cdef int _dispatch * * def __init__(self, error): # <<<<<<<<<<<<<< * self.error = error * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":35 * * cdef class Constraint(): * cdef readonly object error # <<<<<<<<<<<<<< * cdef int _dispatch * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10Constraint_5error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10Constraint_5error_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10Constraint_5error___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10Constraint_5error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->error); __pyx_r = __pyx_v_self->error; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10Constraint_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10Constraint_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10Constraint_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10Constraint_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10Constraint_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10Constraint_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->error); __Pyx_GIVEREF(__pyx_v_self->error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->error)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->error != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_71361338); __Pyx_GIVEREF(__pyx_int_71361338); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_71361338)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, None), state * else: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Constraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_Constraint); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_71361338); __Pyx_GIVEREF(__pyx_int_71361338); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_71361338)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.Constraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10Constraint_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10Constraint_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10Constraint_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10Constraint_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Constraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10Constraint_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10Constraint_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Constraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Constraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":44 * cdef readonly long minimum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinimumConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17MinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":45 * * cpdef validate(self, object data): * return MinimumConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, minimum): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MinimumConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":44 * cdef readonly long minimum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinimumConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17MinimumConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 44, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 44, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 44, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_17MinimumConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":47 * return MinimumConstraint_validate(self, data) * * def __init__(self, error, minimum): # <<<<<<<<<<<<<< * self.error = error * self.minimum = minimum */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_minimum = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_minimum,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 47, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minimum)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 47, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 47, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 47, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_minimum = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 47, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_minimum); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_minimum) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":48 * * def __init__(self, error, minimum): * self.error = error # <<<<<<<<<<<<<< * self.minimum = minimum * self._dispatch = 0 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":49 * def __init__(self, error, minimum): * self.error = error * self.minimum = minimum # <<<<<<<<<<<<<< * self._dispatch = 0 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_minimum); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L1_error) __pyx_v_self->minimum = __pyx_t_1; /* "apischema/deserialization/methods.pyx":50 * self.error = error * self.minimum = minimum * self._dispatch = 0 # <<<<<<<<<<<<<< * * cdef class MaximumConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 0; /* "apischema/deserialization/methods.pyx":47 * return MinimumConstraint_validate(self, data) * * def __init__(self, error, minimum): # <<<<<<<<<<<<<< * self.error = error * self.minimum = minimum */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":42 * * cdef class MinimumConstraint(Constraint): * cdef readonly long minimum # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7minimum_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7minimum_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_7minimum___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_7minimum___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->minimum); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.minimum.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17MinimumConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.minimum) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->minimum); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.minimum) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.minimum) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.minimum) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MinimumConstraint); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_21831954); __Pyx_GIVEREF(__pyx_int_21831954); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_21831954)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, None), state * else: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinimumConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MinimumConstraint); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_21831954); __Pyx_GIVEREF(__pyx_int_21831954); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_21831954)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinimumConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17MinimumConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MinimumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinimumConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinimumConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinimumConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":55 * cdef readonly long maximum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaximumConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17MaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":56 * * cpdef validate(self, object data): * return MaximumConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, maximum): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MaximumConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":55 * cdef readonly long maximum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaximumConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17MaximumConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 55, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 55, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 55, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_17MaximumConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":58 * return MaximumConstraint_validate(self, data) * * def __init__(self, error, maximum): # <<<<<<<<<<<<<< * self.error = error * self.maximum = maximum */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_maximum = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_maximum,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 58, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_maximum)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 58, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 58, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 58, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_maximum = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 58, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_maximum); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_maximum) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":59 * * def __init__(self, error, maximum): * self.error = error # <<<<<<<<<<<<<< * self.maximum = maximum * self._dispatch = 1 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":60 * def __init__(self, error, maximum): * self.error = error * self.maximum = maximum # <<<<<<<<<<<<<< * self._dispatch = 1 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_maximum); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 60, __pyx_L1_error) __pyx_v_self->maximum = __pyx_t_1; /* "apischema/deserialization/methods.pyx":61 * self.error = error * self.maximum = maximum * self._dispatch = 1 # <<<<<<<<<<<<<< * * cdef class ExclusiveMinimumConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 1; /* "apischema/deserialization/methods.pyx":58 * return MaximumConstraint_validate(self, data) * * def __init__(self, error, maximum): # <<<<<<<<<<<<<< * self.error = error * self.maximum = maximum */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":53 * * cdef class MaximumConstraint(Constraint): * cdef readonly long maximum # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7maximum_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7maximum_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_7maximum___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_7maximum___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->maximum); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.maximum.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17MaximumConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.maximum) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->maximum); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.maximum) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.maximum) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.maximum) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MaximumConstraint); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_80339441); __Pyx_GIVEREF(__pyx_int_80339441); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_80339441)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, None), state * else: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaximumConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MaximumConstraint); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_80339441); __Pyx_GIVEREF(__pyx_int_80339441); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_80339441)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaximumConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17MaximumConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17MaximumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaximumConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaximumConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaximumConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":66 * cdef readonly long exc_min * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMinimumConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":67 * * cpdef validate(self, object data): * return ExclusiveMinimumConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, exc_min): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":66 * cdef readonly long exc_min * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMinimumConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 66, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 66, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 66, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":69 * return ExclusiveMinimumConstraint_validate(self, data) * * def __init__(self, error, exc_min): # <<<<<<<<<<<<<< * self.error = error * self.exc_min = exc_min */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_exc_min = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_exc_min,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 69, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_exc_min)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 69, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 69, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 69, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_exc_min = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 69, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_exc_min); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_exc_min) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":70 * * def __init__(self, error, exc_min): * self.error = error # <<<<<<<<<<<<<< * self.exc_min = exc_min * self._dispatch = 2 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":71 * def __init__(self, error, exc_min): * self.error = error * self.exc_min = exc_min # <<<<<<<<<<<<<< * self._dispatch = 2 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_exc_min); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 71, __pyx_L1_error) __pyx_v_self->exc_min = __pyx_t_1; /* "apischema/deserialization/methods.pyx":72 * self.error = error * self.exc_min = exc_min * self._dispatch = 2 # <<<<<<<<<<<<<< * * cdef class ExclusiveMaximumConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 2; /* "apischema/deserialization/methods.pyx":69 * return ExclusiveMinimumConstraint_validate(self, data) * * def __init__(self, error, exc_min): # <<<<<<<<<<<<<< * self.error = error * self.exc_min = exc_min */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":64 * * cdef class ExclusiveMinimumConstraint(Constraint): * cdef readonly long exc_min # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7exc_min_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7exc_min_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7exc_min___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7exc_min___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->exc_min); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.exc_min.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.exc_min) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->exc_min); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.exc_min) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.exc_min) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.exc_min) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ExclusiveMinimumC); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_226265099); __Pyx_GIVEREF(__pyx_int_226265099); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_226265099)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, None), state * else: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ExclusiveMinimumConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_ExclusiveMinimumC); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_226265099); __Pyx_GIVEREF(__pyx_int_226265099); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_226265099)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMinimumConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ExclusiveMinimumConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMinimumConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMinimumConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":77 * cdef readonly long exc_max * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMaximumConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":78 * * cpdef validate(self, object data): * return ExclusiveMaximumConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, exc_max): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":77 * cdef readonly long exc_max * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMaximumConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 77, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 77, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 77, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":80 * return ExclusiveMaximumConstraint_validate(self, data) * * def __init__(self, error, exc_max): # <<<<<<<<<<<<<< * self.error = error * self.exc_max = exc_max */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_exc_max = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_exc_max,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 80, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_exc_max)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 80, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 80, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 80, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_exc_max = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 80, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_exc_max); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_exc_max) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":81 * * def __init__(self, error, exc_max): * self.error = error # <<<<<<<<<<<<<< * self.exc_max = exc_max * self._dispatch = 3 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":82 * def __init__(self, error, exc_max): * self.error = error * self.exc_max = exc_max # <<<<<<<<<<<<<< * self._dispatch = 3 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_exc_max); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 82, __pyx_L1_error) __pyx_v_self->exc_max = __pyx_t_1; /* "apischema/deserialization/methods.pyx":83 * self.error = error * self.exc_max = exc_max * self._dispatch = 3 # <<<<<<<<<<<<<< * * cdef class MultipleOfConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 3; /* "apischema/deserialization/methods.pyx":80 * return ExclusiveMaximumConstraint_validate(self, data) * * def __init__(self, error, exc_max): # <<<<<<<<<<<<<< * self.error = error * self.exc_max = exc_max */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":75 * * cdef class ExclusiveMaximumConstraint(Constraint): * cdef readonly long exc_max # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7exc_max_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7exc_max_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7exc_max___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7exc_max___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->exc_max); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.exc_max.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.exc_max) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->exc_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.exc_max) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.exc_max) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.exc_max) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ExclusiveMaximumC); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_205695869); __Pyx_GIVEREF(__pyx_int_205695869); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_205695869)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, None), state * else: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ExclusiveMaximumConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_ExclusiveMaximumC); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_205695869); __Pyx_GIVEREF(__pyx_int_205695869); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_205695869)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMaximumConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ExclusiveMaximumConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMaximumConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMaximumConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":88 * cdef readonly long mult_of * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MultipleOfConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":89 * * cpdef validate(self, object data): * return MultipleOfConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, mult_of): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MultipleOfConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":88 * cdef readonly long mult_of * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MultipleOfConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 88, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 88, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 88, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":91 * return MultipleOfConstraint_validate(self, data) * * def __init__(self, error, mult_of): # <<<<<<<<<<<<<< * self.error = error * self.mult_of = mult_of */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_mult_of = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_mult_of,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mult_of)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 91, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 91, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_mult_of = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 91, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_mult_of); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_mult_of) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":92 * * def __init__(self, error, mult_of): * self.error = error # <<<<<<<<<<<<<< * self.mult_of = mult_of * self._dispatch = 4 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":93 * def __init__(self, error, mult_of): * self.error = error * self.mult_of = mult_of # <<<<<<<<<<<<<< * self._dispatch = 4 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_mult_of); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 93, __pyx_L1_error) __pyx_v_self->mult_of = __pyx_t_1; /* "apischema/deserialization/methods.pyx":94 * self.error = error * self.mult_of = mult_of * self._dispatch = 4 # <<<<<<<<<<<<<< * * cdef class MinLengthConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 4; /* "apischema/deserialization/methods.pyx":91 * return MultipleOfConstraint_validate(self, data) * * def __init__(self, error, mult_of): # <<<<<<<<<<<<<< * self.error = error * self.mult_of = mult_of */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":86 * * cdef class MultipleOfConstraint(Constraint): * cdef readonly long mult_of # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7mult_of_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7mult_of_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_7mult_of___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_7mult_of___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->mult_of); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.mult_of.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20MultipleOfConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.mult_of) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->mult_of); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.mult_of) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.mult_of) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.mult_of) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MultipleOfConstra); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_191997942); __Pyx_GIVEREF(__pyx_int_191997942); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_191997942)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, None), state * else: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MultipleOfConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MultipleOfConstra); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_191997942); __Pyx_GIVEREF(__pyx_int_191997942); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_191997942)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MultipleOfConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20MultipleOfConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20MultipleOfConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MultipleOfConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MultipleOfConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MultipleOfConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":99 * cdef readonly long min_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinLengthConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19MinLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":100 * * cpdef validate(self, object data): * return MinLengthConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, min_len): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MinLengthConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":99 * cdef readonly long min_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinLengthConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 99, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 99, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 99, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_19MinLengthConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":102 * return MinLengthConstraint_validate(self, data) * * def __init__(self, error, min_len): # <<<<<<<<<<<<<< * self.error = error * self.min_len = min_len */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_min_len = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_min_len,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 102, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_min_len)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 102, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 102, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 102, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_min_len = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 102, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_min_len); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_min_len) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":103 * * def __init__(self, error, min_len): * self.error = error # <<<<<<<<<<<<<< * self.min_len = min_len * self._dispatch = 5 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":104 * def __init__(self, error, min_len): * self.error = error * self.min_len = min_len # <<<<<<<<<<<<<< * self._dispatch = 5 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_min_len); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 104, __pyx_L1_error) __pyx_v_self->min_len = __pyx_t_1; /* "apischema/deserialization/methods.pyx":105 * self.error = error * self.min_len = min_len * self._dispatch = 5 # <<<<<<<<<<<<<< * * cdef class MaxLengthConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 5; /* "apischema/deserialization/methods.pyx":102 * return MinLengthConstraint_validate(self, data) * * def __init__(self, error, min_len): # <<<<<<<<<<<<<< * self.error = error * self.min_len = min_len */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":97 * * cdef class MinLengthConstraint(Constraint): * cdef readonly long min_len # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7min_len_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7min_len_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_7min_len___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_7min_len___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->min_len); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.min_len.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19MinLengthConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.min_len) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->min_len); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.min_len) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.min_len) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.min_len) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MinLengthConstrai); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_228566110); __Pyx_GIVEREF(__pyx_int_228566110); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_228566110)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, None), state * else: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinLengthConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MinLengthConstrai); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_228566110); __Pyx_GIVEREF(__pyx_int_228566110); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_228566110)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinLengthConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19MinLengthConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MinLengthConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinLengthConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinLengthConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinLengthConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":110 * cdef readonly long max_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxLengthConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":111 * * cpdef validate(self, object data): * return MaxLengthConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, max_len): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MaxLengthConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":110 * cdef readonly long max_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxLengthConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 110, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 110, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 110, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":113 * return MaxLengthConstraint_validate(self, data) * * def __init__(self, error, max_len): # <<<<<<<<<<<<<< * self.error = error * self.max_len = max_len */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_max_len = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_max_len,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_max_len)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 113, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 113, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_max_len = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 113, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_max_len); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_max_len) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":114 * * def __init__(self, error, max_len): * self.error = error # <<<<<<<<<<<<<< * self.max_len = max_len * self._dispatch = 6 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":115 * def __init__(self, error, max_len): * self.error = error * self.max_len = max_len # <<<<<<<<<<<<<< * self._dispatch = 6 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_max_len); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L1_error) __pyx_v_self->max_len = __pyx_t_1; /* "apischema/deserialization/methods.pyx":116 * self.error = error * self.max_len = max_len * self._dispatch = 6 # <<<<<<<<<<<<<< * * cdef class PatternConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 6; /* "apischema/deserialization/methods.pyx":113 * return MaxLengthConstraint_validate(self, data) * * def __init__(self, error, max_len): # <<<<<<<<<<<<<< * self.error = error * self.max_len = max_len */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":108 * * cdef class MaxLengthConstraint(Constraint): * cdef readonly long max_len # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7max_len_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7max_len_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_7max_len___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_7max_len___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->max_len); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.max_len.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19MaxLengthConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.max_len) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->max_len); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.max_len) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.max_len) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.max_len) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MaxLengthConstrai); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_218785721); __Pyx_GIVEREF(__pyx_int_218785721); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_218785721)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, None), state * else: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaxLengthConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MaxLengthConstrai); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_218785721); __Pyx_GIVEREF(__pyx_int_218785721); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_218785721)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxLengthConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19MaxLengthConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19MaxLengthConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaxLengthConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxLengthConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxLengthConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":121 * cdef readonly object pattern * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return PatternConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17PatternConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":122 * * cpdef validate(self, object data): * return PatternConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, pattern): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_PatternConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":121 * cdef readonly object pattern * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return PatternConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17PatternConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 121, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 121, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 121, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_17PatternConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":124 * return PatternConstraint_validate(self, data) * * def __init__(self, error, pattern): # <<<<<<<<<<<<<< * self.error = error * self.pattern = pattern */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_pattern = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_pattern,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 124, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pattern)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 124, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 124, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 124, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_pattern = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 124, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_pattern); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_pattern) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":125 * * def __init__(self, error, pattern): * self.error = error # <<<<<<<<<<<<<< * self.pattern = pattern * self._dispatch = 7 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":126 * def __init__(self, error, pattern): * self.error = error * self.pattern = pattern # <<<<<<<<<<<<<< * self._dispatch = 7 * */ __Pyx_INCREF(__pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); __Pyx_GOTREF(__pyx_v_self->pattern); __Pyx_DECREF(__pyx_v_self->pattern); __pyx_v_self->pattern = __pyx_v_pattern; /* "apischema/deserialization/methods.pyx":127 * self.error = error * self.pattern = pattern * self._dispatch = 7 # <<<<<<<<<<<<<< * * cdef class MinItemsConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 7; /* "apischema/deserialization/methods.pyx":124 * return PatternConstraint_validate(self, data) * * def __init__(self, error, pattern): # <<<<<<<<<<<<<< * self.error = error * self.pattern = pattern */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":119 * * cdef class PatternConstraint(Constraint): * cdef readonly object pattern # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7pattern_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7pattern_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_7pattern___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_7pattern___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->pattern); __pyx_r = __pyx_v_self->pattern; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17PatternConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.pattern) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->pattern); __Pyx_GIVEREF(__pyx_v_self->pattern); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->pattern)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.pattern) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.pattern) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None or self.pattern is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.pattern) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None or self.pattern is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->pattern != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None or self.pattern is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None or self.pattern is not None * if use_setstate: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_PatternConstraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_65652202); __Pyx_GIVEREF(__pyx_int_65652202); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_65652202)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None or self.pattern is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, None), state * else: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_PatternConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_PatternConstraint); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_65652202); __Pyx_GIVEREF(__pyx_int_65652202); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_65652202)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17PatternConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17PatternConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_PatternConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":132 * cdef readonly long min_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinItemsConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18MinItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":133 * * cpdef validate(self, object data): * return MinItemsConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, min_items): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MinItemsConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":132 * cdef readonly long min_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinItemsConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 132, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 132, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 132, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_18MinItemsConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":135 * return MinItemsConstraint_validate(self, data) * * def __init__(self, error, min_items): # <<<<<<<<<<<<<< * self.error = error * self.min_items = min_items */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_min_items = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_min_items,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 135, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_min_items)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 135, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 135, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 135, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_min_items = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 135, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_min_items); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_min_items) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":136 * * def __init__(self, error, min_items): * self.error = error # <<<<<<<<<<<<<< * self.min_items = min_items * self._dispatch = 8 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":137 * def __init__(self, error, min_items): * self.error = error * self.min_items = min_items # <<<<<<<<<<<<<< * self._dispatch = 8 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_min_items); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 137, __pyx_L1_error) __pyx_v_self->min_items = __pyx_t_1; /* "apischema/deserialization/methods.pyx":138 * self.error = error * self.min_items = min_items * self._dispatch = 8 # <<<<<<<<<<<<<< * * cdef class MaxItemsConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 8; /* "apischema/deserialization/methods.pyx":135 * return MinItemsConstraint_validate(self, data) * * def __init__(self, error, min_items): # <<<<<<<<<<<<<< * self.error = error * self.min_items = min_items */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":130 * * cdef class MinItemsConstraint(Constraint): * cdef readonly long min_items # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_9min_items_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_9min_items_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_9min_items___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_9min_items___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->min_items); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.min_items.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18MinItemsConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.min_items) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->min_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.min_items) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.min_items) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.min_items) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MinItemsConstrain); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_49712037); __Pyx_GIVEREF(__pyx_int_49712037); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_49712037)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, None), state * else: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinItemsConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MinItemsConstrain); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_49712037); __Pyx_GIVEREF(__pyx_int_49712037); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_49712037)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinItemsConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18MinItemsConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MinItemsConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinItemsConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinItemsConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinItemsConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":143 * cdef readonly long max_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxItemsConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":144 * * cpdef validate(self, object data): * return MaxItemsConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, max_items): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MaxItemsConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":143 * cdef readonly long max_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxItemsConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 143, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 143, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 143, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":146 * return MaxItemsConstraint_validate(self, data) * * def __init__(self, error, max_items): # <<<<<<<<<<<<<< * self.error = error * self.max_items = max_items */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_max_items = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_max_items,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 146, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_max_items)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 146, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 146, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 146, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_max_items = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 146, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_max_items); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_max_items) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":147 * * def __init__(self, error, max_items): * self.error = error # <<<<<<<<<<<<<< * self.max_items = max_items * self._dispatch = 9 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":148 * def __init__(self, error, max_items): * self.error = error * self.max_items = max_items # <<<<<<<<<<<<<< * self._dispatch = 9 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_max_items); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error) __pyx_v_self->max_items = __pyx_t_1; /* "apischema/deserialization/methods.pyx":149 * self.error = error * self.max_items = max_items * self._dispatch = 9 # <<<<<<<<<<<<<< * * cdef class UniqueItemsConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 9; /* "apischema/deserialization/methods.pyx":146 * return MaxItemsConstraint_validate(self, data) * * def __init__(self, error, max_items): # <<<<<<<<<<<<<< * self.error = error * self.max_items = max_items */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":141 * * cdef class MaxItemsConstraint(Constraint): * cdef readonly long max_items # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_9max_items_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_9max_items_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_9max_items___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_9max_items___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->max_items); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.max_items.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18MaxItemsConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.max_items) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->max_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.max_items) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.max_items) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.max_items) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MaxItemsConstrain); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_125047544); __Pyx_GIVEREF(__pyx_int_125047544); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_125047544)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, None), state * else: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaxItemsConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MaxItemsConstrain); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_125047544); __Pyx_GIVEREF(__pyx_int_125047544); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_125047544)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxItemsConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18MaxItemsConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18MaxItemsConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaxItemsConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxItemsConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxItemsConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":154 * cdef readonly bint unique * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return UniqueItemsConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":155 * * cpdef validate(self, object data): * return UniqueItemsConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, unique): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_UniqueItemsConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":154 * cdef readonly bint unique * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return UniqueItemsConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 154, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 154, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 154, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":157 * return UniqueItemsConstraint_validate(self, data) * * def __init__(self, error, unique): # <<<<<<<<<<<<<< * self.error = error * self.unique = unique */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_unique = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_unique,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unique)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 157, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 157, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 157, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_unique = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 157, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_unique); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_unique) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":158 * * def __init__(self, error, unique): * self.error = error # <<<<<<<<<<<<<< * self.unique = unique * assert self.unique */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":159 * def __init__(self, error, unique): * self.error = error * self.unique = unique # <<<<<<<<<<<<<< * assert self.unique * self._dispatch = 10 */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_unique); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 159, __pyx_L1_error) __pyx_v_self->unique = __pyx_t_1; /* "apischema/deserialization/methods.pyx":160 * self.error = error * self.unique = unique * assert self.unique # <<<<<<<<<<<<<< * self._dispatch = 10 * */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { if (unlikely(!__pyx_v_self->unique)) { __Pyx_Raise(__pyx_builtin_AssertionError, 0, 0, 0); __PYX_ERR(0, 160, __pyx_L1_error) } } #else if ((1)); else __PYX_ERR(0, 160, __pyx_L1_error) #endif /* "apischema/deserialization/methods.pyx":161 * self.unique = unique * assert self.unique * self._dispatch = 10 # <<<<<<<<<<<<<< * * cdef class MinPropertiesConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 10; /* "apischema/deserialization/methods.pyx":157 * return UniqueItemsConstraint_validate(self, data) * * def __init__(self, error, unique): # <<<<<<<<<<<<<< * self.error = error * self.unique = unique */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":152 * * cdef class UniqueItemsConstraint(Constraint): * cdef readonly bint unique # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6unique_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6unique_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6unique___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6unique___get__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->unique); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.unique.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21UniqueItemsConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.unique) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->unique); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.unique) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.unique) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.unique) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_UniqueItemsConstr); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_267302923); __Pyx_GIVEREF(__pyx_int_267302923); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_267302923)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, None), state * else: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_UniqueItemsConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_UniqueItemsConstr); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_267302923); __Pyx_GIVEREF(__pyx_int_267302923); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_267302923)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UniqueItemsConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21UniqueItemsConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_UniqueItemsConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UniqueItemsConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UniqueItemsConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":166 * cdef readonly long min_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinPropertiesConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":167 * * cpdef validate(self, object data): * return MinPropertiesConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, min_properties): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MinPropertiesConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":166 * cdef readonly long min_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinPropertiesConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 166, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 166, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 166, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":169 * return MinPropertiesConstraint_validate(self, data) * * def __init__(self, error, min_properties): # <<<<<<<<<<<<<< * self.error = error * self.min_properties = min_properties */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_min_properties = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_min_properties,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 169, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_min_properties)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 169, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 169, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 169, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_min_properties = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 169, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_min_properties); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_min_properties) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":170 * * def __init__(self, error, min_properties): * self.error = error # <<<<<<<<<<<<<< * self.min_properties = min_properties * self._dispatch = 11 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":171 * def __init__(self, error, min_properties): * self.error = error * self.min_properties = min_properties # <<<<<<<<<<<<<< * self._dispatch = 11 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_min_properties); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 171, __pyx_L1_error) __pyx_v_self->min_properties = __pyx_t_1; /* "apischema/deserialization/methods.pyx":172 * self.error = error * self.min_properties = min_properties * self._dispatch = 11 # <<<<<<<<<<<<<< * * cdef class MaxPropertiesConstraint(Constraint): */ __pyx_v_self->__pyx_base._dispatch = 11; /* "apischema/deserialization/methods.pyx":169 * return MinPropertiesConstraint_validate(self, data) * * def __init__(self, error, min_properties): # <<<<<<<<<<<<<< * self.error = error * self.min_properties = min_properties */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":164 * * cdef class MinPropertiesConstraint(Constraint): * cdef readonly long min_properties # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_14min_properties_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_14min_properties_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_14min_properties___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_14min_properties___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->min_properties); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.min_properties.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23MinPropertiesConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.min_properties) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->min_properties); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.min_properties) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.min_properties) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.min_properties) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MinPropertiesCons); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_59973580); __Pyx_GIVEREF(__pyx_int_59973580); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_59973580)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, None), state * else: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinPropertiesConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MinPropertiesCons); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_59973580); __Pyx_GIVEREF(__pyx_int_59973580); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_59973580)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinPropertiesConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23MinPropertiesConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MinPropertiesConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MinPropertiesConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinPropertiesConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinPropertiesConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":177 * cdef readonly long max_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxPropertiesConstraint_validate(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":178 * * cpdef validate(self, object data): * return MaxPropertiesConstraint_validate(self, data) # <<<<<<<<<<<<<< * * def __init__(self, error, max_properties): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MaxPropertiesConstraint_validate(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":177 * cdef readonly long max_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxPropertiesConstraint_validate(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate = {"validate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 177, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate") < 0)) __PYX_ERR(0, 177, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 177, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":180 * return MaxPropertiesConstraint_validate(self, data) * * def __init__(self, error, max_properties): # <<<<<<<<<<<<<< * self.error = error * self.max_properties = max_properties */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_error = 0; PyObject *__pyx_v_max_properties = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_max_properties,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 180, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_max_properties)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 180, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 180, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 180, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_error = values[0]; __pyx_v_max_properties = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 180, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v_self), __pyx_v_error, __pyx_v_max_properties); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_error, PyObject *__pyx_v_max_properties) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":181 * * def __init__(self, error, max_properties): * self.error = error # <<<<<<<<<<<<<< * self.max_properties = max_properties * self._dispatch = 12 */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->__pyx_base.error); __Pyx_DECREF(__pyx_v_self->__pyx_base.error); __pyx_v_self->__pyx_base.error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":182 * def __init__(self, error, max_properties): * self.error = error * self.max_properties = max_properties # <<<<<<<<<<<<<< * self._dispatch = 12 * */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_max_properties); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 182, __pyx_L1_error) __pyx_v_self->max_properties = __pyx_t_1; /* "apischema/deserialization/methods.pyx":183 * self.error = error * self.max_properties = max_properties * self._dispatch = 12 # <<<<<<<<<<<<<< * * cdef class DeserializationMethod(): */ __pyx_v_self->__pyx_base._dispatch = 12; /* "apischema/deserialization/methods.pyx":180 * return MaxPropertiesConstraint_validate(self, data) * * def __init__(self, error, max_properties): # <<<<<<<<<<<<<< * self.error = error * self.max_properties = max_properties */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":175 * * cdef class MaxPropertiesConstraint(Constraint): * cdef readonly long max_properties # <<<<<<<<<<<<<< * * cpdef validate(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_14max_properties_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_14max_properties_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_14max_properties___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_14max_properties___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->max_properties); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.max_properties.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.error, self.max_properties) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->max_properties); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.error); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.error, self.max_properties) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.max_properties) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.error, self.max_properties) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.error != Py_None); __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.error is not None * if use_setstate: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MaxPropertiesCons); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_25683109); __Pyx_GIVEREF(__pyx_int_25683109); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_25683109)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, None), state * else: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaxPropertiesConstraint__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_MaxPropertiesCons); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_25683109); __Pyx_GIVEREF(__pyx_int_25683109); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_25683109)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxPropertiesConstraint__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MaxPropertiesConstraint__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxPropertiesConstraint__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxPropertiesConstraint__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21DeserializationMethod_1__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_1__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21DeserializationMethod___reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21DeserializationMethod___reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_DeserializationMe); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_232429629)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, None), state * else: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_DeserializationMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_DeserializationMe); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_232429629)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.DeserializationMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DeserializationMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21DeserializationMethod_3__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_3__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.DeserializationMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21DeserializationMethod_2__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21DeserializationMethod_2__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_DeserializationMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DeserializationMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DeserializationMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.DeserializationMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":192 * cdef readonly object method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return RecMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9RecMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_9RecMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":193 * * cpdef deserialize(self, object data): * return RecMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, lazy): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_RecMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":192 * cdef readonly object method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return RecMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9RecMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 192, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 192, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 192, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_9RecMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":195 * return RecMethod_deserialize(self, data) * * def __init__(self, lazy): # <<<<<<<<<<<<<< * self.lazy = lazy * self.method = None */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_9RecMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_9RecMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_lazy = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_lazy,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_lazy)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 195, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 195, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_lazy = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 195, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self), __pyx_v_lazy); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_lazy) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":196 * * def __init__(self, lazy): * self.lazy = lazy # <<<<<<<<<<<<<< * self.method = None * self._dispatch = 0 */ __Pyx_INCREF(__pyx_v_lazy); __Pyx_GIVEREF(__pyx_v_lazy); __Pyx_GOTREF(__pyx_v_self->lazy); __Pyx_DECREF(__pyx_v_self->lazy); __pyx_v_self->lazy = __pyx_v_lazy; /* "apischema/deserialization/methods.pyx":197 * def __init__(self, lazy): * self.lazy = lazy * self.method = None # <<<<<<<<<<<<<< * self._dispatch = 0 * */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->method); __Pyx_DECREF(__pyx_v_self->method); __pyx_v_self->method = Py_None; /* "apischema/deserialization/methods.pyx":198 * self.lazy = lazy * self.method = None * self._dispatch = 0 # <<<<<<<<<<<<<< * * cdef class ValidatorMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 0; /* "apischema/deserialization/methods.pyx":195 * return RecMethod_deserialize(self, data) * * def __init__(self, lazy): # <<<<<<<<<<<<<< * self.lazy = lazy * self.method = None */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":189 * * cdef class RecMethod(DeserializationMethod): * cdef readonly object lazy # <<<<<<<<<<<<<< * cdef readonly object method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_4lazy_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_4lazy_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_4lazy___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_4lazy___get__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->lazy); __pyx_r = __pyx_v_self->lazy; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":190 * cdef class RecMethod(DeserializationMethod): * cdef readonly object lazy * cdef readonly object method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->method); __pyx_r = __pyx_v_self->method; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9RecMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.lazy, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->lazy); __Pyx_GIVEREF(__pyx_v_self->lazy); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->lazy)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->method); __Pyx_GIVEREF(__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->method)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.lazy, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.lazy, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.lazy is not None or self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.lazy, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.lazy is not None or self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->lazy != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->method != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.lazy is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.lazy is not None or self.method is not None * if use_setstate: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_RecMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_68348896); __Pyx_GIVEREF(__pyx_int_68348896); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_68348896)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.lazy is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, None), state * else: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_RecMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_RecMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_68348896); __Pyx_GIVEREF(__pyx_int_68348896); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_68348896)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RecMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9RecMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9RecMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9RecMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_RecMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RecMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RecMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":205 * cdef readonly object aliaser * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ValidatorMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":206 * * cpdef deserialize(self, object data): * return ValidatorMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, method, validators, aliaser): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ValidatorMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":205 * cdef readonly object aliaser * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ValidatorMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 205, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 205, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 205, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":208 * return ValidatorMethod_deserialize(self, data) * * def __init__(self, method, validators, aliaser): # <<<<<<<<<<<<<< * self.method = method * self.validators = validators */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_method = 0; PyObject *__pyx_v_validators = 0; PyObject *__pyx_v_aliaser = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,&__pyx_n_s_validators,&__pyx_n_s_aliaser,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_validators)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 208, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_aliaser)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 208, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 208, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); } __pyx_v_method = values[0]; __pyx_v_validators = values[1]; __pyx_v_aliaser = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 208, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self), __pyx_v_method, __pyx_v_validators, __pyx_v_aliaser); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_method, PyObject *__pyx_v_validators, PyObject *__pyx_v_aliaser) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":209 * * def __init__(self, method, validators, aliaser): * self.method = method # <<<<<<<<<<<<<< * self.validators = validators * self.aliaser = aliaser */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 209, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":210 * def __init__(self, method, validators, aliaser): * self.method = method * self.validators = validators # <<<<<<<<<<<<<< * self.aliaser = aliaser * self._dispatch = 1 */ __Pyx_INCREF(__pyx_v_validators); __Pyx_GIVEREF(__pyx_v_validators); __Pyx_GOTREF(__pyx_v_self->validators); __Pyx_DECREF(__pyx_v_self->validators); __pyx_v_self->validators = __pyx_v_validators; /* "apischema/deserialization/methods.pyx":211 * self.method = method * self.validators = validators * self.aliaser = aliaser # <<<<<<<<<<<<<< * self._dispatch = 1 * */ __Pyx_INCREF(__pyx_v_aliaser); __Pyx_GIVEREF(__pyx_v_aliaser); __Pyx_GOTREF(__pyx_v_self->aliaser); __Pyx_DECREF(__pyx_v_self->aliaser); __pyx_v_self->aliaser = __pyx_v_aliaser; /* "apischema/deserialization/methods.pyx":212 * self.validators = validators * self.aliaser = aliaser * self._dispatch = 1 # <<<<<<<<<<<<<< * * cdef class CoercerMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 1; /* "apischema/deserialization/methods.pyx":208 * return ValidatorMethod_deserialize(self, data) * * def __init__(self, method, validators, aliaser): # <<<<<<<<<<<<<< * self.method = method * self.validators = validators */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":201 * * cdef class ValidatorMethod(DeserializationMethod): * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * cdef readonly object validators * cdef readonly object aliaser */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":202 * cdef class ValidatorMethod(DeserializationMethod): * cdef readonly DeserializationMethod method * cdef readonly object validators # <<<<<<<<<<<<<< * cdef readonly object aliaser * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_10validators_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_10validators_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_10validators___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_10validators___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->validators); __pyx_r = __pyx_v_self->validators; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":203 * cdef readonly DeserializationMethod method * cdef readonly object validators * cdef readonly object aliaser # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7aliaser_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7aliaser_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_7aliaser___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_7aliaser___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->aliaser); __pyx_r = __pyx_v_self->aliaser; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15ValidatorMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.aliaser, self.method, self.validators) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->aliaser); __Pyx_GIVEREF(__pyx_v_self->aliaser); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->aliaser)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->validators); __Pyx_GIVEREF(__pyx_v_self->validators); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->validators)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.aliaser, self.method, self.validators) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.aliaser, self.method, self.validators) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.aliaser is not None or self.method is not None or self.validators is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.aliaser, self.method, self.validators) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.aliaser is not None or self.method is not None or self.validators is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->aliaser != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->validators != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.aliaser is not None or self.method is not None or self.validators is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.aliaser is not None or self.method is not None or self.validators is not None * if use_setstate: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ValidatorMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_6074692); __Pyx_GIVEREF(__pyx_int_6074692); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_6074692)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.aliaser is not None or self.method is not None or self.validators is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, None), state * else: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ValidatorMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ValidatorMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_6074692); __Pyx_GIVEREF(__pyx_int_6074692); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_6074692)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ValidatorMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15ValidatorMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15ValidatorMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ValidatorMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ValidatorMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ValidatorMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":219 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return CoercerMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13CoercerMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":220 * * cpdef deserialize(self, object data): * return CoercerMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, coercer, cls, method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_CoercerMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":219 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return CoercerMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 219, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 219, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 219, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_13CoercerMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":222 * return CoercerMethod_deserialize(self, data) * * def __init__(self, coercer, cls, method): # <<<<<<<<<<<<<< * self.coercer = coercer * self.cls = cls */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_coercer = 0; PyObject *__pyx_v_cls = 0; PyObject *__pyx_v_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coercer,&__pyx_n_s_cls,&__pyx_n_s_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_coercer)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 222, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 222, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 222, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 222, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 222, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 222, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); } __pyx_v_coercer = values[0]; __pyx_v_cls = values[1]; __pyx_v_method = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 222, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self), __pyx_v_coercer, __pyx_v_cls, __pyx_v_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_coercer, PyObject *__pyx_v_cls, PyObject *__pyx_v_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":223 * * def __init__(self, coercer, cls, method): * self.coercer = coercer # <<<<<<<<<<<<<< * self.cls = cls * self.method = method */ __Pyx_INCREF(__pyx_v_coercer); __Pyx_GIVEREF(__pyx_v_coercer); __Pyx_GOTREF(__pyx_v_self->coercer); __Pyx_DECREF(__pyx_v_self->coercer); __pyx_v_self->coercer = __pyx_v_coercer; /* "apischema/deserialization/methods.pyx":224 * def __init__(self, coercer, cls, method): * self.coercer = coercer * self.cls = cls # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 2 */ if (!(likely(((__pyx_v_cls) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_cls, __pyx_ptype_7cpython_4type_type))))) __PYX_ERR(0, 224, __pyx_L1_error) __pyx_t_1 = __pyx_v_cls; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->cls); __Pyx_DECREF((PyObject *)__pyx_v_self->cls); __pyx_v_self->cls = ((PyTypeObject *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":225 * self.coercer = coercer * self.cls = cls * self.method = method # <<<<<<<<<<<<<< * self._dispatch = 2 * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 225, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":226 * self.cls = cls * self.method = method * self._dispatch = 2 # <<<<<<<<<<<<<< * * cdef class TypeCheckMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 2; /* "apischema/deserialization/methods.pyx":222 * return CoercerMethod_deserialize(self, data) * * def __init__(self, coercer, cls, method): # <<<<<<<<<<<<<< * self.coercer = coercer * self.cls = cls */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":215 * * cdef class CoercerMethod(DeserializationMethod): * cdef readonly object coercer # <<<<<<<<<<<<<< * cdef readonly type cls * cdef readonly DeserializationMethod method */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7coercer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7coercer_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_7coercer___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_7coercer___get__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->coercer); __pyx_r = __pyx_v_self->coercer; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":216 * cdef class CoercerMethod(DeserializationMethod): * cdef readonly object coercer * cdef readonly type cls # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3cls_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3cls_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_3cls___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_3cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->cls); __pyx_r = ((PyObject *)__pyx_v_self->cls); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":217 * cdef readonly object coercer * cdef readonly type cls * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13CoercerMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls, self.coercer, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->cls); __Pyx_GIVEREF((PyObject *)__pyx_v_self->cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->cls))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->coercer); __Pyx_GIVEREF(__pyx_v_self->coercer); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->coercer)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls, self.coercer, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls, self.coercer, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None or self.coercer is not None or self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls, self.coercer, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None or self.coercer is not None or self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, None), state */ /*else*/ { __pyx_t_4 = (((PyObject *)__pyx_v_self->cls) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->coercer != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None or self.coercer is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None or self.coercer is not None or self.method is not None * if use_setstate: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_CoercerMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_17381039); __Pyx_GIVEREF(__pyx_int_17381039); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_17381039)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None or self.coercer is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, None), state * else: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_CoercerMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_CoercerMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_17381039); __Pyx_GIVEREF(__pyx_int_17381039); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_17381039)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_CoercerMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13CoercerMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13CoercerMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_CoercerMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_CoercerMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_CoercerMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":232 * cdef readonly DeserializationMethod fallback * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TypeCheckMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":233 * * cpdef deserialize(self, object data): * return TypeCheckMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, expected, fallback): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_TypeCheckMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":232 * cdef readonly DeserializationMethod fallback * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TypeCheckMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 232, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 232, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":235 * return TypeCheckMethod_deserialize(self, data) * * def __init__(self, expected, fallback): # <<<<<<<<<<<<<< * self.expected = expected * self.fallback = fallback */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_expected = 0; PyObject *__pyx_v_fallback = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_expected,&__pyx_n_s_fallback,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_expected)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 235, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fallback)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 235, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 235, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 235, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_expected = values[0]; __pyx_v_fallback = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 235, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self), __pyx_v_expected, __pyx_v_fallback); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_expected, PyObject *__pyx_v_fallback) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":236 * * def __init__(self, expected, fallback): * self.expected = expected # <<<<<<<<<<<<<< * self.fallback = fallback * self._dispatch = 3 */ __Pyx_INCREF(__pyx_v_expected); __Pyx_GIVEREF(__pyx_v_expected); __Pyx_GOTREF(__pyx_v_self->expected); __Pyx_DECREF(__pyx_v_self->expected); __pyx_v_self->expected = __pyx_v_expected; /* "apischema/deserialization/methods.pyx":237 * def __init__(self, expected, fallback): * self.expected = expected * self.fallback = fallback # <<<<<<<<<<<<<< * self._dispatch = 3 * */ if (!(likely(((__pyx_v_fallback) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_fallback, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 237, __pyx_L1_error) __pyx_t_1 = __pyx_v_fallback; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->fallback); __Pyx_DECREF((PyObject *)__pyx_v_self->fallback); __pyx_v_self->fallback = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":238 * self.expected = expected * self.fallback = fallback * self._dispatch = 3 # <<<<<<<<<<<<<< * * cdef class AnyMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 3; /* "apischema/deserialization/methods.pyx":235 * return TypeCheckMethod_deserialize(self, data) * * def __init__(self, expected, fallback): # <<<<<<<<<<<<<< * self.expected = expected * self.fallback = fallback */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":229 * * cdef class TypeCheckMethod(DeserializationMethod): * cdef readonly object expected # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod fallback * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_8expected_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_8expected_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_8expected___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_8expected___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->expected); __pyx_r = __pyx_v_self->expected; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":230 * cdef class TypeCheckMethod(DeserializationMethod): * cdef readonly object expected * cdef readonly DeserializationMethod fallback # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_8fallback_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_8fallback_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_8fallback___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_8fallback___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->fallback); __pyx_r = ((PyObject *)__pyx_v_self->fallback); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15TypeCheckMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.expected, self.fallback) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->expected); __Pyx_GIVEREF(__pyx_v_self->expected); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->expected)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->fallback); __Pyx_GIVEREF((PyObject *)__pyx_v_self->fallback); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->fallback))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.expected, self.fallback) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.expected, self.fallback) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.expected is not None or self.fallback is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.expected, self.fallback) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.expected is not None or self.fallback is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->expected != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->fallback) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.expected is not None or self.fallback is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.expected is not None or self.fallback is not None * if use_setstate: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_TypeCheckMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_247471373); __Pyx_GIVEREF(__pyx_int_247471373); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_247471373)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.expected is not None or self.fallback is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, None), state * else: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_TypeCheckMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_TypeCheckMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_247471373); __Pyx_GIVEREF(__pyx_int_247471373); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_247471373)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TypeCheckMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15TypeCheckMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15TypeCheckMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_TypeCheckMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TypeCheckMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TypeCheckMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":243 * cdef readonly dict constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return AnyMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9AnyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":244 * * cpdef deserialize(self, object data): * return AnyMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_AnyMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":243 * cdef readonly dict constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return AnyMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9AnyMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 243, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 243, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 243, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_9AnyMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":246 * return AnyMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 4 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 246, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 246, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_constraints = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 246, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v_self), __pyx_v_constraints); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_constraints) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":247 * * def __init__(self, constraints): * self.constraints = constraints # <<<<<<<<<<<<<< * self._dispatch = 4 * */ if (!(likely(PyDict_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_v_constraints))) __PYX_ERR(0, 247, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":248 * def __init__(self, constraints): * self.constraints = constraints * self._dispatch = 4 # <<<<<<<<<<<<<< * * cdef class ListCheckOnlyMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 4; /* "apischema/deserialization/methods.pyx":246 * return AnyMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 4 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":241 * * cdef class AnyMethod(DeserializationMethod): * cdef readonly dict constraints # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9AnyMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None * if use_setstate: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_AnyMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_39646481)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, None), state * else: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_AnyMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_AnyMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_39646481)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AnyMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9AnyMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9AnyMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_AnyMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AnyMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AnyMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":254 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListCheckOnlyMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":255 * * cpdef deserialize(self, object data): * return ListCheckOnlyMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints, value_method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ListCheckOnlyMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":254 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListCheckOnlyMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 254, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 254, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 254, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":257 * return ListCheckOnlyMethod_deserialize(self, data) * * def __init__(self, constraints, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.value_method = value_method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_value_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,&__pyx_n_s_value_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 257, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 257, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 257, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 257, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_constraints = values[0]; __pyx_v_value_method = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 257, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self), __pyx_v_constraints, __pyx_v_value_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_value_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":258 * * def __init__(self, constraints, value_method): * self.constraints = constraints # <<<<<<<<<<<<<< * self.value_method = value_method * self._dispatch = 5 */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 258, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":259 * def __init__(self, constraints, value_method): * self.constraints = constraints * self.value_method = value_method # <<<<<<<<<<<<<< * self._dispatch = 5 * */ if (!(likely(((__pyx_v_value_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 259, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->value_method); __Pyx_DECREF((PyObject *)__pyx_v_self->value_method); __pyx_v_self->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":260 * self.constraints = constraints * self.value_method = value_method * self._dispatch = 5 # <<<<<<<<<<<<<< * * cdef class ListMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 5; /* "apischema/deserialization/methods.pyx":257 * return ListCheckOnlyMethod_deserialize(self, data) * * def __init__(self, constraints, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.value_method = value_method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":251 * * cdef class ListCheckOnlyMethod(DeserializationMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":252 * cdef class ListCheckOnlyMethod(DeserializationMethod): * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_12value_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_12value_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_12value_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __pyx_r = ((PyObject *)__pyx_v_self->value_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.value_method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->value_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->value_method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None or self.value_method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None or self.value_method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->value_method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ListCheckOnlyMeth); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34399964); __Pyx_GIVEREF(__pyx_int_34399964); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_34399964)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, None), state * else: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ListCheckOnlyMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ListCheckOnlyMeth); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34399964); __Pyx_GIVEREF(__pyx_int_34399964); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_34399964)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListCheckOnlyMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ListCheckOnlyMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListCheckOnlyMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListCheckOnlyMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":266 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_10ListMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_10ListMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":267 * * cpdef deserialize(self, object data): * return ListMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints, value_method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ListMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":266 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10ListMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 266, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 266, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 266, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_10ListMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":269 * return ListMethod_deserialize(self, data) * * def __init__(self, constraints, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.value_method = value_method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_10ListMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_10ListMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_value_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,&__pyx_n_s_value_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 269, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 269, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 269, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 269, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_constraints = values[0]; __pyx_v_value_method = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 269, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self), __pyx_v_constraints, __pyx_v_value_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_value_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":270 * * def __init__(self, constraints, value_method): * self.constraints = constraints # <<<<<<<<<<<<<< * self.value_method = value_method * self._dispatch = 6 */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 270, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":271 * def __init__(self, constraints, value_method): * self.constraints = constraints * self.value_method = value_method # <<<<<<<<<<<<<< * self._dispatch = 6 * */ if (!(likely(((__pyx_v_value_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 271, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->value_method); __Pyx_DECREF((PyObject *)__pyx_v_self->value_method); __pyx_v_self->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":272 * self.constraints = constraints * self.value_method = value_method * self._dispatch = 6 # <<<<<<<<<<<<<< * * cdef class SetMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 6; /* "apischema/deserialization/methods.pyx":269 * return ListMethod_deserialize(self, data) * * def __init__(self, constraints, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.value_method = value_method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":263 * * cdef class ListMethod(DeserializationMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":264 * cdef class ListMethod(DeserializationMethod): * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_12value_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_12value_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_12value_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __pyx_r = ((PyObject *)__pyx_v_self->value_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10ListMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.value_method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->value_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->value_method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None or self.value_method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None or self.value_method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->value_method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ListMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34399964); __Pyx_GIVEREF(__pyx_int_34399964); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_34399964)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, None), state * else: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ListMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ListMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34399964); __Pyx_GIVEREF(__pyx_int_34399964); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_34399964)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10ListMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10ListMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10ListMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ListMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":278 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SetMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9SetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_9SetMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":279 * * cpdef deserialize(self, object data): * return SetMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints, value_method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_SetMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":278 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SetMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9SetMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 278, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 278, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 278, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_9SetMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":281 * return SetMethod_deserialize(self, data) * * def __init__(self, constraints, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.value_method = value_method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_9SetMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_9SetMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_value_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,&__pyx_n_s_value_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 281, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 281, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 281, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 281, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_constraints = values[0]; __pyx_v_value_method = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 281, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self), __pyx_v_constraints, __pyx_v_value_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_value_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":282 * * def __init__(self, constraints, value_method): * self.constraints = constraints # <<<<<<<<<<<<<< * self.value_method = value_method * self._dispatch = 7 */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 282, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":283 * def __init__(self, constraints, value_method): * self.constraints = constraints * self.value_method = value_method # <<<<<<<<<<<<<< * self._dispatch = 7 * */ if (!(likely(((__pyx_v_value_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 283, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->value_method); __Pyx_DECREF((PyObject *)__pyx_v_self->value_method); __pyx_v_self->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":284 * self.constraints = constraints * self.value_method = value_method * self._dispatch = 7 # <<<<<<<<<<<<<< * * cdef class FrozenSetMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 7; /* "apischema/deserialization/methods.pyx":281 * return SetMethod_deserialize(self, data) * * def __init__(self, constraints, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.value_method = value_method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":275 * * cdef class SetMethod(DeserializationMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":276 * cdef class SetMethod(DeserializationMethod): * cdef readonly tuple constraints * cdef readonly DeserializationMethod value_method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_12value_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_12value_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_12value_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __pyx_r = ((PyObject *)__pyx_v_self->value_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9SetMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.value_method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->value_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->value_method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None or self.value_method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None or self.value_method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->value_method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_SetMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34399964); __Pyx_GIVEREF(__pyx_int_34399964); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_34399964)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, None), state * else: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_SetMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_SetMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34399964); __Pyx_GIVEREF(__pyx_int_34399964); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_34399964)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SetMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9SetMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9SetMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9SetMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_SetMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SetMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SetMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":289 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FrozenSetMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":290 * * cpdef deserialize(self, object data): * return FrozenSetMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_FrozenSetMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":289 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FrozenSetMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 289, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 289, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 289, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":292 * return FrozenSetMethod_deserialize(self, data) * * def __init__(self, method): # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 8 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 292, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 292, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_method = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 292, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v_self), __pyx_v_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":293 * * def __init__(self, method): * self.method = method # <<<<<<<<<<<<<< * self._dispatch = 8 * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 293, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":294 * def __init__(self, method): * self.method = method * self._dispatch = 8 # <<<<<<<<<<<<<< * * cdef class VariadicTupleMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 8; /* "apischema/deserialization/methods.pyx":292 * return FrozenSetMethod_deserialize(self, data) * * def __init__(self, method): # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 8 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":287 * * cdef class FrozenSetMethod(DeserializationMethod): * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15FrozenSetMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, None), state */ /*else*/ { __pyx_t_3 = (((PyObject *)__pyx_v_self->method) != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.method is not None * if use_setstate: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_FrozenSetMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_188225458); __Pyx_GIVEREF(__pyx_int_188225458); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_188225458)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, None), state * else: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FrozenSetMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_FrozenSetMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_188225458); __Pyx_GIVEREF(__pyx_int_188225458); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_188225458)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FrozenSetMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15FrozenSetMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15FrozenSetMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FrozenSetMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FrozenSetMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FrozenSetMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":299 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return VariadicTupleMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":300 * * cpdef deserialize(self, object data): * return VariadicTupleMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_VariadicTupleMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":299 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return VariadicTupleMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 299, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 299, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 299, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":302 * return VariadicTupleMethod_deserialize(self, data) * * def __init__(self, method): # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 9 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 302, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 302, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_method = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 302, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v_self), __pyx_v_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":303 * * def __init__(self, method): * self.method = method # <<<<<<<<<<<<<< * self._dispatch = 9 * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 303, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":304 * def __init__(self, method): * self.method = method * self._dispatch = 9 # <<<<<<<<<<<<<< * * cdef class LiteralMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 9; /* "apischema/deserialization/methods.pyx":302 * return VariadicTupleMethod_deserialize(self, data) * * def __init__(self, method): # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 9 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":297 * * cdef class VariadicTupleMethod(DeserializationMethod): * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19VariadicTupleMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, None), state */ /*else*/ { __pyx_t_3 = (((PyObject *)__pyx_v_self->method) != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.method is not None * if use_setstate: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_VariadicTupleMeth); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_188225458); __Pyx_GIVEREF(__pyx_int_188225458); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_188225458)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, None), state * else: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_VariadicTupleMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VariadicTupleMeth); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_188225458); __Pyx_GIVEREF(__pyx_int_188225458); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_188225458)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_VariadicTupleMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19VariadicTupleMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19VariadicTupleMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_VariadicTupleMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_VariadicTupleMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_VariadicTupleMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":312 * cdef readonly tuple types * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return LiteralMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13LiteralMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":313 * * cpdef deserialize(self, object data): * return LiteralMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, value_map, error, coercer, types): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_LiteralMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":312 * cdef readonly tuple types * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return LiteralMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 312, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 312, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 312, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_13LiteralMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":315 * return LiteralMethod_deserialize(self, data) * * def __init__(self, value_map, error, coercer, types): # <<<<<<<<<<<<<< * self.value_map = value_map * self.error = error */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_value_map = 0; PyObject *__pyx_v_error = 0; PyObject *__pyx_v_coercer = 0; PyObject *__pyx_v_types = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[4] = {0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_value_map,&__pyx_n_s_error,&__pyx_n_s_coercer,&__pyx_n_s_types,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_map)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 315, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 315, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 315, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_coercer)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 315, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 315, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_types)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 315, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 315, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 315, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); } __pyx_v_value_map = values[0]; __pyx_v_error = values[1]; __pyx_v_coercer = values[2]; __pyx_v_types = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 315, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self), __pyx_v_value_map, __pyx_v_error, __pyx_v_coercer, __pyx_v_types); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_value_map, PyObject *__pyx_v_error, PyObject *__pyx_v_coercer, PyObject *__pyx_v_types) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":316 * * def __init__(self, value_map, error, coercer, types): * self.value_map = value_map # <<<<<<<<<<<<<< * self.error = error * self.coercer = coercer */ if (!(likely(PyDict_CheckExact(__pyx_v_value_map))||((__pyx_v_value_map) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_v_value_map))) __PYX_ERR(0, 316, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_map; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->value_map); __Pyx_DECREF(__pyx_v_self->value_map); __pyx_v_self->value_map = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":317 * def __init__(self, value_map, error, coercer, types): * self.value_map = value_map * self.error = error # <<<<<<<<<<<<<< * self.coercer = coercer * self.types = types */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->error); __Pyx_DECREF(__pyx_v_self->error); __pyx_v_self->error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":318 * self.value_map = value_map * self.error = error * self.coercer = coercer # <<<<<<<<<<<<<< * self.types = types * self._dispatch = 10 */ __Pyx_INCREF(__pyx_v_coercer); __Pyx_GIVEREF(__pyx_v_coercer); __Pyx_GOTREF(__pyx_v_self->coercer); __Pyx_DECREF(__pyx_v_self->coercer); __pyx_v_self->coercer = __pyx_v_coercer; /* "apischema/deserialization/methods.pyx":319 * self.error = error * self.coercer = coercer * self.types = types # <<<<<<<<<<<<<< * self._dispatch = 10 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_types))||((__pyx_v_types) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_types))) __PYX_ERR(0, 319, __pyx_L1_error) __pyx_t_1 = __pyx_v_types; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->types); __Pyx_DECREF(__pyx_v_self->types); __pyx_v_self->types = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":320 * self.coercer = coercer * self.types = types * self._dispatch = 10 # <<<<<<<<<<<<<< * * cdef class MappingCheckOnly(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 10; /* "apischema/deserialization/methods.pyx":315 * return LiteralMethod_deserialize(self, data) * * def __init__(self, value_map, error, coercer, types): # <<<<<<<<<<<<<< * self.value_map = value_map * self.error = error */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":307 * * cdef class LiteralMethod(DeserializationMethod): * cdef readonly dict value_map # <<<<<<<<<<<<<< * cdef readonly object error * cdef readonly object coercer */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_9value_map_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_9value_map_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_9value_map___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_9value_map___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->value_map); __pyx_r = __pyx_v_self->value_map; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":308 * cdef class LiteralMethod(DeserializationMethod): * cdef readonly dict value_map * cdef readonly object error # <<<<<<<<<<<<<< * cdef readonly object coercer * cdef readonly tuple types */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5error_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_5error___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_5error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->error); __pyx_r = __pyx_v_self->error; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":309 * cdef readonly dict value_map * cdef readonly object error * cdef readonly object coercer # <<<<<<<<<<<<<< * cdef readonly tuple types * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7coercer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7coercer_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_7coercer___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_7coercer___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->coercer); __pyx_r = __pyx_v_self->coercer; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":310 * cdef readonly object error * cdef readonly object coercer * cdef readonly tuple types # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5types_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5types_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_5types___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_5types___get__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->types); __pyx_r = __pyx_v_self->types; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13LiteralMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.coercer, self.error, self.types, self.value_map) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->coercer); __Pyx_GIVEREF(__pyx_v_self->coercer); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->coercer)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->error); __Pyx_GIVEREF(__pyx_v_self->error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->types); __Pyx_GIVEREF(__pyx_v_self->types); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->types)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->value_map); __Pyx_GIVEREF(__pyx_v_self->value_map); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_self->value_map)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.coercer, self.error, self.types, self.value_map) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.coercer, self.error, self.types, self.value_map) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.coercer is not None or self.error is not None or self.types is not None or self.value_map is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.coercer, self.error, self.types, self.value_map) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.coercer is not None or self.error is not None or self.types is not None or self.value_map is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->coercer != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->error != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->types != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->value_map != ((PyObject*)Py_None)); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.coercer is not None or self.error is not None or self.types is not None or self.value_map is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.coercer is not None or self.error is not None or self.types is not None or self.value_map is not None * if use_setstate: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_LiteralMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_137271932); __Pyx_GIVEREF(__pyx_int_137271932); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_137271932)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.coercer is not None or self.error is not None or self.types is not None or self.value_map is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, None), state * else: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_LiteralMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_LiteralMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_137271932); __Pyx_GIVEREF(__pyx_int_137271932); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_137271932)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_LiteralMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13LiteralMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13LiteralMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_LiteralMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_LiteralMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_LiteralMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":327 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingCheckOnly_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":328 * * cpdef deserialize(self, object data): * return MappingCheckOnly_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints, key_method, value_method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MappingCheckOnly_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":327 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingCheckOnly_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 327, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 327, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 327, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":330 * return MappingCheckOnly_deserialize(self, data) * * def __init__(self, constraints, key_method, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.key_method = key_method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_key_method = 0; PyObject *__pyx_v_value_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,&__pyx_n_s_key_method,&__pyx_n_s_value_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 330, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_key_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 330, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 330, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 330, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 330, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 330, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); } __pyx_v_constraints = values[0]; __pyx_v_key_method = values[1]; __pyx_v_value_method = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 330, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self), __pyx_v_constraints, __pyx_v_key_method, __pyx_v_value_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_key_method, PyObject *__pyx_v_value_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":331 * * def __init__(self, constraints, key_method, value_method): * self.constraints = constraints # <<<<<<<<<<<<<< * self.key_method = key_method * self.value_method = value_method */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 331, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":332 * def __init__(self, constraints, key_method, value_method): * self.constraints = constraints * self.key_method = key_method # <<<<<<<<<<<<<< * self.value_method = value_method * self._dispatch = 11 */ if (!(likely(((__pyx_v_key_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_key_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 332, __pyx_L1_error) __pyx_t_1 = __pyx_v_key_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->key_method); __Pyx_DECREF((PyObject *)__pyx_v_self->key_method); __pyx_v_self->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":333 * self.constraints = constraints * self.key_method = key_method * self.value_method = value_method # <<<<<<<<<<<<<< * self._dispatch = 11 * */ if (!(likely(((__pyx_v_value_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 333, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->value_method); __Pyx_DECREF((PyObject *)__pyx_v_self->value_method); __pyx_v_self->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":334 * self.key_method = key_method * self.value_method = value_method * self._dispatch = 11 # <<<<<<<<<<<<<< * * cdef class MappingMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 11; /* "apischema/deserialization/methods.pyx":330 * return MappingCheckOnly_deserialize(self, data) * * def __init__(self, constraints, key_method, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.key_method = key_method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":323 * * cdef class MappingCheckOnly(DeserializationMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod key_method * cdef readonly DeserializationMethod value_method */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":324 * cdef class MappingCheckOnly(DeserializationMethod): * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_10key_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_10key_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_10key_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_10key_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->key_method); __pyx_r = ((PyObject *)__pyx_v_self->key_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":325 * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method * cdef readonly DeserializationMethod value_method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_12value_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_12value_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_12value_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __pyx_r = ((PyObject *)__pyx_v_self->value_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_16MappingCheckOnly_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.key_method, self.value_method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->key_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->key_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->key_method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->value_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_v_self->value_method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.key_method, self.value_method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.key_method, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.key_method, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->key_method) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->value_method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None * if use_setstate: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_MappingCheckOnly); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_29064226); __Pyx_GIVEREF(__pyx_int_29064226); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_29064226)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, None), state * else: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MappingCheckOnly__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MappingCheckOnly); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_29064226); __Pyx_GIVEREF(__pyx_int_29064226); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_29064226)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingCheckOnly__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_16MappingCheckOnly_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16MappingCheckOnly_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MappingCheckOnly__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingCheckOnly__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingCheckOnly__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":341 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13MappingMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":342 * * cpdef deserialize(self, object data): * return MappingMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints, key_method, value_method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_MappingMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":341 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13MappingMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 341, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 341, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 341, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_13MappingMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":344 * return MappingMethod_deserialize(self, data) * * def __init__(self, constraints, key_method, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.key_method = key_method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_key_method = 0; PyObject *__pyx_v_value_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,&__pyx_n_s_key_method,&__pyx_n_s_value_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_key_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 344, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 344, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 344, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); } __pyx_v_constraints = values[0]; __pyx_v_key_method = values[1]; __pyx_v_value_method = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 344, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self), __pyx_v_constraints, __pyx_v_key_method, __pyx_v_value_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_key_method, PyObject *__pyx_v_value_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":345 * * def __init__(self, constraints, key_method, value_method): * self.constraints = constraints # <<<<<<<<<<<<<< * self.key_method = key_method * self.value_method = value_method */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 345, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":346 * def __init__(self, constraints, key_method, value_method): * self.constraints = constraints * self.key_method = key_method # <<<<<<<<<<<<<< * self.value_method = value_method * self._dispatch = 12 */ if (!(likely(((__pyx_v_key_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_key_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 346, __pyx_L1_error) __pyx_t_1 = __pyx_v_key_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->key_method); __Pyx_DECREF((PyObject *)__pyx_v_self->key_method); __pyx_v_self->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":347 * self.constraints = constraints * self.key_method = key_method * self.value_method = value_method # <<<<<<<<<<<<<< * self._dispatch = 12 * */ if (!(likely(((__pyx_v_value_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 347, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->value_method); __Pyx_DECREF((PyObject *)__pyx_v_self->value_method); __pyx_v_self->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":348 * self.key_method = key_method * self.value_method = value_method * self._dispatch = 12 # <<<<<<<<<<<<<< * * cdef class Field(): */ __pyx_v_self->__pyx_base._dispatch = 12; /* "apischema/deserialization/methods.pyx":344 * return MappingMethod_deserialize(self, data) * * def __init__(self, constraints, key_method, value_method): # <<<<<<<<<<<<<< * self.constraints = constraints * self.key_method = key_method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":337 * * cdef class MappingMethod(DeserializationMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod key_method * cdef readonly DeserializationMethod value_method */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":338 * cdef class MappingMethod(DeserializationMethod): * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod value_method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_10key_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_10key_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_10key_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_10key_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->key_method); __pyx_r = ((PyObject *)__pyx_v_self->key_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":339 * cdef readonly tuple constraints * cdef readonly DeserializationMethod key_method * cdef readonly DeserializationMethod value_method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_12value_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_12value_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_12value_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __pyx_r = ((PyObject *)__pyx_v_self->value_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13MappingMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.key_method, self.value_method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->key_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->key_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->key_method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->value_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_v_self->value_method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.key_method, self.value_method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.key_method, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.key_method, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->key_method) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->value_method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None * if use_setstate: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_MappingMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_29064226); __Pyx_GIVEREF(__pyx_int_29064226); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_29064226)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.key_method is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, None), state * else: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MappingMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_MappingMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_29064226); __Pyx_GIVEREF(__pyx_int_29064226); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_29064226)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13MappingMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13MappingMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_MappingMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":358 * cdef readonly bint fall_back_on_default * * def __init__(self, name, alias, method, required, required_by, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.alias = alias */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_5Field_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_5Field_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_alias = 0; PyObject *__pyx_v_method = 0; PyObject *__pyx_v_required = 0; PyObject *__pyx_v_required_by = 0; PyObject *__pyx_v_fall_back_on_default = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[6] = {0,0,0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_alias,&__pyx_n_s_method,&__pyx_n_s_required,&__pyx_n_s_required_by,&__pyx_n_s_fall_back_on_default,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 358, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_alias)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 358, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); __PYX_ERR(0, 358, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 358, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); __PYX_ERR(0, 358, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_required)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 358, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); __PYX_ERR(0, 358, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_required_by)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 358, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); __PYX_ERR(0, 358, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fall_back_on_default)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 358, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); __PYX_ERR(0, 358, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 358, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4); values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5); } __pyx_v_name = values[0]; __pyx_v_alias = values[1]; __pyx_v_method = values[2]; __pyx_v_required = values[3]; __pyx_v_required_by = values[4]; __pyx_v_fall_back_on_default = values[5]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 358, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Field.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self), __pyx_v_name, __pyx_v_alias, __pyx_v_method, __pyx_v_required, __pyx_v_required_by, __pyx_v_fall_back_on_default); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_5Field___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_alias, PyObject *__pyx_v_method, PyObject *__pyx_v_required, PyObject *__pyx_v_required_by, PyObject *__pyx_v_fall_back_on_default) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":359 * * def __init__(self, name, alias, method, required, required_by, fall_back_on_default): * self.name = name # <<<<<<<<<<<<<< * self.alias = alias * self.method = method */ if (!(likely(PyUnicode_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_name))) __PYX_ERR(0, 359, __pyx_L1_error) __pyx_t_1 = __pyx_v_name; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":360 * def __init__(self, name, alias, method, required, required_by, fall_back_on_default): * self.name = name * self.alias = alias # <<<<<<<<<<<<<< * self.method = method * self.required = required */ if (!(likely(PyUnicode_CheckExact(__pyx_v_alias))||((__pyx_v_alias) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_alias))) __PYX_ERR(0, 360, __pyx_L1_error) __pyx_t_1 = __pyx_v_alias; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->alias); __Pyx_DECREF(__pyx_v_self->alias); __pyx_v_self->alias = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":361 * self.name = name * self.alias = alias * self.method = method # <<<<<<<<<<<<<< * self.required = required * self.required_by = required_by */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 361, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":362 * self.alias = alias * self.method = method * self.required = required # <<<<<<<<<<<<<< * self.required_by = required_by * self.fall_back_on_default = fall_back_on_default */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_required); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 362, __pyx_L1_error) __pyx_v_self->required = __pyx_t_2; /* "apischema/deserialization/methods.pyx":363 * self.method = method * self.required = required * self.required_by = required_by # <<<<<<<<<<<<<< * self.fall_back_on_default = fall_back_on_default * */ __Pyx_INCREF(__pyx_v_required_by); __Pyx_GIVEREF(__pyx_v_required_by); __Pyx_GOTREF(__pyx_v_self->required_by); __Pyx_DECREF(__pyx_v_self->required_by); __pyx_v_self->required_by = __pyx_v_required_by; /* "apischema/deserialization/methods.pyx":364 * self.required = required * self.required_by = required_by * self.fall_back_on_default = fall_back_on_default # <<<<<<<<<<<<<< * * cdef class FlattenedField(): */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_fall_back_on_default); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 364, __pyx_L1_error) __pyx_v_self->fall_back_on_default = __pyx_t_2; /* "apischema/deserialization/methods.pyx":358 * cdef readonly bint fall_back_on_default * * def __init__(self, name, alias, method, required, required_by, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.alias = alias */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Field.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":351 * * cdef class Field(): * cdef readonly str name # <<<<<<<<<<<<<< * cdef readonly str alias * cdef readonly DeserializationMethod method */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_4name_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_4name___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":352 * cdef class Field(): * cdef readonly str name * cdef readonly str alias # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly bint required */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_5alias_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_5alias_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_5alias___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_5alias___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->alias); __pyx_r = __pyx_v_self->alias; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":353 * cdef readonly str name * cdef readonly str alias * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * cdef readonly bint required * cdef readonly object required_by */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":354 * cdef readonly str alias * cdef readonly DeserializationMethod method * cdef readonly bint required # <<<<<<<<<<<<<< * cdef readonly object required_by * cdef readonly bint fall_back_on_default */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_8required_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_8required_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_8required___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_8required___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->required); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Field.required.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":355 * cdef readonly DeserializationMethod method * cdef readonly bint required * cdef readonly object required_by # <<<<<<<<<<<<<< * cdef readonly bint fall_back_on_default * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_11required_by_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_11required_by_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_11required_by___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_11required_by___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->required_by); __pyx_r = __pyx_v_self->required_by; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":356 * cdef readonly bint required * cdef readonly object required_by * cdef readonly bint fall_back_on_default # <<<<<<<<<<<<<< * * def __init__(self, name, alias, method, required, required_by, fall_back_on_default): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_20fall_back_on_default_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_20fall_back_on_default_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_20fall_back_on_default___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Field.fall_back_on_default.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_5Field_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_5Field_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.alias, self.fall_back_on_default, self.method, self.name, self.required, self.required_by) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->required); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(6); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_self->alias); __Pyx_GIVEREF(__pyx_v_self->alias); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->alias)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_self->name)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->required_by); __Pyx_GIVEREF(__pyx_v_self->required_by); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_v_self->required_by)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.alias, self.fall_back_on_default, self.method, self.name, self.required, self.required_by) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self.alias, self.fall_back_on_default, self.method, self.name, self.required, self.required_by) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.alias is not None or self.method is not None or self.name is not None or self.required_by is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.alias, self.fall_back_on_default, self.method, self.name, self.required, self.required_by) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.alias is not None or self.method is not None or self.name is not None or self.required_by is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_Field, (type(self), 0x8d79089, None), state */ /*else*/ { __pyx_t_5 = (__pyx_v_self->alias != ((PyObject*)Py_None)); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (((PyObject *)__pyx_v_self->method) != Py_None); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->name != ((PyObject*)Py_None)); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->required_by != Py_None); __pyx_t_4 = __pyx_t_5; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.alias is not None or self.method is not None or self.name is not None or self.required_by is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Field, (type(self), 0x8d79089, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.alias is not None or self.method is not None or self.name is not None or self.required_by is not None * if use_setstate: * return __pyx_unpickle_Field, (type(self), 0x8d79089, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_Field); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_148344969); __Pyx_GIVEREF(__pyx_int_148344969); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_148344969)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.alias is not None or self.method is not None or self.name is not None or self.required_by is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Field, (type(self), 0x8d79089, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_Field, (type(self), 0x8d79089, None), state * else: * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Field__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_Field); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_148344969); __Pyx_GIVEREF(__pyx_int_148344969); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_148344969)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.Field.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Field__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_5Field_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_5Field_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5Field_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Field.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_5Field_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_5Field_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Field__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Field__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Field__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Field.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":372 * cdef readonly bint fall_back_on_default * * def __init__(self, name, aliases, method, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.aliases = aliases */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_aliases = 0; PyObject *__pyx_v_method = 0; PyObject *__pyx_v_fall_back_on_default = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[4] = {0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_aliases,&__pyx_n_s_method,&__pyx_n_s_fall_back_on_default,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 372, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_aliases)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 372, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 372, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 372, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 372, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fall_back_on_default)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 372, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 372, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 372, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); } __pyx_v_name = values[0]; __pyx_v_aliases = values[1]; __pyx_v_method = values[2]; __pyx_v_fall_back_on_default = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 372, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FlattenedField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self), __pyx_v_name, __pyx_v_aliases, __pyx_v_method, __pyx_v_fall_back_on_default); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_aliases, PyObject *__pyx_v_method, PyObject *__pyx_v_fall_back_on_default) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":373 * * def __init__(self, name, aliases, method, fall_back_on_default): * self.name = name # <<<<<<<<<<<<<< * self.aliases = aliases * self.method = method */ if (!(likely(PyUnicode_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_name))) __PYX_ERR(0, 373, __pyx_L1_error) __pyx_t_1 = __pyx_v_name; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":374 * def __init__(self, name, aliases, method, fall_back_on_default): * self.name = name * self.aliases = aliases # <<<<<<<<<<<<<< * self.method = method * self.fall_back_on_default = fall_back_on_default */ if (!(likely(PyTuple_CheckExact(__pyx_v_aliases))||((__pyx_v_aliases) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_aliases))) __PYX_ERR(0, 374, __pyx_L1_error) __pyx_t_1 = __pyx_v_aliases; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->aliases); __Pyx_DECREF(__pyx_v_self->aliases); __pyx_v_self->aliases = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":375 * self.name = name * self.aliases = aliases * self.method = method # <<<<<<<<<<<<<< * self.fall_back_on_default = fall_back_on_default * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 375, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":376 * self.aliases = aliases * self.method = method * self.fall_back_on_default = fall_back_on_default # <<<<<<<<<<<<<< * * cdef class PatternField(): */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_fall_back_on_default); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 376, __pyx_L1_error) __pyx_v_self->fall_back_on_default = __pyx_t_2; /* "apischema/deserialization/methods.pyx":372 * cdef readonly bint fall_back_on_default * * def __init__(self, name, aliases, method, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.aliases = aliases */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FlattenedField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":367 * * cdef class FlattenedField(): * cdef readonly str name # <<<<<<<<<<<<<< * cdef readonly tuple aliases * cdef readonly DeserializationMethod method */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_4name_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_4name___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":368 * cdef class FlattenedField(): * cdef readonly str name * cdef readonly tuple aliases # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly bint fall_back_on_default */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_7aliases_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_7aliases_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_7aliases___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_7aliases___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->aliases); __pyx_r = __pyx_v_self->aliases; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":369 * cdef readonly str name * cdef readonly tuple aliases * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * cdef readonly bint fall_back_on_default * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":370 * cdef readonly tuple aliases * cdef readonly DeserializationMethod method * cdef readonly bint fall_back_on_default # <<<<<<<<<<<<<< * * def __init__(self, name, aliases, method, fall_back_on_default): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_20fall_back_on_default_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_20fall_back_on_default_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_20fall_back_on_default___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FlattenedField.fall_back_on_default.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14FlattenedField_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.aliases, self.fall_back_on_default, self.method, self.name) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_self->aliases); __Pyx_GIVEREF(__pyx_v_self->aliases); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->aliases)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->name)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.aliases, self.fall_back_on_default, self.method, self.name) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self.aliases, self.fall_back_on_default, self.method, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.aliases is not None or self.method is not None or self.name is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.aliases, self.fall_back_on_default, self.method, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.aliases is not None or self.method is not None or self.name is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->aliases != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->name != ((PyObject*)Py_None)); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.aliases is not None or self.method is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.aliases is not None or self.method is not None or self.name is not None * if use_setstate: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_FlattenedField); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_218312211); __Pyx_GIVEREF(__pyx_int_218312211); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_218312211)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.aliases is not None or self.method is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, None), state * else: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FlattenedField__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_FlattenedField); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_218312211); __Pyx_GIVEREF(__pyx_int_218312211); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_218312211)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.FlattenedField.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FlattenedField__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14FlattenedField_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FlattenedField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14FlattenedField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FlattenedField__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FlattenedField__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FlattenedField__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FlattenedField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":384 * cdef readonly bint fall_back_on_default * * def __init__(self, name, pattern, method, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.pattern = pattern */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_12PatternField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_12PatternField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_pattern = 0; PyObject *__pyx_v_method = 0; PyObject *__pyx_v_fall_back_on_default = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[4] = {0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_pattern,&__pyx_n_s_method,&__pyx_n_s_fall_back_on_default,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 384, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pattern)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 384, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 384, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 384, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 384, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fall_back_on_default)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 384, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 384, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 384, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); } __pyx_v_name = values[0]; __pyx_v_pattern = values[1]; __pyx_v_method = values[2]; __pyx_v_fall_back_on_default = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 384, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.PatternField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self), __pyx_v_name, __pyx_v_pattern, __pyx_v_method, __pyx_v_fall_back_on_default); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_12PatternField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_pattern, PyObject *__pyx_v_method, PyObject *__pyx_v_fall_back_on_default) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":385 * * def __init__(self, name, pattern, method, fall_back_on_default): * self.name = name # <<<<<<<<<<<<<< * self.pattern = pattern * self.method = method */ if (!(likely(PyUnicode_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_name))) __PYX_ERR(0, 385, __pyx_L1_error) __pyx_t_1 = __pyx_v_name; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":386 * def __init__(self, name, pattern, method, fall_back_on_default): * self.name = name * self.pattern = pattern # <<<<<<<<<<<<<< * self.method = method * self.fall_back_on_default = fall_back_on_default */ __Pyx_INCREF(__pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); __Pyx_GOTREF(__pyx_v_self->pattern); __Pyx_DECREF(__pyx_v_self->pattern); __pyx_v_self->pattern = __pyx_v_pattern; /* "apischema/deserialization/methods.pyx":387 * self.name = name * self.pattern = pattern * self.method = method # <<<<<<<<<<<<<< * self.fall_back_on_default = fall_back_on_default * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 387, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":388 * self.pattern = pattern * self.method = method * self.fall_back_on_default = fall_back_on_default # <<<<<<<<<<<<<< * * cdef class AdditionalField(): */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_fall_back_on_default); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 388, __pyx_L1_error) __pyx_v_self->fall_back_on_default = __pyx_t_2; /* "apischema/deserialization/methods.pyx":384 * cdef readonly bint fall_back_on_default * * def __init__(self, name, pattern, method, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.pattern = pattern */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.PatternField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":379 * * cdef class PatternField(): * cdef readonly str name # <<<<<<<<<<<<<< * cdef readonly object pattern * cdef readonly DeserializationMethod method */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_4name_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField_4name___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":380 * cdef class PatternField(): * cdef readonly str name * cdef readonly object pattern # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly bint fall_back_on_default */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_7pattern_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_7pattern_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField_7pattern___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_7pattern___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->pattern); __pyx_r = __pyx_v_self->pattern; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":381 * cdef readonly str name * cdef readonly object pattern * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * cdef readonly bint fall_back_on_default * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":382 * cdef readonly object pattern * cdef readonly DeserializationMethod method * cdef readonly bint fall_back_on_default # <<<<<<<<<<<<<< * * def __init__(self, name, pattern, method, fall_back_on_default): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_20fall_back_on_default_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_20fall_back_on_default_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField_20fall_back_on_default___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.PatternField.fall_back_on_default.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12PatternField_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12PatternField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.fall_back_on_default, self.method, self.name, self.pattern) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->name)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->pattern); __Pyx_GIVEREF(__pyx_v_self->pattern); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->pattern)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.fall_back_on_default, self.method, self.name, self.pattern) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self.fall_back_on_default, self.method, self.name, self.pattern) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.method is not None or self.name is not None or self.pattern is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.fall_back_on_default, self.method, self.name, self.pattern) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.method is not None or self.name is not None or self.pattern is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, None), state */ /*else*/ { __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->name != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->pattern != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None or self.name is not None or self.pattern is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.method is not None or self.name is not None or self.pattern is not None * if use_setstate: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_PatternField); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_59113187); __Pyx_GIVEREF(__pyx_int_59113187); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_59113187)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None or self.name is not None or self.pattern is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, None), state * else: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_PatternField__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_PatternField); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_59113187); __Pyx_GIVEREF(__pyx_int_59113187); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_59113187)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.PatternField.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternField__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12PatternField_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12PatternField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12PatternField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.PatternField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12PatternField_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12PatternField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_PatternField__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternField__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternField__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.PatternField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":395 * cdef readonly bint fall_back_on_default * * def __init__(self, name, method, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.method = method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_method = 0; PyObject *__pyx_v_fall_back_on_default = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_method,&__pyx_n_s_fall_back_on_default,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 395, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 395, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 395, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fall_back_on_default)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 395, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 395, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 395, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); } __pyx_v_name = values[0]; __pyx_v_method = values[1]; __pyx_v_fall_back_on_default = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 395, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.AdditionalField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v_self), __pyx_v_name, __pyx_v_method, __pyx_v_fall_back_on_default); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_method, PyObject *__pyx_v_fall_back_on_default) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":396 * * def __init__(self, name, method, fall_back_on_default): * self.name = name # <<<<<<<<<<<<<< * self.method = method * self.fall_back_on_default = fall_back_on_default */ if (!(likely(PyUnicode_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_name))) __PYX_ERR(0, 396, __pyx_L1_error) __pyx_t_1 = __pyx_v_name; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":397 * def __init__(self, name, method, fall_back_on_default): * self.name = name * self.method = method # <<<<<<<<<<<<<< * self.fall_back_on_default = fall_back_on_default * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 397, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":398 * self.name = name * self.method = method * self.fall_back_on_default = fall_back_on_default # <<<<<<<<<<<<<< * * cdef class Constructor(): */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_fall_back_on_default); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 398, __pyx_L1_error) __pyx_v_self->fall_back_on_default = __pyx_t_2; /* "apischema/deserialization/methods.pyx":395 * cdef readonly bint fall_back_on_default * * def __init__(self, name, method, fall_back_on_default): # <<<<<<<<<<<<<< * self.name = name * self.method = method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.AdditionalField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":391 * * cdef class AdditionalField(): * cdef readonly str name # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly bint fall_back_on_default */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_4name_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_4name___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":392 * cdef class AdditionalField(): * cdef readonly str name * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * cdef readonly bint fall_back_on_default * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":393 * cdef readonly str name * cdef readonly DeserializationMethod method * cdef readonly bint fall_back_on_default # <<<<<<<<<<<<<< * * def __init__(self, name, method, fall_back_on_default): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_20fall_back_on_default_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_20fall_back_on_default_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_20fall_back_on_default___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_20fall_back_on_default___get__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.AdditionalField.fall_back_on_default.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15AdditionalField_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.fall_back_on_default, self.method, self.name) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->fall_back_on_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->name)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.fall_back_on_default, self.method, self.name) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self.fall_back_on_default, self.method, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.method is not None or self.name is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.fall_back_on_default, self.method, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.method is not None or self.name is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, None), state */ /*else*/ { __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->name != ((PyObject*)Py_None)); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.method is not None or self.name is not None * if use_setstate: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_AdditionalField); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_133974869); __Pyx_GIVEREF(__pyx_int_133974869); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_133974869)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.method is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, None), state * else: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_AdditionalField__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_AdditionalField); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_133974869); __Pyx_GIVEREF(__pyx_int_133974869); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_133974869)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.AdditionalField.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AdditionalField__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15AdditionalField_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.AdditionalField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_15AdditionalField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_AdditionalField__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AdditionalField__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AdditionalField__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.AdditionalField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":404 * cdef int _dispatch * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_11Constructor_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_11Constructor_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_cls = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 404, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 404, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_cls = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 404, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Constructor.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11Constructor___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_v_self), __pyx_v_cls); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_11Constructor___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self, PyObject *__pyx_v_cls) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":405 * * def __init__(self, cls): * self.cls = cls # <<<<<<<<<<<<<< * * cdef class NoConstructor(Constructor): */ __Pyx_INCREF(__pyx_v_cls); __Pyx_GIVEREF(__pyx_v_cls); __Pyx_GOTREF(__pyx_v_self->cls); __Pyx_DECREF(__pyx_v_self->cls); __pyx_v_self->cls = __pyx_v_cls; /* "apischema/deserialization/methods.pyx":404 * cdef int _dispatch * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":401 * * cdef class Constructor(): * cdef readonly object cls # <<<<<<<<<<<<<< * cdef int _dispatch * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11Constructor_3cls_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11Constructor_3cls_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11Constructor_3cls___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11Constructor_3cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->cls); __pyx_r = __pyx_v_self->cls; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11Constructor_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11Constructor_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11Constructor_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11Constructor_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11Constructor_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11Constructor_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->cls); __Pyx_GIVEREF(__pyx_v_self->cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->cls)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->cls != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None * if use_setstate: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_Constructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_108979822)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, None), state * else: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Constructor__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_Constructor); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_108979822)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.Constructor.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constructor__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11Constructor_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11Constructor_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11Constructor_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11Constructor_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Constructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11Constructor_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11Constructor_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Constructor__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constructor__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constructor__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Constructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":409 * cdef class NoConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return NoConstructor_construct(self, fields) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_13NoConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_construct); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_1construct)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_fields}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":410 * * cpdef construct(self, dict fields): * return NoConstructor_construct(self, fields) # <<<<<<<<<<<<<< * * def __init__(self, cls): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_NoConstructor_construct(__pyx_v_self, __pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":409 * cdef class NoConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return NoConstructor_construct(self, fields) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13NoConstructor_1construct = {"construct", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_1construct, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_fields = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("construct (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fields)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 409, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "construct") < 0)) __PYX_ERR(0, 409, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_fields = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("construct", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 409, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fields), (&PyDict_Type), 1, "fields", 1))) __PYX_ERR(0, 409, __pyx_L1_error) __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)__pyx_v_self), __pyx_v_fields); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_13NoConstructor_construct(__pyx_v_self, __pyx_v_fields, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":412 * return NoConstructor_construct(self, fields) * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * self._dispatch = 0 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_cls = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 412, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 412, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_cls = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 412, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)__pyx_v_self), __pyx_v_cls); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_cls) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":413 * * def __init__(self, cls): * self.cls = cls # <<<<<<<<<<<<<< * self._dispatch = 0 * */ __Pyx_INCREF(__pyx_v_cls); __Pyx_GIVEREF(__pyx_v_cls); __Pyx_GOTREF(__pyx_v_self->__pyx_base.cls); __Pyx_DECREF(__pyx_v_self->__pyx_base.cls); __pyx_v_self->__pyx_base.cls = __pyx_v_cls; /* "apischema/deserialization/methods.pyx":414 * def __init__(self, cls): * self.cls = cls * self._dispatch = 0 # <<<<<<<<<<<<<< * * cdef class RawConstructor(Constructor): */ __pyx_v_self->__pyx_base._dispatch = 0; /* "apischema/deserialization/methods.pyx":412 * return NoConstructor_construct(self, fields) * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * self._dispatch = 0 */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13NoConstructor_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.cls); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->__pyx_base.cls)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->__pyx_base.cls != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None * if use_setstate: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_NoConstructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_108979822)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, None), state * else: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_NoConstructor__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_NoConstructor); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_108979822)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoConstructor__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13NoConstructor_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13NoConstructor_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_NoConstructor__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoConstructor__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoConstructor__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.NoConstructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":418 * cdef class RawConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructor_construct(self, fields) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_14RawConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_construct); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_1construct)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_fields}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":419 * * cpdef construct(self, dict fields): * return RawConstructor_construct(self, fields) # <<<<<<<<<<<<<< * * def __init__(self, cls): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_RawConstructor_construct(__pyx_v_self, __pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":418 * cdef class RawConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructor_construct(self, fields) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14RawConstructor_1construct = {"construct", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_1construct, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_fields = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("construct (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fields)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 418, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "construct") < 0)) __PYX_ERR(0, 418, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_fields = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("construct", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 418, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fields), (&PyDict_Type), 1, "fields", 1))) __PYX_ERR(0, 418, __pyx_L1_error) __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)__pyx_v_self), __pyx_v_fields); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_14RawConstructor_construct(__pyx_v_self, __pyx_v_fields, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":421 * return RawConstructor_construct(self, fields) * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * self._dispatch = 1 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_cls = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 421, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 421, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_cls = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 421, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)__pyx_v_self), __pyx_v_cls); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_cls) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":422 * * def __init__(self, cls): * self.cls = cls # <<<<<<<<<<<<<< * self._dispatch = 1 * */ __Pyx_INCREF(__pyx_v_cls); __Pyx_GIVEREF(__pyx_v_cls); __Pyx_GOTREF(__pyx_v_self->__pyx_base.cls); __Pyx_DECREF(__pyx_v_self->__pyx_base.cls); __pyx_v_self->__pyx_base.cls = __pyx_v_cls; /* "apischema/deserialization/methods.pyx":423 * def __init__(self, cls): * self.cls = cls * self._dispatch = 1 # <<<<<<<<<<<<<< * * cdef class RawConstructorCopy(Constructor): */ __pyx_v_self->__pyx_base._dispatch = 1; /* "apischema/deserialization/methods.pyx":421 * return RawConstructor_construct(self, fields) * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * self._dispatch = 1 */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14RawConstructor_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.cls); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->__pyx_base.cls)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->__pyx_base.cls != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None * if use_setstate: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_RawConstructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_108979822)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, None), state * else: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_RawConstructor__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_RawConstructor); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_108979822)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructor__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14RawConstructor_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14RawConstructor_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_RawConstructor__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructor__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructor__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":427 * cdef class RawConstructorCopy(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructorCopy_construct(self, fields) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18RawConstructorCopy_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_construct); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_fields}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":428 * * cpdef construct(self, dict fields): * return RawConstructorCopy_construct(self, fields) # <<<<<<<<<<<<<< * * def __init__(self, cls): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_RawConstructorCopy_construct(__pyx_v_self, __pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":427 * cdef class RawConstructorCopy(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructorCopy_construct(self, fields) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct = {"construct", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_fields = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("construct (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fields)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 427, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "construct") < 0)) __PYX_ERR(0, 427, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_fields = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("construct", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 427, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fields), (&PyDict_Type), 1, "fields", 1))) __PYX_ERR(0, 427, __pyx_L1_error) __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)__pyx_v_self), __pyx_v_fields); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_18RawConstructorCopy_construct(__pyx_v_self, __pyx_v_fields, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":430 * return RawConstructorCopy_construct(self, fields) * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * self._dispatch = 2 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_cls = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 430, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 430, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_cls = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 430, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)__pyx_v_self), __pyx_v_cls); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_cls) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":431 * * def __init__(self, cls): * self.cls = cls # <<<<<<<<<<<<<< * self._dispatch = 2 * */ __Pyx_INCREF(__pyx_v_cls); __Pyx_GIVEREF(__pyx_v_cls); __Pyx_GOTREF(__pyx_v_self->__pyx_base.cls); __Pyx_DECREF(__pyx_v_self->__pyx_base.cls); __pyx_v_self->__pyx_base.cls = __pyx_v_cls; /* "apischema/deserialization/methods.pyx":432 * def __init__(self, cls): * self.cls = cls * self._dispatch = 2 # <<<<<<<<<<<<<< * * cdef class DefaultField(): */ __pyx_v_self->__pyx_base._dispatch = 2; /* "apischema/deserialization/methods.pyx":430 * return RawConstructorCopy_construct(self, fields) * * def __init__(self, cls): # <<<<<<<<<<<<<< * self.cls = cls * self._dispatch = 2 */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18RawConstructorCopy_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.cls); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->__pyx_base.cls)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->__pyx_base.cls != Py_None); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None * if use_setstate: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_RawConstructorCop); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_108979822)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, None), state * else: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_RawConstructorCopy__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_RawConstructorCop); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_108979822); __Pyx_GIVEREF(__pyx_int_108979822); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_108979822)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructorCopy__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18RawConstructorCopy_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18RawConstructorCopy_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_RawConstructorCopy__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructorCopy__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructorCopy__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":438 * cdef readonly object default_value * * def __init__(self, name, default_value): # <<<<<<<<<<<<<< * self.name = name * self.default_value = default_value */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_12DefaultField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_12DefaultField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_default_value = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_default_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 438, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default_value)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 438, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 438, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 438, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_name = values[0]; __pyx_v_default_value = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 438, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.DefaultField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12DefaultField___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_v_self), __pyx_v_name, __pyx_v_default_value); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_12DefaultField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_default_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":439 * * def __init__(self, name, default_value): * self.name = name # <<<<<<<<<<<<<< * self.default_value = default_value * */ if (!(likely(PyUnicode_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_name))) __PYX_ERR(0, 439, __pyx_L1_error) __pyx_t_1 = __pyx_v_name; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":440 * def __init__(self, name, default_value): * self.name = name * self.default_value = default_value # <<<<<<<<<<<<<< * * cdef class FactoryField(): */ __Pyx_INCREF(__pyx_v_default_value); __Pyx_GIVEREF(__pyx_v_default_value); __Pyx_GOTREF(__pyx_v_self->default_value); __Pyx_DECREF(__pyx_v_self->default_value); __pyx_v_self->default_value = __pyx_v_default_value; /* "apischema/deserialization/methods.pyx":438 * cdef readonly object default_value * * def __init__(self, name, default_value): # <<<<<<<<<<<<<< * self.name = name * self.default_value = default_value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.DefaultField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":435 * * cdef class DefaultField(): * cdef readonly str name # <<<<<<<<<<<<<< * cdef readonly object default_value * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_4name_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12DefaultField_4name___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":436 * cdef class DefaultField(): * cdef readonly str name * cdef readonly object default_value # <<<<<<<<<<<<<< * * def __init__(self, name, default_value): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_13default_value_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_13default_value_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12DefaultField_13default_value___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_13default_value___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->default_value); __pyx_r = __pyx_v_self->default_value; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12DefaultField_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12DefaultField_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.default_value, self.name) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_self->default_value); __Pyx_GIVEREF(__pyx_v_self->default_value); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->default_value)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->name)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_v_state = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.default_value, self.name) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__dict = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":7 * state = (self.default_value, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_2 = (__pyx_v__dict != Py_None); if (__pyx_t_2) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.default_value is not None or self.name is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.default_value, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.default_value is not None or self.name is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->default_value != Py_None); if (!__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->name != ((PyObject*)Py_None)); __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_2; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.default_value is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.default_value is not None or self.name is not None * if use_setstate: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_DefaultField); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39566027); __Pyx_GIVEREF(__pyx_int_39566027); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_39566027)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.default_value is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, None), state * else: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_DefaultField__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_DefaultField); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39566027); __Pyx_GIVEREF(__pyx_int_39566027); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_39566027)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.DefaultField.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DefaultField__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12DefaultField_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.DefaultField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12DefaultField_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12DefaultField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_DefaultField__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DefaultField__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DefaultField__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.DefaultField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":446 * cdef readonly object factory * * def __init__(self, name, factory): # <<<<<<<<<<<<<< * self.name = name * self.factory = factory */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_12FactoryField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_12FactoryField_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_factory = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_factory,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 446, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_factory)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 446, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 446, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 446, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_name = values[0]; __pyx_v_factory = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 446, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FactoryField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12FactoryField___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_v_self), __pyx_v_name, __pyx_v_factory); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_12FactoryField___init__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_factory) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":447 * * def __init__(self, name, factory): * self.name = name # <<<<<<<<<<<<<< * self.factory = factory * */ if (!(likely(PyUnicode_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_name))) __PYX_ERR(0, 447, __pyx_L1_error) __pyx_t_1 = __pyx_v_name; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->name); __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":448 * def __init__(self, name, factory): * self.name = name * self.factory = factory # <<<<<<<<<<<<<< * * cdef class FieldsConstructor(Constructor): */ __Pyx_INCREF(__pyx_v_factory); __Pyx_GIVEREF(__pyx_v_factory); __Pyx_GOTREF(__pyx_v_self->factory); __Pyx_DECREF(__pyx_v_self->factory); __pyx_v_self->factory = __pyx_v_factory; /* "apischema/deserialization/methods.pyx":446 * cdef readonly object factory * * def __init__(self, name, factory): # <<<<<<<<<<<<<< * self.name = name * self.factory = factory */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FactoryField.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":443 * * cdef class FactoryField(): * cdef readonly str name # <<<<<<<<<<<<<< * cdef readonly object factory * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_4name_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12FactoryField_4name___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_4name___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->name); __pyx_r = __pyx_v_self->name; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":444 * cdef class FactoryField(): * cdef readonly str name * cdef readonly object factory # <<<<<<<<<<<<<< * * def __init__(self, name, factory): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_7factory_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_7factory_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12FactoryField_7factory___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_7factory___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->factory); __pyx_r = __pyx_v_self->factory; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12FactoryField_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12FactoryField_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.factory, self.name) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_self->factory); __Pyx_GIVEREF(__pyx_v_self->factory); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->factory)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->name); __Pyx_GIVEREF(__pyx_v_self->name); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->name)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_v_state = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.factory, self.name) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__dict = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":7 * state = (self.factory, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_2 = (__pyx_v__dict != Py_None); if (__pyx_t_2) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.factory is not None or self.name is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.factory, self.name) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.factory is not None or self.name is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->factory != Py_None); if (!__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->name != ((PyObject*)Py_None)); __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_2; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.factory is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.factory is not None or self.name is not None * if use_setstate: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_FactoryField); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_155387426); __Pyx_GIVEREF(__pyx_int_155387426); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_155387426)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.factory is not None or self.name is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, None), state * else: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FactoryField__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_FactoryField); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_155387426); __Pyx_GIVEREF(__pyx_int_155387426); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_155387426)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.FactoryField.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FactoryField__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12FactoryField_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FactoryField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12FactoryField_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12FactoryField_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FactoryField__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FactoryField__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FactoryField__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FactoryField.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":455 * cdef readonly tuple factory_fields * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return FieldsConstructor_construct(self, fields) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17FieldsConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_fields, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_construct); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_1construct)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_fields}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":456 * * cpdef construct(self, dict fields): * return FieldsConstructor_construct(self, fields) # <<<<<<<<<<<<<< * * def __init__(self, cls, nb_fields, default_fields, factory_fields): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_FieldsConstructor_construct(__pyx_v_self, __pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":455 * cdef readonly tuple factory_fields * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return FieldsConstructor_construct(self, fields) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17FieldsConstructor_1construct = {"construct", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_1construct, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_1construct(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_fields = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("construct (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fields)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 455, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "construct") < 0)) __PYX_ERR(0, 455, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_fields = ((PyObject*)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("construct", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 455, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fields), (&PyDict_Type), 1, "fields", 1))) __PYX_ERR(0, 455, __pyx_L1_error) __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self), __pyx_v_fields); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("construct", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_17FieldsConstructor_construct(__pyx_v_self, __pyx_v_fields, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":458 * return FieldsConstructor_construct(self, fields) * * def __init__(self, cls, nb_fields, default_fields, factory_fields): # <<<<<<<<<<<<<< * self.cls = cls * self.nb_fields = nb_fields */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_cls = 0; PyObject *__pyx_v_nb_fields = 0; PyObject *__pyx_v_default_fields = 0; PyObject *__pyx_v_factory_fields = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[4] = {0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,&__pyx_n_s_nb_fields,&__pyx_n_s_default_fields,&__pyx_n_s_factory_fields,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 458, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nb_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 458, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 458, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 458, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 458, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_factory_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 458, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 458, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 458, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); } __pyx_v_cls = values[0]; __pyx_v_nb_fields = values[1]; __pyx_v_default_fields = values[2]; __pyx_v_factory_fields = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 458, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self), __pyx_v_cls, __pyx_v_nb_fields, __pyx_v_default_fields, __pyx_v_factory_fields); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_cls, PyObject *__pyx_v_nb_fields, PyObject *__pyx_v_default_fields, PyObject *__pyx_v_factory_fields) { int __pyx_r; __Pyx_RefNannyDeclarations long __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":459 * * def __init__(self, cls, nb_fields, default_fields, factory_fields): * self.cls = cls # <<<<<<<<<<<<<< * self.nb_fields = nb_fields * self.default_fields = default_fields */ __Pyx_INCREF(__pyx_v_cls); __Pyx_GIVEREF(__pyx_v_cls); __Pyx_GOTREF(__pyx_v_self->__pyx_base.cls); __Pyx_DECREF(__pyx_v_self->__pyx_base.cls); __pyx_v_self->__pyx_base.cls = __pyx_v_cls; /* "apischema/deserialization/methods.pyx":460 * def __init__(self, cls, nb_fields, default_fields, factory_fields): * self.cls = cls * self.nb_fields = nb_fields # <<<<<<<<<<<<<< * self.default_fields = default_fields * self.factory_fields = factory_fields */ __pyx_t_1 = __Pyx_PyInt_As_long(__pyx_v_nb_fields); if (unlikely((__pyx_t_1 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 460, __pyx_L1_error) __pyx_v_self->nb_fields = __pyx_t_1; /* "apischema/deserialization/methods.pyx":461 * self.cls = cls * self.nb_fields = nb_fields * self.default_fields = default_fields # <<<<<<<<<<<<<< * self.factory_fields = factory_fields * self._dispatch = 3 */ if (!(likely(PyTuple_CheckExact(__pyx_v_default_fields))||((__pyx_v_default_fields) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_default_fields))) __PYX_ERR(0, 461, __pyx_L1_error) __pyx_t_2 = __pyx_v_default_fields; __Pyx_INCREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_self->default_fields); __Pyx_DECREF(__pyx_v_self->default_fields); __pyx_v_self->default_fields = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":462 * self.nb_fields = nb_fields * self.default_fields = default_fields * self.factory_fields = factory_fields # <<<<<<<<<<<<<< * self._dispatch = 3 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_factory_fields))||((__pyx_v_factory_fields) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_factory_fields))) __PYX_ERR(0, 462, __pyx_L1_error) __pyx_t_2 = __pyx_v_factory_fields; __Pyx_INCREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_self->factory_fields); __Pyx_DECREF(__pyx_v_self->factory_fields); __pyx_v_self->factory_fields = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":463 * self.default_fields = default_fields * self.factory_fields = factory_fields * self._dispatch = 3 # <<<<<<<<<<<<<< * * cdef class SimpleObjectMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 3; /* "apischema/deserialization/methods.pyx":458 * return FieldsConstructor_construct(self, fields) * * def __init__(self, cls, nb_fields, default_fields, factory_fields): # <<<<<<<<<<<<<< * self.cls = cls * self.nb_fields = nb_fields */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":451 * * cdef class FieldsConstructor(Constructor): * cdef readonly long nb_fields # <<<<<<<<<<<<<< * cdef readonly tuple default_fields * cdef readonly tuple factory_fields */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_9nb_fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_9nb_fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_9nb_fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_9nb_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->nb_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.nb_fields.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":452 * cdef class FieldsConstructor(Constructor): * cdef readonly long nb_fields * cdef readonly tuple default_fields # <<<<<<<<<<<<<< * cdef readonly tuple factory_fields * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_14default_fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_14default_fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_14default_fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_14default_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->default_fields); __pyx_r = __pyx_v_self->default_fields; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":453 * cdef readonly long nb_fields * cdef readonly tuple default_fields * cdef readonly tuple factory_fields # <<<<<<<<<<<<<< * * cpdef construct(self, dict fields): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_14factory_fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_14factory_fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_14factory_fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_14factory_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->factory_fields); __pyx_r = __pyx_v_self->factory_fields; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17FieldsConstructor_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls, self.default_fields, self.factory_fields, self.nb_fields) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v_self->nb_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.cls); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->__pyx_base.cls)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->default_fields); __Pyx_GIVEREF(__pyx_v_self->default_fields); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_self->default_fields)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->factory_fields); __Pyx_GIVEREF(__pyx_v_self->factory_fields); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_self->factory_fields)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls, self.default_fields, self.factory_fields, self.nb_fields) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls, self.default_fields, self.factory_fields, self.nb_fields) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None or self.default_fields is not None or self.factory_fields is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls, self.default_fields, self.factory_fields, self.nb_fields) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None or self.default_fields is not None or self.factory_fields is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, None), state */ /*else*/ { __pyx_t_5 = (__pyx_v_self->__pyx_base.cls != Py_None); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->default_fields != ((PyObject*)Py_None)); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->factory_fields != ((PyObject*)Py_None)); __pyx_t_4 = __pyx_t_5; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None or self.default_fields is not None or self.factory_fields is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None or self.default_fields is not None or self.factory_fields is not None * if use_setstate: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_FieldsConstructor); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_87926185); __Pyx_GIVEREF(__pyx_int_87926185); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_87926185)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None or self.default_fields is not None or self.factory_fields is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, None), state * else: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FieldsConstructor__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_FieldsConstructor); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_87926185); __Pyx_GIVEREF(__pyx_int_87926185); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_87926185)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FieldsConstructor__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17FieldsConstructor_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17FieldsConstructor_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FieldsConstructor__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FieldsConstructor__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FieldsConstructor__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":473 * cdef readonly str unexpected * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SimpleObjectMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":474 * * cpdef deserialize(self, object data): * return SimpleObjectMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constructor, fields, all_aliases, typed_dict, missing, unexpected): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_SimpleObjectMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":473 * cdef readonly str unexpected * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SimpleObjectMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 473, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 473, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 473, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":476 * return SimpleObjectMethod_deserialize(self, data) * * def __init__(self, constructor, fields, all_aliases, typed_dict, missing, unexpected): # <<<<<<<<<<<<<< * self.constructor = constructor * self.fields = fields */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constructor = 0; PyObject *__pyx_v_fields = 0; PyObject *__pyx_v_all_aliases = 0; PyObject *__pyx_v_typed_dict = 0; PyObject *__pyx_v_missing = 0; PyObject *__pyx_v_unexpected = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[6] = {0,0,0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constructor,&__pyx_n_s_fields,&__pyx_n_s_all_aliases,&__pyx_n_s_typed_dict,&__pyx_n_s_missing,&__pyx_n_s_unexpected,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constructor)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 476, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 476, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); __PYX_ERR(0, 476, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_all_aliases)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 476, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); __PYX_ERR(0, 476, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_typed_dict)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 476, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); __PYX_ERR(0, 476, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_missing)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 476, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); __PYX_ERR(0, 476, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unexpected)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 476, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); __PYX_ERR(0, 476, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 476, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4); values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5); } __pyx_v_constructor = values[0]; __pyx_v_fields = values[1]; __pyx_v_all_aliases = values[2]; __pyx_v_typed_dict = values[3]; __pyx_v_missing = values[4]; __pyx_v_unexpected = values[5]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 476, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self), __pyx_v_constructor, __pyx_v_fields, __pyx_v_all_aliases, __pyx_v_typed_dict, __pyx_v_missing, __pyx_v_unexpected); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_constructor, PyObject *__pyx_v_fields, PyObject *__pyx_v_all_aliases, PyObject *__pyx_v_typed_dict, PyObject *__pyx_v_missing, PyObject *__pyx_v_unexpected) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":477 * * def __init__(self, constructor, fields, all_aliases, typed_dict, missing, unexpected): * self.constructor = constructor # <<<<<<<<<<<<<< * self.fields = fields * self.all_aliases = all_aliases */ if (!(likely(((__pyx_v_constructor) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_constructor, __pyx_ptype_9apischema_15deserialization_7methods_Constructor))))) __PYX_ERR(0, 477, __pyx_L1_error) __pyx_t_1 = __pyx_v_constructor; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->constructor); __Pyx_DECREF((PyObject *)__pyx_v_self->constructor); __pyx_v_self->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":478 * def __init__(self, constructor, fields, all_aliases, typed_dict, missing, unexpected): * self.constructor = constructor * self.fields = fields # <<<<<<<<<<<<<< * self.all_aliases = all_aliases * self.typed_dict = typed_dict */ if (!(likely(PyTuple_CheckExact(__pyx_v_fields))||((__pyx_v_fields) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_fields))) __PYX_ERR(0, 478, __pyx_L1_error) __pyx_t_1 = __pyx_v_fields; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->fields); __Pyx_DECREF(__pyx_v_self->fields); __pyx_v_self->fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":479 * self.constructor = constructor * self.fields = fields * self.all_aliases = all_aliases # <<<<<<<<<<<<<< * self.typed_dict = typed_dict * self.missing = missing */ if (!(likely(PySet_CheckExact(__pyx_v_all_aliases))||((__pyx_v_all_aliases) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_v_all_aliases))) __PYX_ERR(0, 479, __pyx_L1_error) __pyx_t_1 = __pyx_v_all_aliases; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->all_aliases); __Pyx_DECREF(__pyx_v_self->all_aliases); __pyx_v_self->all_aliases = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":480 * self.fields = fields * self.all_aliases = all_aliases * self.typed_dict = typed_dict # <<<<<<<<<<<<<< * self.missing = missing * self.unexpected = unexpected */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_typed_dict); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 480, __pyx_L1_error) __pyx_v_self->typed_dict = __pyx_t_2; /* "apischema/deserialization/methods.pyx":481 * self.all_aliases = all_aliases * self.typed_dict = typed_dict * self.missing = missing # <<<<<<<<<<<<<< * self.unexpected = unexpected * self._dispatch = 13 */ if (!(likely(PyUnicode_CheckExact(__pyx_v_missing))||((__pyx_v_missing) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_missing))) __PYX_ERR(0, 481, __pyx_L1_error) __pyx_t_1 = __pyx_v_missing; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->missing); __Pyx_DECREF(__pyx_v_self->missing); __pyx_v_self->missing = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":482 * self.typed_dict = typed_dict * self.missing = missing * self.unexpected = unexpected # <<<<<<<<<<<<<< * self._dispatch = 13 * */ if (!(likely(PyUnicode_CheckExact(__pyx_v_unexpected))||((__pyx_v_unexpected) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_unexpected))) __PYX_ERR(0, 482, __pyx_L1_error) __pyx_t_1 = __pyx_v_unexpected; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->unexpected); __Pyx_DECREF(__pyx_v_self->unexpected); __pyx_v_self->unexpected = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":483 * self.missing = missing * self.unexpected = unexpected * self._dispatch = 13 # <<<<<<<<<<<<<< * * cdef class ObjectMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 13; /* "apischema/deserialization/methods.pyx":476 * return SimpleObjectMethod_deserialize(self, data) * * def __init__(self, constructor, fields, all_aliases, typed_dict, missing, unexpected): # <<<<<<<<<<<<<< * self.constructor = constructor * self.fields = fields */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":466 * * cdef class SimpleObjectMethod(DeserializationMethod): * cdef readonly Constructor constructor # <<<<<<<<<<<<<< * cdef readonly tuple fields * cdef readonly set all_aliases */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_11constructor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_11constructor_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_11constructor___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_11constructor___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->constructor); __pyx_r = ((PyObject *)__pyx_v_self->constructor); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":467 * cdef class SimpleObjectMethod(DeserializationMethod): * cdef readonly Constructor constructor * cdef readonly tuple fields # <<<<<<<<<<<<<< * cdef readonly set all_aliases * cdef readonly bint typed_dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_6fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_6fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_6fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_6fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->fields); __pyx_r = __pyx_v_self->fields; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":468 * cdef readonly Constructor constructor * cdef readonly tuple fields * cdef readonly set all_aliases # <<<<<<<<<<<<<< * cdef readonly bint typed_dict * cdef readonly str missing */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_11all_aliases_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_11all_aliases_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_11all_aliases___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_11all_aliases___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->all_aliases); __pyx_r = __pyx_v_self->all_aliases; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":469 * cdef readonly tuple fields * cdef readonly set all_aliases * cdef readonly bint typed_dict # <<<<<<<<<<<<<< * cdef readonly str missing * cdef readonly str unexpected */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_10typed_dict_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_10typed_dict_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_10typed_dict___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_10typed_dict___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->typed_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.typed_dict.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":470 * cdef readonly set all_aliases * cdef readonly bint typed_dict * cdef readonly str missing # <<<<<<<<<<<<<< * cdef readonly str unexpected * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7missing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7missing_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_7missing___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_7missing___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->missing); __pyx_r = __pyx_v_self->missing; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":471 * cdef readonly bint typed_dict * cdef readonly str missing * cdef readonly str unexpected # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_10unexpected_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_10unexpected_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_10unexpected___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_10unexpected___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->unexpected); __pyx_r = __pyx_v_self->unexpected; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18SimpleObjectMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.all_aliases, self.constructor, self.fields, self.missing, self.typed_dict, self.unexpected) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->typed_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->all_aliases); __Pyx_GIVEREF(__pyx_v_self->all_aliases); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->all_aliases)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->constructor); __Pyx_GIVEREF((PyObject *)__pyx_v_self->constructor); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_v_self->constructor))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->fields); __Pyx_GIVEREF(__pyx_v_self->fields); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_self->fields)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->missing); __Pyx_GIVEREF(__pyx_v_self->missing); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_v_self->missing)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->unexpected); __Pyx_GIVEREF(__pyx_v_self->unexpected); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 6, __pyx_v_self->unexpected)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_state = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.all_aliases, self.constructor, self.fields, self.missing, self.typed_dict, self.unexpected) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v__dict = __pyx_t_3; __pyx_t_3 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.all_aliases, self.constructor, self.fields, self.missing, self.typed_dict, self.unexpected) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_4 = (__pyx_v__dict != Py_None); if (__pyx_t_4) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.all_aliases is not None or self.constructor is not None or self.fields is not None or self.missing is not None or self.unexpected is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.all_aliases, self.constructor, self.fields, self.missing, self.typed_dict, self.unexpected) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.all_aliases is not None or self.constructor is not None or self.fields is not None or self.missing is not None or self.unexpected is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, None), state */ /*else*/ { __pyx_t_5 = (__pyx_v_self->all_aliases != ((PyObject*)Py_None)); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (((PyObject *)__pyx_v_self->constructor) != Py_None); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->fields != ((PyObject*)Py_None)); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->missing != ((PyObject*)Py_None)); if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = (__pyx_v_self->unexpected != ((PyObject*)Py_None)); __pyx_t_4 = __pyx_t_5; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_4; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.all_aliases is not None or self.constructor is not None or self.fields is not None or self.missing is not None or self.unexpected is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.all_aliases is not None or self.constructor is not None or self.fields is not None or self.missing is not None or self.unexpected is not None * if use_setstate: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_SimpleObjectMetho); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_169907618); __Pyx_GIVEREF(__pyx_int_169907618); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_169907618)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.all_aliases is not None or self.constructor is not None or self.fields is not None or self.missing is not None or self.unexpected is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, None), state * else: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_SimpleObjectMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_SimpleObjectMetho); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_169907618); __Pyx_GIVEREF(__pyx_int_169907618); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_169907618)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SimpleObjectMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18SimpleObjectMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SimpleObjectMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_SimpleObjectMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SimpleObjectMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SimpleObjectMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":503 * cdef readonly bint aggregate_fields * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ObjectMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_12ObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":504 * * cpdef deserialize(self, object data): * return ObjectMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constructor, constraints, fields, flattened_fields, pattern_fields, additional_field, all_aliases, additional_properties, typed_dict, validators, init_defaults, post_init_modified, aliaser, missing, unexpected): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ObjectMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":503 * cdef readonly bint aggregate_fields * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ObjectMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 503, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 503, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 503, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_12ObjectMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":506 * return ObjectMethod_deserialize(self, data) * * def __init__(self, constructor, constraints, fields, flattened_fields, pattern_fields, additional_field, all_aliases, additional_properties, typed_dict, validators, init_defaults, post_init_modified, aliaser, missing, unexpected): # <<<<<<<<<<<<<< * self.constructor = constructor * self.constraints = constraints */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constructor = 0; PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_fields = 0; PyObject *__pyx_v_flattened_fields = 0; PyObject *__pyx_v_pattern_fields = 0; PyObject *__pyx_v_additional_field = 0; PyObject *__pyx_v_all_aliases = 0; PyObject *__pyx_v_additional_properties = 0; PyObject *__pyx_v_typed_dict = 0; PyObject *__pyx_v_validators = 0; PyObject *__pyx_v_init_defaults = 0; PyObject *__pyx_v_post_init_modified = 0; PyObject *__pyx_v_aliaser = 0; PyObject *__pyx_v_missing = 0; PyObject *__pyx_v_unexpected = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constructor,&__pyx_n_s_constraints,&__pyx_n_s_fields,&__pyx_n_s_flattened_fields,&__pyx_n_s_pattern_fields,&__pyx_n_s_additional_field,&__pyx_n_s_all_aliases,&__pyx_n_s_additional_properties,&__pyx_n_s_typed_dict,&__pyx_n_s_validators,&__pyx_n_s_init_defaults,&__pyx_n_s_post_init_modified,&__pyx_n_s_aliaser,&__pyx_n_s_missing,&__pyx_n_s_unexpected,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 15: values[14] = __Pyx_Arg_VARARGS(__pyx_args, 14); CYTHON_FALLTHROUGH; case 14: values[13] = __Pyx_Arg_VARARGS(__pyx_args, 13); CYTHON_FALLTHROUGH; case 13: values[12] = __Pyx_Arg_VARARGS(__pyx_args, 12); CYTHON_FALLTHROUGH; case 12: values[11] = __Pyx_Arg_VARARGS(__pyx_args, 11); CYTHON_FALLTHROUGH; case 11: values[10] = __Pyx_Arg_VARARGS(__pyx_args, 10); CYTHON_FALLTHROUGH; case 10: values[9] = __Pyx_Arg_VARARGS(__pyx_args, 9); CYTHON_FALLTHROUGH; case 9: values[8] = __Pyx_Arg_VARARGS(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = __Pyx_Arg_VARARGS(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_VARARGS(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constructor)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 1); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 2); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flattened_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 3); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pattern_fields)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 4); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_additional_field)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 5); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_all_aliases)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 6); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_additional_properties)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 7); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_typed_dict)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[8]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 8); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 9: if (likely((values[9] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_validators)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[9]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 9); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 10: if (likely((values[10] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_defaults)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[10]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 10); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 11: if (likely((values[11] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_post_init_modified)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[11]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 11); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 12: if (likely((values[12] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_aliaser)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[12]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 12); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 13: if (likely((values[13] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_missing)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[13]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 13); __PYX_ERR(0, 506, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 14: if (likely((values[14] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_unexpected)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[14]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, 14); __PYX_ERR(0, 506, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 506, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 15)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); values[4] = __Pyx_Arg_VARARGS(__pyx_args, 4); values[5] = __Pyx_Arg_VARARGS(__pyx_args, 5); values[6] = __Pyx_Arg_VARARGS(__pyx_args, 6); values[7] = __Pyx_Arg_VARARGS(__pyx_args, 7); values[8] = __Pyx_Arg_VARARGS(__pyx_args, 8); values[9] = __Pyx_Arg_VARARGS(__pyx_args, 9); values[10] = __Pyx_Arg_VARARGS(__pyx_args, 10); values[11] = __Pyx_Arg_VARARGS(__pyx_args, 11); values[12] = __Pyx_Arg_VARARGS(__pyx_args, 12); values[13] = __Pyx_Arg_VARARGS(__pyx_args, 13); values[14] = __Pyx_Arg_VARARGS(__pyx_args, 14); } __pyx_v_constructor = values[0]; __pyx_v_constraints = values[1]; __pyx_v_fields = values[2]; __pyx_v_flattened_fields = values[3]; __pyx_v_pattern_fields = values[4]; __pyx_v_additional_field = values[5]; __pyx_v_all_aliases = values[6]; __pyx_v_additional_properties = values[7]; __pyx_v_typed_dict = values[8]; __pyx_v_validators = values[9]; __pyx_v_init_defaults = values[10]; __pyx_v_post_init_modified = values[11]; __pyx_v_aliaser = values[12]; __pyx_v_missing = values[13]; __pyx_v_unexpected = values[14]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 15, 15, __pyx_nargs); __PYX_ERR(0, 506, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self), __pyx_v_constructor, __pyx_v_constraints, __pyx_v_fields, __pyx_v_flattened_fields, __pyx_v_pattern_fields, __pyx_v_additional_field, __pyx_v_all_aliases, __pyx_v_additional_properties, __pyx_v_typed_dict, __pyx_v_validators, __pyx_v_init_defaults, __pyx_v_post_init_modified, __pyx_v_aliaser, __pyx_v_missing, __pyx_v_unexpected); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_constructor, PyObject *__pyx_v_constraints, PyObject *__pyx_v_fields, PyObject *__pyx_v_flattened_fields, PyObject *__pyx_v_pattern_fields, PyObject *__pyx_v_additional_field, PyObject *__pyx_v_all_aliases, PyObject *__pyx_v_additional_properties, PyObject *__pyx_v_typed_dict, PyObject *__pyx_v_validators, PyObject *__pyx_v_init_defaults, PyObject *__pyx_v_post_init_modified, PyObject *__pyx_v_aliaser, PyObject *__pyx_v_missing, PyObject *__pyx_v_unexpected) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":507 * * def __init__(self, constructor, constraints, fields, flattened_fields, pattern_fields, additional_field, all_aliases, additional_properties, typed_dict, validators, init_defaults, post_init_modified, aliaser, missing, unexpected): * self.constructor = constructor # <<<<<<<<<<<<<< * self.constraints = constraints * self.fields = fields */ if (!(likely(((__pyx_v_constructor) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_constructor, __pyx_ptype_9apischema_15deserialization_7methods_Constructor))))) __PYX_ERR(0, 507, __pyx_L1_error) __pyx_t_1 = __pyx_v_constructor; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->constructor); __Pyx_DECREF((PyObject *)__pyx_v_self->constructor); __pyx_v_self->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":508 * def __init__(self, constructor, constraints, fields, flattened_fields, pattern_fields, additional_field, all_aliases, additional_properties, typed_dict, validators, init_defaults, post_init_modified, aliaser, missing, unexpected): * self.constructor = constructor * self.constraints = constraints # <<<<<<<<<<<<<< * self.fields = fields * self.flattened_fields = flattened_fields */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 508, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":509 * self.constructor = constructor * self.constraints = constraints * self.fields = fields # <<<<<<<<<<<<<< * self.flattened_fields = flattened_fields * self.pattern_fields = pattern_fields */ if (!(likely(PyTuple_CheckExact(__pyx_v_fields))||((__pyx_v_fields) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_fields))) __PYX_ERR(0, 509, __pyx_L1_error) __pyx_t_1 = __pyx_v_fields; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->fields); __Pyx_DECREF(__pyx_v_self->fields); __pyx_v_self->fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":510 * self.constraints = constraints * self.fields = fields * self.flattened_fields = flattened_fields # <<<<<<<<<<<<<< * self.pattern_fields = pattern_fields * self.additional_field = additional_field */ if (!(likely(PyTuple_CheckExact(__pyx_v_flattened_fields))||((__pyx_v_flattened_fields) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_flattened_fields))) __PYX_ERR(0, 510, __pyx_L1_error) __pyx_t_1 = __pyx_v_flattened_fields; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->flattened_fields); __Pyx_DECREF(__pyx_v_self->flattened_fields); __pyx_v_self->flattened_fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":511 * self.fields = fields * self.flattened_fields = flattened_fields * self.pattern_fields = pattern_fields # <<<<<<<<<<<<<< * self.additional_field = additional_field * self.all_aliases = all_aliases */ if (!(likely(PyTuple_CheckExact(__pyx_v_pattern_fields))||((__pyx_v_pattern_fields) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_pattern_fields))) __PYX_ERR(0, 511, __pyx_L1_error) __pyx_t_1 = __pyx_v_pattern_fields; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->pattern_fields); __Pyx_DECREF(__pyx_v_self->pattern_fields); __pyx_v_self->pattern_fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":512 * self.flattened_fields = flattened_fields * self.pattern_fields = pattern_fields * self.additional_field = additional_field # <<<<<<<<<<<<<< * self.all_aliases = all_aliases * self.additional_properties = additional_properties */ __Pyx_INCREF(__pyx_v_additional_field); __Pyx_GIVEREF(__pyx_v_additional_field); __Pyx_GOTREF(__pyx_v_self->additional_field); __Pyx_DECREF(__pyx_v_self->additional_field); __pyx_v_self->additional_field = __pyx_v_additional_field; /* "apischema/deserialization/methods.pyx":513 * self.pattern_fields = pattern_fields * self.additional_field = additional_field * self.all_aliases = all_aliases # <<<<<<<<<<<<<< * self.additional_properties = additional_properties * self.typed_dict = typed_dict */ if (!(likely(PySet_CheckExact(__pyx_v_all_aliases))||((__pyx_v_all_aliases) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_v_all_aliases))) __PYX_ERR(0, 513, __pyx_L1_error) __pyx_t_1 = __pyx_v_all_aliases; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->all_aliases); __Pyx_DECREF(__pyx_v_self->all_aliases); __pyx_v_self->all_aliases = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":514 * self.additional_field = additional_field * self.all_aliases = all_aliases * self.additional_properties = additional_properties # <<<<<<<<<<<<<< * self.typed_dict = typed_dict * self.validators = validators */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_additional_properties); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 514, __pyx_L1_error) __pyx_v_self->additional_properties = __pyx_t_2; /* "apischema/deserialization/methods.pyx":515 * self.all_aliases = all_aliases * self.additional_properties = additional_properties * self.typed_dict = typed_dict # <<<<<<<<<<<<<< * self.validators = validators * self.init_defaults = init_defaults */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_typed_dict); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 515, __pyx_L1_error) __pyx_v_self->typed_dict = __pyx_t_2; /* "apischema/deserialization/methods.pyx":516 * self.additional_properties = additional_properties * self.typed_dict = typed_dict * self.validators = validators # <<<<<<<<<<<<<< * self.init_defaults = init_defaults * self.post_init_modified = post_init_modified */ if (!(likely(PyTuple_CheckExact(__pyx_v_validators))||((__pyx_v_validators) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_validators))) __PYX_ERR(0, 516, __pyx_L1_error) __pyx_t_1 = __pyx_v_validators; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->validators); __Pyx_DECREF(__pyx_v_self->validators); __pyx_v_self->validators = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":517 * self.typed_dict = typed_dict * self.validators = validators * self.init_defaults = init_defaults # <<<<<<<<<<<<<< * self.post_init_modified = post_init_modified * self.aliaser = aliaser */ if (!(likely(PyTuple_CheckExact(__pyx_v_init_defaults))||((__pyx_v_init_defaults) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_init_defaults))) __PYX_ERR(0, 517, __pyx_L1_error) __pyx_t_1 = __pyx_v_init_defaults; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->init_defaults); __Pyx_DECREF(__pyx_v_self->init_defaults); __pyx_v_self->init_defaults = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":518 * self.validators = validators * self.init_defaults = init_defaults * self.post_init_modified = post_init_modified # <<<<<<<<<<<<<< * self.aliaser = aliaser * self.missing = missing */ if (!(likely(PySet_CheckExact(__pyx_v_post_init_modified))||((__pyx_v_post_init_modified) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_v_post_init_modified))) __PYX_ERR(0, 518, __pyx_L1_error) __pyx_t_1 = __pyx_v_post_init_modified; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->post_init_modified); __Pyx_DECREF(__pyx_v_self->post_init_modified); __pyx_v_self->post_init_modified = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":519 * self.init_defaults = init_defaults * self.post_init_modified = post_init_modified * self.aliaser = aliaser # <<<<<<<<<<<<<< * self.missing = missing * self.unexpected = unexpected */ __Pyx_INCREF(__pyx_v_aliaser); __Pyx_GIVEREF(__pyx_v_aliaser); __Pyx_GOTREF(__pyx_v_self->aliaser); __Pyx_DECREF(__pyx_v_self->aliaser); __pyx_v_self->aliaser = __pyx_v_aliaser; /* "apischema/deserialization/methods.pyx":520 * self.post_init_modified = post_init_modified * self.aliaser = aliaser * self.missing = missing # <<<<<<<<<<<<<< * self.unexpected = unexpected * self.aggregate_fields = bool( */ if (!(likely(PyUnicode_CheckExact(__pyx_v_missing))||((__pyx_v_missing) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_missing))) __PYX_ERR(0, 520, __pyx_L1_error) __pyx_t_1 = __pyx_v_missing; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->missing); __Pyx_DECREF(__pyx_v_self->missing); __pyx_v_self->missing = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":521 * self.aliaser = aliaser * self.missing = missing * self.unexpected = unexpected # <<<<<<<<<<<<<< * self.aggregate_fields = bool( * self.flattened_fields */ if (!(likely(PyUnicode_CheckExact(__pyx_v_unexpected))||((__pyx_v_unexpected) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_unexpected))) __PYX_ERR(0, 521, __pyx_L1_error) __pyx_t_1 = __pyx_v_unexpected; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->unexpected); __Pyx_DECREF(__pyx_v_self->unexpected); __pyx_v_self->unexpected = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":523 * self.unexpected = unexpected * self.aggregate_fields = bool( * self.flattened_fields # <<<<<<<<<<<<<< * or self.pattern_fields * or self.additional_field is not None */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_self->flattened_fields); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 523, __pyx_L1_error) if (!__pyx_t_2) { } else { __Pyx_INCREF(__pyx_v_self->flattened_fields); __pyx_t_1 = __pyx_v_self->flattened_fields; goto __pyx_L3_bool_binop_done; } /* "apischema/deserialization/methods.pyx":524 * self.aggregate_fields = bool( * self.flattened_fields * or self.pattern_fields # <<<<<<<<<<<<<< * or self.additional_field is not None * ) */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_self->pattern_fields); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 524, __pyx_L1_error) if (!__pyx_t_2) { } else { __Pyx_INCREF(__pyx_v_self->pattern_fields); __pyx_t_1 = __pyx_v_self->pattern_fields; goto __pyx_L3_bool_binop_done; } /* "apischema/deserialization/methods.pyx":525 * self.flattened_fields * or self.pattern_fields * or self.additional_field is not None # <<<<<<<<<<<<<< * ) * self._dispatch = 14 */ __pyx_t_2 = (__pyx_v_self->additional_field != Py_None); __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; __pyx_L3_bool_binop_done:; /* "apischema/deserialization/methods.pyx":522 * self.missing = missing * self.unexpected = unexpected * self.aggregate_fields = bool( # <<<<<<<<<<<<<< * self.flattened_fields * or self.pattern_fields */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4bool_bool), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_self->aggregate_fields = __pyx_t_2; /* "apischema/deserialization/methods.pyx":527 * or self.additional_field is not None * ) * self._dispatch = 14 # <<<<<<<<<<<<<< * * cdef class NoneMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 14; /* "apischema/deserialization/methods.pyx":506 * return ObjectMethod_deserialize(self, data) * * def __init__(self, constructor, constraints, fields, flattened_fields, pattern_fields, additional_field, all_aliases, additional_properties, typed_dict, validators, init_defaults, post_init_modified, aliaser, missing, unexpected): # <<<<<<<<<<<<<< * self.constructor = constructor * self.constraints = constraints */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":486 * * cdef class ObjectMethod(DeserializationMethod): * cdef readonly Constructor constructor # <<<<<<<<<<<<<< * cdef readonly tuple constraints * cdef readonly tuple fields */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11constructor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11constructor_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11constructor___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11constructor___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->constructor); __pyx_r = ((PyObject *)__pyx_v_self->constructor); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":487 * cdef class ObjectMethod(DeserializationMethod): * cdef readonly Constructor constructor * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly tuple fields * cdef readonly tuple flattened_fields */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":488 * cdef readonly Constructor constructor * cdef readonly tuple constraints * cdef readonly tuple fields # <<<<<<<<<<<<<< * cdef readonly tuple flattened_fields * cdef readonly tuple pattern_fields */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_6fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_6fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_6fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_6fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->fields); __pyx_r = __pyx_v_self->fields; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":489 * cdef readonly tuple constraints * cdef readonly tuple fields * cdef readonly tuple flattened_fields # <<<<<<<<<<<<<< * cdef readonly tuple pattern_fields * cdef readonly object additional_field */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16flattened_fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16flattened_fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16flattened_fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16flattened_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->flattened_fields); __pyx_r = __pyx_v_self->flattened_fields; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":490 * cdef readonly tuple fields * cdef readonly tuple flattened_fields * cdef readonly tuple pattern_fields # <<<<<<<<<<<<<< * cdef readonly object additional_field * cdef readonly set all_aliases */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_14pattern_fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_14pattern_fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_14pattern_fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_14pattern_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->pattern_fields); __pyx_r = __pyx_v_self->pattern_fields; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":491 * cdef readonly tuple flattened_fields * cdef readonly tuple pattern_fields * cdef readonly object additional_field # <<<<<<<<<<<<<< * cdef readonly set all_aliases * cdef readonly bint additional_properties */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16additional_field_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16additional_field_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16additional_field___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16additional_field___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->additional_field); __pyx_r = __pyx_v_self->additional_field; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":492 * cdef readonly tuple pattern_fields * cdef readonly object additional_field * cdef readonly set all_aliases # <<<<<<<<<<<<<< * cdef readonly bint additional_properties * cdef readonly bint typed_dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11all_aliases_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11all_aliases_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11all_aliases___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_11all_aliases___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->all_aliases); __pyx_r = __pyx_v_self->all_aliases; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":493 * cdef readonly object additional_field * cdef readonly set all_aliases * cdef readonly bint additional_properties # <<<<<<<<<<<<<< * cdef readonly bint typed_dict * cdef readonly tuple validators */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_21additional_properties_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_21additional_properties_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_21additional_properties___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_21additional_properties___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->additional_properties); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.additional_properties.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":494 * cdef readonly set all_aliases * cdef readonly bint additional_properties * cdef readonly bint typed_dict # <<<<<<<<<<<<<< * cdef readonly tuple validators * cdef readonly tuple init_defaults */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10typed_dict_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10typed_dict_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10typed_dict___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10typed_dict___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->typed_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.typed_dict.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":495 * cdef readonly bint additional_properties * cdef readonly bint typed_dict * cdef readonly tuple validators # <<<<<<<<<<<<<< * cdef readonly tuple init_defaults * cdef readonly set post_init_modified */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10validators_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10validators_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10validators___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10validators___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->validators); __pyx_r = __pyx_v_self->validators; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":496 * cdef readonly bint typed_dict * cdef readonly tuple validators * cdef readonly tuple init_defaults # <<<<<<<<<<<<<< * cdef readonly set post_init_modified * cdef readonly object aliaser */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_13init_defaults_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_13init_defaults_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_13init_defaults___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_13init_defaults___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->init_defaults); __pyx_r = __pyx_v_self->init_defaults; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":497 * cdef readonly tuple validators * cdef readonly tuple init_defaults * cdef readonly set post_init_modified # <<<<<<<<<<<<<< * cdef readonly object aliaser * cdef readonly str missing */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_18post_init_modified_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_18post_init_modified_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_18post_init_modified___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_18post_init_modified___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->post_init_modified); __pyx_r = __pyx_v_self->post_init_modified; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":498 * cdef readonly tuple init_defaults * cdef readonly set post_init_modified * cdef readonly object aliaser # <<<<<<<<<<<<<< * cdef readonly str missing * cdef readonly str unexpected */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7aliaser_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7aliaser_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_7aliaser___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_7aliaser___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->aliaser); __pyx_r = __pyx_v_self->aliaser; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":499 * cdef readonly set post_init_modified * cdef readonly object aliaser * cdef readonly str missing # <<<<<<<<<<<<<< * cdef readonly str unexpected * cdef readonly bint aggregate_fields */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7missing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7missing_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_7missing___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_7missing___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->missing); __pyx_r = __pyx_v_self->missing; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":500 * cdef readonly object aliaser * cdef readonly str missing * cdef readonly str unexpected # <<<<<<<<<<<<<< * cdef readonly bint aggregate_fields * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10unexpected_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10unexpected_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10unexpected___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_10unexpected___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->unexpected); __pyx_r = __pyx_v_self->unexpected; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":501 * cdef readonly str missing * cdef readonly str unexpected * cdef readonly bint aggregate_fields # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16aggregate_fields_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16aggregate_fields_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16aggregate_fields___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_16aggregate_fields___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->aggregate_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.aggregate_fields.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12ObjectMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.additional_field, self.additional_properties, self.aggregate_fields, self.aliaser, self.all_aliases, self.constraints, self.constructor, self.fields, self.flattened_fields, self.init_defaults, self.missing, self.pattern_fields, self.post_init_modified, self.typed_dict, self.unexpected, self.validators) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->additional_properties); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_self->aggregate_fields); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_self->typed_dict); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(17); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->additional_field); __Pyx_GIVEREF(__pyx_v_self->additional_field); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_self->additional_field)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->aliaser); __Pyx_GIVEREF(__pyx_v_self->aliaser); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->aliaser)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->all_aliases); __Pyx_GIVEREF(__pyx_v_self->all_aliases); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_v_self->all_aliases)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->constructor); __Pyx_GIVEREF((PyObject *)__pyx_v_self->constructor); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->constructor))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->fields); __Pyx_GIVEREF(__pyx_v_self->fields); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 8, __pyx_v_self->fields)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->flattened_fields); __Pyx_GIVEREF(__pyx_v_self->flattened_fields); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 9, __pyx_v_self->flattened_fields)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->init_defaults); __Pyx_GIVEREF(__pyx_v_self->init_defaults); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 10, __pyx_v_self->init_defaults)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->missing); __Pyx_GIVEREF(__pyx_v_self->missing); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 11, __pyx_v_self->missing)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->pattern_fields); __Pyx_GIVEREF(__pyx_v_self->pattern_fields); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 12, __pyx_v_self->pattern_fields)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->post_init_modified); __Pyx_GIVEREF(__pyx_v_self->post_init_modified); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 13, __pyx_v_self->post_init_modified)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 14, __pyx_t_4)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->unexpected); __Pyx_GIVEREF(__pyx_v_self->unexpected); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 15, __pyx_v_self->unexpected)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->validators); __Pyx_GIVEREF(__pyx_v_self->validators); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 16, __pyx_v_self->validators)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_v_state = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.additional_field, self.additional_properties, self.aggregate_fields, self.aliaser, self.all_aliases, self.constraints, self.constructor, self.fields, self.flattened_fields, self.init_defaults, self.missing, self.pattern_fields, self.post_init_modified, self.typed_dict, self.unexpected, self.validators) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v__dict = __pyx_t_5; __pyx_t_5 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.additional_field, self.additional_properties, self.aggregate_fields, self.aliaser, self.all_aliases, self.constraints, self.constructor, self.fields, self.flattened_fields, self.init_defaults, self.missing, self.pattern_fields, self.post_init_modified, self.typed_dict, self.unexpected, self.validators) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_6 = (__pyx_v__dict != Py_None); if (__pyx_t_6) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.additional_field is not None or self.aliaser is not None or self.all_aliases is not None or self.constraints is not None or self.constructor is not None or self.fields is not None or self.flattened_fields is not None or self.init_defaults is not None or self.missing is not None or self.pattern_fields is not None or self.post_init_modified is not None or self.unexpected is not None or self.validators is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.additional_field, self.additional_properties, self.aggregate_fields, self.aliaser, self.all_aliases, self.constraints, self.constructor, self.fields, self.flattened_fields, self.init_defaults, self.missing, self.pattern_fields, self.post_init_modified, self.typed_dict, self.unexpected, self.validators) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.additional_field is not None or self.aliaser is not None or self.all_aliases is not None or self.constraints is not None or self.constructor is not None or self.fields is not None or self.flattened_fields is not None or self.init_defaults is not None or self.missing is not None or self.pattern_fields is not None or self.post_init_modified is not None or self.unexpected is not None or self.validators is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, None), state */ /*else*/ { __pyx_t_7 = (__pyx_v_self->additional_field != Py_None); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->aliaser != Py_None); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->all_aliases != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (((PyObject *)__pyx_v_self->constructor) != Py_None); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->fields != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->flattened_fields != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->init_defaults != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->missing != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->pattern_fields != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->post_init_modified != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->unexpected != ((PyObject*)Py_None)); if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L4_bool_binop_done; } __pyx_t_7 = (__pyx_v_self->validators != ((PyObject*)Py_None)); __pyx_t_6 = __pyx_t_7; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_6; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.additional_field is not None or self.aliaser is not None or self.all_aliases is not None or self.constraints is not None or self.constructor is not None or self.fields is not None or self.flattened_fields is not None or self.init_defaults is not None or self.missing is not None or self.pattern_fields is not None or self.post_init_modified is not None or self.unexpected is not None or self.validators is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.additional_field is not None or self.aliaser is not None or self.all_aliases is not None or self.constraints is not None or self.constructor is not None or self.fields is not None or self.flattened_fields is not None or self.init_defaults is not None or self.missing is not None or self.pattern_fields is not None or self.post_init_modified is not None or self.unexpected is not None or self.validators is not None * if use_setstate: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_ObjectMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_207700205); __Pyx_GIVEREF(__pyx_int_207700205); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_207700205)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.additional_field is not None or self.aliaser is not None or self.all_aliases is not None or self.constraints is not None or self.constructor is not None or self.fields is not None or self.flattened_fields is not None or self.init_defaults is not None or self.missing is not None or self.pattern_fields is not None or self.post_init_modified is not None or self.unexpected is not None or self.validators is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, None), state * else: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ObjectMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_ObjectMethod); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_207700205); __Pyx_GIVEREF(__pyx_int_207700205); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_207700205)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ObjectMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_12ObjectMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12ObjectMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ObjectMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ObjectMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ObjectMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":531 * cdef class NoneMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return NoneMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_10NoneMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":532 * * cpdef deserialize(self, object data): * return NoneMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_NoneMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":531 * cdef class NoneMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return NoneMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10NoneMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 531, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 531, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 531, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_10NoneMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":534 * return NoneMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 15 * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, __pyx_nargs); return -1;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_VARARGS(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self) { int __pyx_r; /* "apischema/deserialization/methods.pyx":535 * * def __init__(self): * self._dispatch = 15 # <<<<<<<<<<<<<< * * cdef class IntMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 15; /* "apischema/deserialization/methods.pyx":534 * return NoneMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 15 * */ /* function exit code */ __pyx_r = 0; return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10NoneMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_NoneMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_232429629)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, None), state * else: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_NoneMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_NoneMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_232429629)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoneMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10NoneMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10NoneMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_NoneMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoneMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoneMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":539 * cdef class IntMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return IntMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9IntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_9IntMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":540 * * cpdef deserialize(self, object data): * return IntMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_IntMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":539 * cdef class IntMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return IntMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9IntMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 539, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 539, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 539, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9IntMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9IntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_9IntMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":542 * return IntMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 16 * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_9IntMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_9IntMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, __pyx_nargs); return -1;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_VARARGS(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9IntMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_9IntMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self) { int __pyx_r; /* "apischema/deserialization/methods.pyx":543 * * def __init__(self): * self._dispatch = 16 # <<<<<<<<<<<<<< * * cdef class FloatMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 16; /* "apischema/deserialization/methods.pyx":542 * return IntMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 16 * */ /* function exit code */ __pyx_r = 0; return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9IntMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9IntMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9IntMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_IntMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_232429629)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, None), state * else: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_IntMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_IntMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_232429629)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_IntMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9IntMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9IntMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9IntMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_IntMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_IntMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_IntMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":547 * cdef class FloatMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FloatMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_11FloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":548 * * cpdef deserialize(self, object data): * return FloatMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_FloatMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":547 * cdef class FloatMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FloatMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11FloatMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 547, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 547, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 547, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_11FloatMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":550 * return FloatMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 18 * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, __pyx_nargs); return -1;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_VARARGS(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self) { int __pyx_r; /* "apischema/deserialization/methods.pyx":551 * * def __init__(self): * self._dispatch = 18 # <<<<<<<<<<<<<< * * cdef class StrMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 18; /* "apischema/deserialization/methods.pyx":550 * return FloatMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 18 * */ /* function exit code */ __pyx_r = 0; return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11FloatMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_FloatMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_232429629)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, None), state * else: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FloatMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_FloatMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_232429629)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FloatMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11FloatMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11FloatMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_FloatMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FloatMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FloatMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":555 * cdef class StrMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return StrMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_9StrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_9StrMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":556 * * cpdef deserialize(self, object data): * return StrMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_StrMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":555 * cdef class StrMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return StrMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9StrMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 555, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 555, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9StrMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9StrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_9StrMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":558 * return StrMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 20 * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_9StrMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_9StrMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, __pyx_nargs); return -1;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_VARARGS(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9StrMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_9StrMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self) { int __pyx_r; /* "apischema/deserialization/methods.pyx":559 * * def __init__(self): * self._dispatch = 20 # <<<<<<<<<<<<<< * * cdef class BoolMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 20; /* "apischema/deserialization/methods.pyx":558 * return StrMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 20 * */ /* function exit code */ __pyx_r = 0; return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9StrMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9StrMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9StrMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_StrMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_232429629)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, None), state * else: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_StrMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_StrMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_232429629)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_StrMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9StrMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_9StrMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_9StrMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_StrMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_StrMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_StrMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":563 * cdef class BoolMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return BoolMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_10BoolMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":564 * * cpdef deserialize(self, object data): * return BoolMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_BoolMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":563 * cdef class BoolMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return BoolMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10BoolMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 563, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 563, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 563, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_10BoolMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":566 * return BoolMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 22 * */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, __pyx_nargs); return -1;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_VARARGS(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self) { int __pyx_r; /* "apischema/deserialization/methods.pyx":567 * * def __init__(self): * self._dispatch = 22 # <<<<<<<<<<<<<< * * cdef class ConstrainedIntMethod(IntMethod): */ __pyx_v_self->__pyx_base._dispatch = 22; /* "apischema/deserialization/methods.pyx":566 * return BoolMethod_deserialize(self, data) * * def __init__(self): # <<<<<<<<<<<<<< * self._dispatch = 22 * */ /* function exit code */ __pyx_r = 0; return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10BoolMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch,) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = False */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch,) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = False # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, None), state */ /*else*/ { __pyx_v_use_setstate = 0; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = False * if use_setstate: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_BoolMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_232429629)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = False * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, None), state * else: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_BoolMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_BoolMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_232429629); __Pyx_GIVEREF(__pyx_int_232429629); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_232429629)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_BoolMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_10BoolMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10BoolMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_BoolMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_BoolMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_BoolMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":572 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedIntMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":573 * * cpdef deserialize(self, object data): * return ConstrainedIntMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ConstrainedIntMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":572 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedIntMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 572, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 572, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 572, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":575 * return ConstrainedIntMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 17 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 575, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 575, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_constraints = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 575, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v_self), __pyx_v_constraints); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_constraints) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":576 * * def __init__(self, constraints): * self.constraints = constraints # <<<<<<<<<<<<<< * self._dispatch = 17 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 576, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":577 * def __init__(self, constraints): * self.constraints = constraints * self._dispatch = 17 # <<<<<<<<<<<<<< * * cdef class ConstrainedFloatMethod(FloatMethod): */ __pyx_v_self->__pyx_base.__pyx_base._dispatch = 17; /* "apischema/deserialization/methods.pyx":575 * return ConstrainedIntMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 17 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":570 * * cdef class ConstrainedIntMethod(IntMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedIntMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base.__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None * if use_setstate: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConstrainedIntMet); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_39646481)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, None), state * else: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConstrainedIntMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConstrainedIntMet); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_39646481)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedIntMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedIntMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedIntMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConstrainedIntMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedIntMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedIntMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":582 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedFloatMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":583 * * cpdef deserialize(self, object data): * return ConstrainedFloatMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ConstrainedFloatMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":582 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedFloatMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 582, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 582, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 582, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":585 * return ConstrainedFloatMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 19 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 585, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 585, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_constraints = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 585, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v_self), __pyx_v_constraints); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_constraints) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":586 * * def __init__(self, constraints): * self.constraints = constraints # <<<<<<<<<<<<<< * self._dispatch = 19 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 586, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":587 * def __init__(self, constraints): * self.constraints = constraints * self._dispatch = 19 # <<<<<<<<<<<<<< * * cdef class ConstrainedStrMethod(StrMethod): */ __pyx_v_self->__pyx_base.__pyx_base._dispatch = 19; /* "apischema/deserialization/methods.pyx":585 * return ConstrainedFloatMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 19 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":580 * * cdef class ConstrainedFloatMethod(FloatMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base.__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None * if use_setstate: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConstrainedFloatM); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_39646481)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, None), state * else: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConstrainedFloatMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConstrainedFloatM); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_39646481)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedFloatMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConstrainedFloatMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedFloatMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedFloatMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":592 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedStrMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":593 * * cpdef deserialize(self, object data): * return ConstrainedStrMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ConstrainedStrMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":592 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedStrMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 592, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 592, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 592, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":595 * return ConstrainedStrMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 21 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 595, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 595, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_constraints = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 595, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v_self), __pyx_v_constraints); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_constraints) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":596 * * def __init__(self, constraints): * self.constraints = constraints # <<<<<<<<<<<<<< * self._dispatch = 21 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 596, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":597 * def __init__(self, constraints): * self.constraints = constraints * self._dispatch = 21 # <<<<<<<<<<<<<< * * cdef class SubprimitiveMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base.__pyx_base._dispatch = 21; /* "apischema/deserialization/methods.pyx":595 * return ConstrainedStrMethod_deserialize(self, data) * * def __init__(self, constraints): # <<<<<<<<<<<<<< * self.constraints = constraints * self._dispatch = 21 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":590 * * cdef class ConstrainedStrMethod(StrMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedStrMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base.__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None * if use_setstate: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConstrainedStrMet); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_39646481)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, None), state * else: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConstrainedStrMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConstrainedStrMet); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_39646481); __Pyx_GIVEREF(__pyx_int_39646481); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_39646481)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedStrMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedStrMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20ConstrainedStrMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConstrainedStrMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedStrMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedStrMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":603 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SubprimitiveMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":604 * * cpdef deserialize(self, object data): * return SubprimitiveMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, cls, method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_SubprimitiveMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":603 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SubprimitiveMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 603, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 603, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 603, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":606 * return SubprimitiveMethod_deserialize(self, data) * * def __init__(self, cls, method): # <<<<<<<<<<<<<< * self.cls = cls * self.method = method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_cls = 0; PyObject *__pyx_v_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,&__pyx_n_s_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 606, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 606, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 606, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_cls = values[0]; __pyx_v_method = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 606, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self), __pyx_v_cls, __pyx_v_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_cls, PyObject *__pyx_v_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":607 * * def __init__(self, cls, method): * self.cls = cls # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 23 */ if (!(likely(((__pyx_v_cls) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_cls, __pyx_ptype_7cpython_4type_type))))) __PYX_ERR(0, 607, __pyx_L1_error) __pyx_t_1 = __pyx_v_cls; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->cls); __Pyx_DECREF((PyObject *)__pyx_v_self->cls); __pyx_v_self->cls = ((PyTypeObject *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":608 * def __init__(self, cls, method): * self.cls = cls * self.method = method # <<<<<<<<<<<<<< * self._dispatch = 23 * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 608, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":609 * self.cls = cls * self.method = method * self._dispatch = 23 # <<<<<<<<<<<<<< * * cdef class TupleMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 23; /* "apischema/deserialization/methods.pyx":606 * return SubprimitiveMethod_deserialize(self, data) * * def __init__(self, cls, method): # <<<<<<<<<<<<<< * self.cls = cls * self.method = method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":600 * * cdef class SubprimitiveMethod(DeserializationMethod): * cdef readonly type cls # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3cls_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3cls_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_3cls___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_3cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->cls); __pyx_r = ((PyObject *)__pyx_v_self->cls); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":601 * cdef class SubprimitiveMethod(DeserializationMethod): * cdef readonly type cls * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18SubprimitiveMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.cls, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->cls); __Pyx_GIVEREF((PyObject *)__pyx_v_self->cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->cls))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.cls, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.cls, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.cls is not None or self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.cls, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.cls is not None or self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, None), state */ /*else*/ { __pyx_t_4 = (((PyObject *)__pyx_v_self->cls) != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.cls is not None or self.method is not None * if use_setstate: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_SubprimitiveMetho); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_138366295); __Pyx_GIVEREF(__pyx_int_138366295); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_138366295)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.cls is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, None), state * else: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_SubprimitiveMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_SubprimitiveMetho); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_138366295); __Pyx_GIVEREF(__pyx_int_138366295); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_138366295)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SubprimitiveMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_18SubprimitiveMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18SubprimitiveMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_SubprimitiveMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SubprimitiveMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SubprimitiveMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":617 * cdef readonly tuple elt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TupleMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_11TupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":618 * * cpdef deserialize(self, object data): * return TupleMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, constraints, min_len_error, max_len_error, elt_methods): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_TupleMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":617 * cdef readonly tuple elt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TupleMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11TupleMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 617, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 617, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 617, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_11TupleMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":620 * return TupleMethod_deserialize(self, data) * * def __init__(self, constraints, min_len_error, max_len_error, elt_methods): # <<<<<<<<<<<<<< * self.constraints = constraints * self.min_len_error = min_len_error */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_min_len_error = 0; PyObject *__pyx_v_max_len_error = 0; PyObject *__pyx_v_elt_methods = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[4] = {0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_constraints,&__pyx_n_s_min_len_error,&__pyx_n_s_max_len_error,&__pyx_n_s_elt_methods,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_min_len_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 620, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_max_len_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 620, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_elt_methods)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 620, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 620, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); } __pyx_v_constraints = values[0]; __pyx_v_min_len_error = values[1]; __pyx_v_max_len_error = values[2]; __pyx_v_elt_methods = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 620, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self), __pyx_v_constraints, __pyx_v_min_len_error, __pyx_v_max_len_error, __pyx_v_elt_methods); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_constraints, PyObject *__pyx_v_min_len_error, PyObject *__pyx_v_max_len_error, PyObject *__pyx_v_elt_methods) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":621 * * def __init__(self, constraints, min_len_error, max_len_error, elt_methods): * self.constraints = constraints # <<<<<<<<<<<<<< * self.min_len_error = min_len_error * self.max_len_error = max_len_error */ if (!(likely(PyTuple_CheckExact(__pyx_v_constraints))||((__pyx_v_constraints) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_constraints))) __PYX_ERR(0, 621, __pyx_L1_error) __pyx_t_1 = __pyx_v_constraints; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->constraints); __Pyx_DECREF(__pyx_v_self->constraints); __pyx_v_self->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":622 * def __init__(self, constraints, min_len_error, max_len_error, elt_methods): * self.constraints = constraints * self.min_len_error = min_len_error # <<<<<<<<<<<<<< * self.max_len_error = max_len_error * self.elt_methods = elt_methods */ __Pyx_INCREF(__pyx_v_min_len_error); __Pyx_GIVEREF(__pyx_v_min_len_error); __Pyx_GOTREF(__pyx_v_self->min_len_error); __Pyx_DECREF(__pyx_v_self->min_len_error); __pyx_v_self->min_len_error = __pyx_v_min_len_error; /* "apischema/deserialization/methods.pyx":623 * self.constraints = constraints * self.min_len_error = min_len_error * self.max_len_error = max_len_error # <<<<<<<<<<<<<< * self.elt_methods = elt_methods * self._dispatch = 24 */ __Pyx_INCREF(__pyx_v_max_len_error); __Pyx_GIVEREF(__pyx_v_max_len_error); __Pyx_GOTREF(__pyx_v_self->max_len_error); __Pyx_DECREF(__pyx_v_self->max_len_error); __pyx_v_self->max_len_error = __pyx_v_max_len_error; /* "apischema/deserialization/methods.pyx":624 * self.min_len_error = min_len_error * self.max_len_error = max_len_error * self.elt_methods = elt_methods # <<<<<<<<<<<<<< * self._dispatch = 24 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_elt_methods))||((__pyx_v_elt_methods) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_elt_methods))) __PYX_ERR(0, 624, __pyx_L1_error) __pyx_t_1 = __pyx_v_elt_methods; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->elt_methods); __Pyx_DECREF(__pyx_v_self->elt_methods); __pyx_v_self->elt_methods = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":625 * self.max_len_error = max_len_error * self.elt_methods = elt_methods * self._dispatch = 24 # <<<<<<<<<<<<<< * * cdef class OptionalMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 24; /* "apischema/deserialization/methods.pyx":620 * return TupleMethod_deserialize(self, data) * * def __init__(self, constraints, min_len_error, max_len_error, elt_methods): # <<<<<<<<<<<<<< * self.constraints = constraints * self.min_len_error = min_len_error */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":612 * * cdef class TupleMethod(DeserializationMethod): * cdef readonly tuple constraints # <<<<<<<<<<<<<< * cdef readonly object min_len_error * cdef readonly object max_len_error */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_11constraints_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_11constraints_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_11constraints___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_11constraints___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->constraints); __pyx_r = __pyx_v_self->constraints; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":613 * cdef class TupleMethod(DeserializationMethod): * cdef readonly tuple constraints * cdef readonly object min_len_error # <<<<<<<<<<<<<< * cdef readonly object max_len_error * cdef readonly tuple elt_methods */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_13min_len_error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_13min_len_error_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_13min_len_error___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_13min_len_error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->min_len_error); __pyx_r = __pyx_v_self->min_len_error; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":614 * cdef readonly tuple constraints * cdef readonly object min_len_error * cdef readonly object max_len_error # <<<<<<<<<<<<<< * cdef readonly tuple elt_methods * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_13max_len_error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_13max_len_error_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_13max_len_error___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_13max_len_error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->max_len_error); __pyx_r = __pyx_v_self->max_len_error; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":615 * cdef readonly object min_len_error * cdef readonly object max_len_error * cdef readonly tuple elt_methods # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_11elt_methods_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_11elt_methods_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_11elt_methods___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_11elt_methods___get__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->elt_methods); __pyx_r = __pyx_v_self->elt_methods; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11TupleMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.elt_methods, self.max_len_error, self.min_len_error) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->constraints); __Pyx_GIVEREF(__pyx_v_self->constraints); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->constraints)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->elt_methods); __Pyx_GIVEREF(__pyx_v_self->elt_methods); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->elt_methods)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->max_len_error); __Pyx_GIVEREF(__pyx_v_self->max_len_error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->max_len_error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->min_len_error); __Pyx_GIVEREF(__pyx_v_self->min_len_error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_self->min_len_error)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.constraints, self.elt_methods, self.max_len_error, self.min_len_error) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.elt_methods, self.max_len_error, self.min_len_error) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.constraints is not None or self.elt_methods is not None or self.max_len_error is not None or self.min_len_error is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.constraints, self.elt_methods, self.max_len_error, self.min_len_error) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.constraints is not None or self.elt_methods is not None or self.max_len_error is not None or self.min_len_error is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->constraints != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->elt_methods != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->max_len_error != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->min_len_error != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.elt_methods is not None or self.max_len_error is not None or self.min_len_error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.constraints is not None or self.elt_methods is not None or self.max_len_error is not None or self.min_len_error is not None * if use_setstate: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_TupleMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_154416804); __Pyx_GIVEREF(__pyx_int_154416804); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_154416804)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.constraints is not None or self.elt_methods is not None or self.max_len_error is not None or self.min_len_error is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, None), state * else: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_TupleMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_TupleMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_154416804); __Pyx_GIVEREF(__pyx_int_154416804); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_154416804)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TupleMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11TupleMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11TupleMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_TupleMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TupleMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TupleMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":631 * cdef readonly object coercer * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return OptionalMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_14OptionalMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":632 * * cpdef deserialize(self, object data): * return OptionalMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, value_method, coercer): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_OptionalMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":631 * cdef readonly object coercer * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return OptionalMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 631, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 631, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 631, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_14OptionalMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":634 * return OptionalMethod_deserialize(self, data) * * def __init__(self, value_method, coercer): # <<<<<<<<<<<<<< * self.value_method = value_method * self.coercer = coercer */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_value_method = 0; PyObject *__pyx_v_coercer = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_value_method,&__pyx_n_s_coercer,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 634, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_coercer)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 634, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 634, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 634, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_value_method = values[0]; __pyx_v_coercer = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 634, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self), __pyx_v_value_method, __pyx_v_coercer); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_value_method, PyObject *__pyx_v_coercer) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":635 * * def __init__(self, value_method, coercer): * self.value_method = value_method # <<<<<<<<<<<<<< * self.coercer = coercer * self._dispatch = 25 */ if (!(likely(((__pyx_v_value_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 635, __pyx_L1_error) __pyx_t_1 = __pyx_v_value_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->value_method); __Pyx_DECREF((PyObject *)__pyx_v_self->value_method); __pyx_v_self->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":636 * def __init__(self, value_method, coercer): * self.value_method = value_method * self.coercer = coercer # <<<<<<<<<<<<<< * self._dispatch = 25 * */ __Pyx_INCREF(__pyx_v_coercer); __Pyx_GIVEREF(__pyx_v_coercer); __Pyx_GOTREF(__pyx_v_self->coercer); __Pyx_DECREF(__pyx_v_self->coercer); __pyx_v_self->coercer = __pyx_v_coercer; /* "apischema/deserialization/methods.pyx":637 * self.value_method = value_method * self.coercer = coercer * self._dispatch = 25 # <<<<<<<<<<<<<< * * cdef class UnionByTypeMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 25; /* "apischema/deserialization/methods.pyx":634 * return OptionalMethod_deserialize(self, data) * * def __init__(self, value_method, coercer): # <<<<<<<<<<<<<< * self.value_method = value_method * self.coercer = coercer */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":628 * * cdef class OptionalMethod(DeserializationMethod): * cdef readonly DeserializationMethod value_method # <<<<<<<<<<<<<< * cdef readonly object coercer * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_12value_method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_12value_method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_12value_method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_12value_method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __pyx_r = ((PyObject *)__pyx_v_self->value_method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":629 * cdef class OptionalMethod(DeserializationMethod): * cdef readonly DeserializationMethod value_method * cdef readonly object coercer # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7coercer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7coercer_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_7coercer___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_7coercer___get__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->coercer); __pyx_r = __pyx_v_self->coercer; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14OptionalMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.coercer, self.value_method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->coercer); __Pyx_GIVEREF(__pyx_v_self->coercer); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->coercer)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->value_method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->value_method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->value_method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.coercer, self.value_method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.coercer, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.coercer is not None or self.value_method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.coercer, self.value_method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.coercer is not None or self.value_method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->coercer != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->value_method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.coercer is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.coercer is not None or self.value_method is not None * if use_setstate: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_OptionalMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_238659478); __Pyx_GIVEREF(__pyx_int_238659478); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_238659478)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.coercer is not None or self.value_method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, None), state * else: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_OptionalMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_OptionalMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_238659478); __Pyx_GIVEREF(__pyx_int_238659478); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_238659478)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_OptionalMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_14OptionalMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14OptionalMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_OptionalMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_OptionalMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_OptionalMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":642 * cdef readonly dict method_by_cls * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionByTypeMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":643 * * cpdef deserialize(self, object data): * return UnionByTypeMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, method_by_cls): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":642 * cdef readonly dict method_by_cls * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionByTypeMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 642, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 642, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 642, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":645 * return UnionByTypeMethod_deserialize(self, data) * * def __init__(self, method_by_cls): # <<<<<<<<<<<<<< * self.method_by_cls = method_by_cls * self._dispatch = 26 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_method_by_cls = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method_by_cls,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method_by_cls)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 645, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 645, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_method_by_cls = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 645, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v_self), __pyx_v_method_by_cls); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_method_by_cls) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":646 * * def __init__(self, method_by_cls): * self.method_by_cls = method_by_cls # <<<<<<<<<<<<<< * self._dispatch = 26 * */ if (!(likely(PyDict_CheckExact(__pyx_v_method_by_cls))||((__pyx_v_method_by_cls) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_v_method_by_cls))) __PYX_ERR(0, 646, __pyx_L1_error) __pyx_t_1 = __pyx_v_method_by_cls; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->method_by_cls); __Pyx_DECREF(__pyx_v_self->method_by_cls); __pyx_v_self->method_by_cls = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":647 * def __init__(self, method_by_cls): * self.method_by_cls = method_by_cls * self._dispatch = 26 # <<<<<<<<<<<<<< * * cdef class UnionMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 26; /* "apischema/deserialization/methods.pyx":645 * return UnionByTypeMethod_deserialize(self, data) * * def __init__(self, method_by_cls): # <<<<<<<<<<<<<< * self.method_by_cls = method_by_cls * self._dispatch = 26 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":640 * * cdef class UnionByTypeMethod(DeserializationMethod): * cdef readonly dict method_by_cls # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_13method_by_cls_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_13method_by_cls_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_13method_by_cls___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_13method_by_cls___get__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->method_by_cls); __pyx_r = __pyx_v_self->method_by_cls; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17UnionByTypeMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.method_by_cls) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->method_by_cls); __Pyx_GIVEREF(__pyx_v_self->method_by_cls); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->method_by_cls)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.method_by_cls) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.method_by_cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.method_by_cls is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.method_by_cls) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.method_by_cls is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->method_by_cls != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.method_by_cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.method_by_cls is not None * if use_setstate: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_UnionByTypeMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34456425); __Pyx_GIVEREF(__pyx_int_34456425); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_34456425)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.method_by_cls is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, None), state * else: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_UnionByTypeMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_UnionByTypeMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_34456425); __Pyx_GIVEREF(__pyx_int_34456425); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_34456425)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionByTypeMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17UnionByTypeMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_17UnionByTypeMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_UnionByTypeMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionByTypeMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionByTypeMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":652 * cdef readonly tuple alt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_11UnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":653 * * cpdef deserialize(self, object data): * return UnionMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, alt_methods): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_UnionMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":652 * cdef readonly tuple alt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11UnionMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 652, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 652, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 652, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_11UnionMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":655 * return UnionMethod_deserialize(self, data) * * def __init__(self, alt_methods): # <<<<<<<<<<<<<< * self.alt_methods = alt_methods * self._dispatch = 27 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_alt_methods = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_alt_methods,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_alt_methods)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 655, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 655, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_alt_methods = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 655, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v_self), __pyx_v_alt_methods); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_alt_methods) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":656 * * def __init__(self, alt_methods): * self.alt_methods = alt_methods # <<<<<<<<<<<<<< * self._dispatch = 27 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_alt_methods))||((__pyx_v_alt_methods) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_alt_methods))) __PYX_ERR(0, 656, __pyx_L1_error) __pyx_t_1 = __pyx_v_alt_methods; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->alt_methods); __Pyx_DECREF(__pyx_v_self->alt_methods); __pyx_v_self->alt_methods = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":657 * def __init__(self, alt_methods): * self.alt_methods = alt_methods * self._dispatch = 27 # <<<<<<<<<<<<<< * * cdef class ConversionMethod(DeserializationMethod): */ __pyx_v_self->__pyx_base._dispatch = 27; /* "apischema/deserialization/methods.pyx":655 * return UnionMethod_deserialize(self, data) * * def __init__(self, alt_methods): # <<<<<<<<<<<<<< * self.alt_methods = alt_methods * self._dispatch = 27 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":650 * * cdef class UnionMethod(DeserializationMethod): * cdef readonly tuple alt_methods # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_11alt_methods_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_11alt_methods_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_11alt_methods___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_11alt_methods___get__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->alt_methods); __pyx_r = __pyx_v_self->alt_methods; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11UnionMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.alt_methods) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->alt_methods); __Pyx_GIVEREF(__pyx_v_self->alt_methods); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->alt_methods)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.alt_methods) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.alt_methods) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.alt_methods is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.alt_methods) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.alt_methods is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->alt_methods != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.alt_methods is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.alt_methods is not None * if use_setstate: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_UnionMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_90778316); __Pyx_GIVEREF(__pyx_int_90778316); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_90778316)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.alt_methods is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, None), state * else: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_UnionMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_UnionMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_90778316); __Pyx_GIVEREF(__pyx_int_90778316); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_90778316)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11UnionMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_11UnionMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_UnionMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":663 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_16ConversionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":664 * * cpdef deserialize(self, object data): * return ConversionMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, converter, method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ConversionMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":663 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 663, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 663, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 663, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_16ConversionMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":666 * return ConversionMethod_deserialize(self, data) * * def __init__(self, converter, method): # <<<<<<<<<<<<<< * self.converter = converter * self.method = method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_converter = 0; PyObject *__pyx_v_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_converter,&__pyx_n_s_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_converter)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 666, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 666, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 666, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 666, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_converter = values[0]; __pyx_v_method = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 666, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self), __pyx_v_converter, __pyx_v_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_converter, PyObject *__pyx_v_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":667 * * def __init__(self, converter, method): * self.converter = converter # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 28 */ __Pyx_INCREF(__pyx_v_converter); __Pyx_GIVEREF(__pyx_v_converter); __Pyx_GOTREF(__pyx_v_self->converter); __Pyx_DECREF(__pyx_v_self->converter); __pyx_v_self->converter = __pyx_v_converter; /* "apischema/deserialization/methods.pyx":668 * def __init__(self, converter, method): * self.converter = converter * self.method = method # <<<<<<<<<<<<<< * self._dispatch = 28 * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 668, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":669 * self.converter = converter * self.method = method * self._dispatch = 28 # <<<<<<<<<<<<<< * * cdef class ConversionWithValueErrorMethod(ConversionMethod): */ __pyx_v_self->__pyx_base._dispatch = 28; /* "apischema/deserialization/methods.pyx":666 * return ConversionMethod_deserialize(self, data) * * def __init__(self, converter, method): # <<<<<<<<<<<<<< * self.converter = converter * self.method = method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":660 * * cdef class ConversionMethod(DeserializationMethod): * cdef readonly object converter # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_9converter_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_9converter_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_9converter___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_9converter___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->converter); __pyx_r = __pyx_v_self->converter; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":661 * cdef class ConversionMethod(DeserializationMethod): * cdef readonly object converter * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_16ConversionMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.converter, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->converter); __Pyx_GIVEREF(__pyx_v_self->converter); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->converter)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.converter, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.converter, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.converter is not None or self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.converter, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.converter is not None or self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->converter != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.converter is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.converter is not None or self.method is not None * if use_setstate: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConversionMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_21894935); __Pyx_GIVEREF(__pyx_int_21894935); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_21894935)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.converter is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, None), state * else: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConversionMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_21894935); __Pyx_GIVEREF(__pyx_int_21894935); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_21894935)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_16ConversionMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16ConversionMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":673 * cdef class ConversionWithValueErrorMethod(ConversionMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionWithValueErrorMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":674 * * cpdef deserialize(self, object data): * return ConversionWithValueErrorMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, converter, method): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":673 * cdef class ConversionWithValueErrorMethod(ConversionMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionWithValueErrorMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 673, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 673, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 673, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":676 * return ConversionWithValueErrorMethod_deserialize(self, data) * * def __init__(self, converter, method): # <<<<<<<<<<<<<< * self.converter = converter * self.method = method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_converter = 0; PyObject *__pyx_v_method = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_converter,&__pyx_n_s_method,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_converter)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 676, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 676, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 676, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 676, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_converter = values[0]; __pyx_v_method = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 676, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)__pyx_v_self), __pyx_v_converter, __pyx_v_method); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_converter, PyObject *__pyx_v_method) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":677 * * def __init__(self, converter, method): * self.converter = converter # <<<<<<<<<<<<<< * self.method = method * self._dispatch = 29 */ __Pyx_INCREF(__pyx_v_converter); __Pyx_GIVEREF(__pyx_v_converter); __Pyx_GOTREF(__pyx_v_self->__pyx_base.converter); __Pyx_DECREF(__pyx_v_self->__pyx_base.converter); __pyx_v_self->__pyx_base.converter = __pyx_v_converter; /* "apischema/deserialization/methods.pyx":678 * def __init__(self, converter, method): * self.converter = converter * self.method = method # <<<<<<<<<<<<<< * self._dispatch = 29 * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 678, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->__pyx_base.method); __Pyx_DECREF((PyObject *)__pyx_v_self->__pyx_base.method); __pyx_v_self->__pyx_base.method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":679 * self.converter = converter * self.method = method * self._dispatch = 29 # <<<<<<<<<<<<<< * * cdef class ConversionAlternative(): */ __pyx_v_self->__pyx_base.__pyx_base._dispatch = 29; /* "apischema/deserialization/methods.pyx":676 * return ConversionWithValueErrorMethod_deserialize(self, data) * * def __init__(self, converter, method): # <<<<<<<<<<<<<< * self.converter = converter * self.method = method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.converter, self.method) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base.__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->__pyx_base.converter); __Pyx_GIVEREF(__pyx_v_self->__pyx_base.converter); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->__pyx_base.converter)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->__pyx_base.method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->__pyx_base.method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_self->__pyx_base.method))) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.converter, self.method) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.converter, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.converter is not None or self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.converter, self.method) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.converter is not None or self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->__pyx_base.converter != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->__pyx_base.method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.converter is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.converter is not None or self.method is not None * if use_setstate: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConversionWithVal); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_21894935); __Pyx_GIVEREF(__pyx_int_21894935); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_21894935)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.converter is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, None), state * else: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionWithValueErrorMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConversionWithVal); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_21894935); __Pyx_GIVEREF(__pyx_int_21894935); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_21894935)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionWithValueErrorMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionWithValueErrorMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionWithValueErrorMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionWithValueErrorMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":686 * cdef readonly bint value_error * * def __init__(self, converter, method, value_error): # <<<<<<<<<<<<<< * self.converter = converter * self.method = method */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_converter = 0; PyObject *__pyx_v_method = 0; PyObject *__pyx_v_value_error = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_converter,&__pyx_n_s_method,&__pyx_n_s_value_error,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_converter)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 686, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_method)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 686, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 686, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 686, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 686, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 686, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); } __pyx_v_converter = values[0]; __pyx_v_method = values[1]; __pyx_v_value_error = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 686, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionAlternative.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v_self), __pyx_v_converter, __pyx_v_method, __pyx_v_value_error); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative___init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self, PyObject *__pyx_v_converter, PyObject *__pyx_v_method, PyObject *__pyx_v_value_error) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":687 * * def __init__(self, converter, method, value_error): * self.converter = converter # <<<<<<<<<<<<<< * self.method = method * self.value_error = value_error */ __Pyx_INCREF(__pyx_v_converter); __Pyx_GIVEREF(__pyx_v_converter); __Pyx_GOTREF(__pyx_v_self->converter); __Pyx_DECREF(__pyx_v_self->converter); __pyx_v_self->converter = __pyx_v_converter; /* "apischema/deserialization/methods.pyx":688 * def __init__(self, converter, method, value_error): * self.converter = converter * self.method = method # <<<<<<<<<<<<<< * self.value_error = value_error * */ if (!(likely(((__pyx_v_method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 688, __pyx_L1_error) __pyx_t_1 = __pyx_v_method; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->method); __Pyx_DECREF((PyObject *)__pyx_v_self->method); __pyx_v_self->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":689 * self.converter = converter * self.method = method * self.value_error = value_error # <<<<<<<<<<<<<< * * cdef class ConversionUnionMethod(DeserializationMethod): */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_value_error); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 689, __pyx_L1_error) __pyx_v_self->value_error = __pyx_t_2; /* "apischema/deserialization/methods.pyx":686 * cdef readonly bint value_error * * def __init__(self, converter, method, value_error): # <<<<<<<<<<<<<< * self.converter = converter * self.method = method */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionAlternative.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":682 * * cdef class ConversionAlternative(): * cdef readonly object converter # <<<<<<<<<<<<<< * cdef readonly DeserializationMethod method * cdef readonly bint value_error */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_9converter_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_9converter_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_9converter___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_9converter___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->converter); __pyx_r = __pyx_v_self->converter; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":683 * cdef class ConversionAlternative(): * cdef readonly object converter * cdef readonly DeserializationMethod method # <<<<<<<<<<<<<< * cdef readonly bint value_error * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_6method_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_6method_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_6method___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_6method___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __pyx_r = ((PyObject *)__pyx_v_self->method); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":684 * cdef readonly object converter * cdef readonly DeserializationMethod method * cdef readonly bint value_error # <<<<<<<<<<<<<< * * def __init__(self, converter, method, value_error): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_11value_error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_11value_error_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_11value_error___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_11value_error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->value_error); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionAlternative.value_error.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21ConversionAlternative_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.converter, self.method, self.value_error) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->value_error); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_self->converter); __Pyx_GIVEREF(__pyx_v_self->converter); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->converter)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_self->method); __Pyx_GIVEREF((PyObject *)__pyx_v_self->method); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->method))) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.converter, self.method, self.value_error) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self.converter, self.method, self.value_error) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.converter is not None or self.method is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.converter, self.method, self.value_error) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.converter is not None or self.method is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->converter != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (((PyObject *)__pyx_v_self->method) != Py_None); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.converter is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.converter is not None or self.method is not None * if use_setstate: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConversionAlterna); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_157010104); __Pyx_GIVEREF(__pyx_int_157010104); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_157010104)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.converter is not None or self.method is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, None), state * else: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionAlternative__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConversionAlterna); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_157010104); __Pyx_GIVEREF(__pyx_int_157010104); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_157010104)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionAlternative.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionAlternative__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21ConversionAlternative_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionAlternative.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionAlternative_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionAlternative__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionAlternative__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionAlternative__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionAlternative.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":694 * cdef readonly tuple alternatives * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionUnionMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":695 * * cpdef deserialize(self, object data): * return ConversionUnionMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, alternatives): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_ConversionUnionMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":694 * cdef readonly tuple alternatives * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionUnionMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 694, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 694, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 694, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":697 * return ConversionUnionMethod_deserialize(self, data) * * def __init__(self, alternatives): # <<<<<<<<<<<<<< * self.alternatives = alternatives * self._dispatch = 30 */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_alternatives = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_alternatives,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_alternatives)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 697, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 697, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v_alternatives = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 697, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v_self), __pyx_v_alternatives); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_alternatives) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":698 * * def __init__(self, alternatives): * self.alternatives = alternatives # <<<<<<<<<<<<<< * self._dispatch = 30 * */ if (!(likely(PyTuple_CheckExact(__pyx_v_alternatives))||((__pyx_v_alternatives) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v_alternatives))) __PYX_ERR(0, 698, __pyx_L1_error) __pyx_t_1 = __pyx_v_alternatives; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->alternatives); __Pyx_DECREF(__pyx_v_self->alternatives); __pyx_v_self->alternatives = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":699 * def __init__(self, alternatives): * self.alternatives = alternatives * self._dispatch = 30 # <<<<<<<<<<<<<< * * cdef class Discriminated(): */ __pyx_v_self->__pyx_base._dispatch = 30; /* "apischema/deserialization/methods.pyx":697 * return ConversionUnionMethod_deserialize(self, data) * * def __init__(self, alternatives): # <<<<<<<<<<<<<< * self.alternatives = alternatives * self._dispatch = 30 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":692 * * cdef class ConversionUnionMethod(DeserializationMethod): * cdef readonly tuple alternatives # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_12alternatives_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_12alternatives_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_12alternatives___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_12alternatives___get__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->alternatives); __pyx_r = __pyx_v_self->alternatives; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21ConversionUnionMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.alternatives) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->alternatives); __Pyx_GIVEREF(__pyx_v_self->alternatives); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->alternatives)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.alternatives) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.alternatives) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.alternatives is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.alternatives) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.alternatives is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, None), state */ /*else*/ { __pyx_t_3 = (__pyx_v_self->alternatives != ((PyObject*)Py_None)); __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.alternatives is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.alternatives is not None * if use_setstate: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ConversionUnionMe); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_142562297); __Pyx_GIVEREF(__pyx_int_142562297); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_142562297)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.alternatives is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, None), state * else: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionUnionMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_ConversionUnionMe); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_142562297); __Pyx_GIVEREF(__pyx_int_142562297); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_142562297)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionUnionMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21ConversionUnionMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_21ConversionUnionMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_ConversionUnionMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionUnionMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionUnionMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":705 * cdef readonly object data * * def __init__(self, discriminator, data): # <<<<<<<<<<<<<< * self.discriminator = discriminator * self.data = data */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_13Discriminated_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_13Discriminated_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_discriminator = 0; PyObject *__pyx_v_data = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_discriminator,&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_discriminator)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 705, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 705, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 705, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 705, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); } __pyx_v_discriminator = values[0]; __pyx_v_data = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 705, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Discriminated.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13Discriminated___init__(((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)__pyx_v_self), __pyx_v_discriminator, __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_13Discriminated___init__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self, PyObject *__pyx_v_discriminator, PyObject *__pyx_v_data) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":706 * * def __init__(self, discriminator, data): * self.discriminator = discriminator # <<<<<<<<<<<<<< * self.data = data * */ if (!(likely(PyUnicode_CheckExact(__pyx_v_discriminator))||((__pyx_v_discriminator) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_discriminator))) __PYX_ERR(0, 706, __pyx_L1_error) __pyx_t_1 = __pyx_v_discriminator; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->discriminator); __Pyx_DECREF(__pyx_v_self->discriminator); __pyx_v_self->discriminator = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":707 * def __init__(self, discriminator, data): * self.discriminator = discriminator * self.data = data # <<<<<<<<<<<<<< * * cdef class DiscriminatorMethod(DeserializationMethod): */ __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); __Pyx_GOTREF(__pyx_v_self->data); __Pyx_DECREF(__pyx_v_self->data); __pyx_v_self->data = __pyx_v_data; /* "apischema/deserialization/methods.pyx":705 * cdef readonly object data * * def __init__(self, discriminator, data): # <<<<<<<<<<<<<< * self.discriminator = discriminator * self.data = data */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Discriminated.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":702 * * cdef class Discriminated(): * cdef readonly str discriminator # <<<<<<<<<<<<<< * cdef readonly object data * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_13discriminator_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_13discriminator_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13Discriminated_13discriminator___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_13discriminator___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->discriminator); __pyx_r = __pyx_v_self->discriminator; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":703 * cdef class Discriminated(): * cdef readonly str discriminator * cdef readonly object data # <<<<<<<<<<<<<< * * def __init__(self, discriminator, data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_4data_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_4data_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13Discriminated_4data___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_4data___get__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->data); __pyx_r = __pyx_v_self->data; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13Discriminated_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_3__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13Discriminated_2__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_2__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self.data, self.discriminator) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_self->data); __Pyx_GIVEREF(__pyx_v_self->data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->data)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->discriminator); __Pyx_GIVEREF(__pyx_v_self->discriminator); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->discriminator)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_v_state = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self.data, self.discriminator) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__dict = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":7 * state = (self.data, self.discriminator) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_2 = (__pyx_v__dict != Py_None); if (__pyx_t_2) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.data is not None or self.discriminator is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self.data, self.discriminator) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.data is not None or self.discriminator is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->data != Py_None); if (!__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->discriminator != ((PyObject*)Py_None)); __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_2; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.data is not None or self.discriminator is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.data is not None or self.discriminator is not None * if use_setstate: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_Discriminated); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_206753745); __Pyx_GIVEREF(__pyx_int_206753745); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_206753745)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.data is not None or self.discriminator is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, None), state * else: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Discriminated__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_Discriminated); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_206753745); __Pyx_GIVEREF(__pyx_int_206753745); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_206753745)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.Discriminated.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Discriminated__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13Discriminated_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_5__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.Discriminated.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_13Discriminated_4__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_13Discriminated_4__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_Discriminated__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Discriminated__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Discriminated__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.Discriminated.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":715 * cdef readonly object error * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return DiscriminatorMethod_deserialize(self, data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyObject *__pyx_f_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_typedict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deserialize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!__Pyx_IsSameCFunction(__pyx_t_1, (void*) __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_typedict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "apischema/deserialization/methods.pyx":716 * * cpdef deserialize(self, object data): * return DiscriminatorMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * def __init__(self, alias, mapping, missing, error): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_DiscriminatorMethod_deserialize(__pyx_v_self, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":715 * cdef readonly object error * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return DiscriminatorMethod_deserialize(self, data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize = {"deserialize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("deserialize (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 715, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "deserialize") < 0)) __PYX_ERR(0, 715, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("deserialize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 715, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self), __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("deserialize", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":718 * return DiscriminatorMethod_deserialize(self, data) * * def __init__(self, alias, mapping, missing, error): # <<<<<<<<<<<<<< * self.alias = alias * self.mapping = mapping */ /* Python wrapper */ static int __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_alias = 0; PyObject *__pyx_v_mapping = 0; PyObject *__pyx_v_missing = 0; PyObject *__pyx_v_error = 0; CYTHON_UNUSED Py_ssize_t __pyx_nargs; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[4] = {0,0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_alias,&__pyx_n_s_mapping,&__pyx_n_s_missing,&__pyx_n_s_error,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_alias)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mapping)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 718, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_missing)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 718, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 718, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 718, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2); values[3] = __Pyx_Arg_VARARGS(__pyx_args, 3); } __pyx_v_alias = values[0]; __pyx_v_mapping = values[1]; __pyx_v_missing = values[2]; __pyx_v_error = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 718, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_2__init__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self), __pyx_v_alias, __pyx_v_mapping, __pyx_v_missing, __pyx_v_error); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_2__init__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_alias, PyObject *__pyx_v_mapping, PyObject *__pyx_v_missing, PyObject *__pyx_v_error) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 1); /* "apischema/deserialization/methods.pyx":719 * * def __init__(self, alias, mapping, missing, error): * self.alias = alias # <<<<<<<<<<<<<< * self.mapping = mapping * self.missing = missing */ if (!(likely(PyUnicode_CheckExact(__pyx_v_alias))||((__pyx_v_alias) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_alias))) __PYX_ERR(0, 719, __pyx_L1_error) __pyx_t_1 = __pyx_v_alias; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->alias); __Pyx_DECREF(__pyx_v_self->alias); __pyx_v_self->alias = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":720 * def __init__(self, alias, mapping, missing, error): * self.alias = alias * self.mapping = mapping # <<<<<<<<<<<<<< * self.missing = missing * self.error = error */ if (!(likely(PyDict_CheckExact(__pyx_v_mapping))||((__pyx_v_mapping) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_v_mapping))) __PYX_ERR(0, 720, __pyx_L1_error) __pyx_t_1 = __pyx_v_mapping; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->mapping); __Pyx_DECREF(__pyx_v_self->mapping); __pyx_v_self->mapping = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":721 * self.alias = alias * self.mapping = mapping * self.missing = missing # <<<<<<<<<<<<<< * self.error = error * self._dispatch = 31 */ if (!(likely(PyUnicode_CheckExact(__pyx_v_missing))||((__pyx_v_missing) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_v_missing))) __PYX_ERR(0, 721, __pyx_L1_error) __pyx_t_1 = __pyx_v_missing; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->missing); __Pyx_DECREF(__pyx_v_self->missing); __pyx_v_self->missing = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":722 * self.mapping = mapping * self.missing = missing * self.error = error # <<<<<<<<<<<<<< * self._dispatch = 31 * */ __Pyx_INCREF(__pyx_v_error); __Pyx_GIVEREF(__pyx_v_error); __Pyx_GOTREF(__pyx_v_self->error); __Pyx_DECREF(__pyx_v_self->error); __pyx_v_self->error = __pyx_v_error; /* "apischema/deserialization/methods.pyx":723 * self.missing = missing * self.error = error * self._dispatch = 31 # <<<<<<<<<<<<<< * * cpdef inline to_hashable(object data): */ __pyx_v_self->__pyx_base._dispatch = 31; /* "apischema/deserialization/methods.pyx":718 * return DiscriminatorMethod_deserialize(self, data) * * def __init__(self, alias, mapping, missing, error): # <<<<<<<<<<<<<< * self.alias = alias * self.mapping = mapping */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":710 * * cdef class DiscriminatorMethod(DeserializationMethod): * cdef readonly str alias # <<<<<<<<<<<<<< * cdef readonly dict mapping * cdef readonly str missing */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5alias_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5alias_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_5alias___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_5alias___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->alias); __pyx_r = __pyx_v_self->alias; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":711 * cdef class DiscriminatorMethod(DeserializationMethod): * cdef readonly str alias * cdef readonly dict mapping # <<<<<<<<<<<<<< * cdef readonly str missing * cdef readonly object error */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7mapping_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7mapping_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_7mapping___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_7mapping___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->mapping); __pyx_r = __pyx_v_self->mapping; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":712 * cdef readonly str alias * cdef readonly dict mapping * cdef readonly str missing # <<<<<<<<<<<<<< * cdef readonly object error * */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7missing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7missing_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_7missing___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_7missing___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->missing); __pyx_r = __pyx_v_self->missing; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":713 * cdef readonly dict mapping * cdef readonly str missing * cdef readonly object error # <<<<<<<<<<<<<< * * cpdef deserialize(self, object data): */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5error_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5error_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_5error___get__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_5error___get__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 1); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->error); __pyx_r = __pyx_v_self->error; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19DiscriminatorMethod_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_4__reduce_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_4__reduce_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self) { PyObject *__pyx_v_state = 0; PyObject *__pyx_v__dict = 0; int __pyx_v_use_setstate; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__reduce_cython__", 1); /* "(tree fragment)":5 * cdef object _dict * cdef bint use_setstate * state = (self._dispatch, self.alias, self.error, self.mapping, self.missing) # <<<<<<<<<<<<<< * _dict = getattr(self, '__dict__', None) * if _dict is not None: */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base._dispatch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->alias); __Pyx_GIVEREF(__pyx_v_self->alias); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->alias)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->error); __Pyx_GIVEREF(__pyx_v_self->error); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->error)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->mapping); __Pyx_GIVEREF(__pyx_v_self->mapping); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_self->mapping)) __PYX_ERR(2, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->missing); __Pyx_GIVEREF(__pyx_v_self->missing); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_self->missing)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_1 = 0; __pyx_v_state = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "(tree fragment)":6 * cdef bint use_setstate * state = (self._dispatch, self.alias, self.error, self.mapping, self.missing) * _dict = getattr(self, '__dict__', None) # <<<<<<<<<<<<<< * if _dict is not None: * state += (_dict,) */ __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v__dict = __pyx_t_2; __pyx_t_2 = 0; /* "(tree fragment)":7 * state = (self._dispatch, self.alias, self.error, self.mapping, self.missing) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ __pyx_t_3 = (__pyx_v__dict != Py_None); if (__pyx_t_3) { /* "(tree fragment)":8 * _dict = getattr(self, '__dict__', None) * if _dict is not None: * state += (_dict,) # <<<<<<<<<<<<<< * use_setstate = True * else: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v__dict); __Pyx_GIVEREF(__pyx_v__dict); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict)) __PYX_ERR(2, 8, __pyx_L1_error); __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; /* "(tree fragment)":9 * if _dict is not None: * state += (_dict,) * use_setstate = True # <<<<<<<<<<<<<< * else: * use_setstate = self.alias is not None or self.error is not None or self.mapping is not None or self.missing is not None */ __pyx_v_use_setstate = 1; /* "(tree fragment)":7 * state = (self._dispatch, self.alias, self.error, self.mapping, self.missing) * _dict = getattr(self, '__dict__', None) * if _dict is not None: # <<<<<<<<<<<<<< * state += (_dict,) * use_setstate = True */ goto __pyx_L3; } /* "(tree fragment)":11 * use_setstate = True * else: * use_setstate = self.alias is not None or self.error is not None or self.mapping is not None or self.missing is not None # <<<<<<<<<<<<<< * if use_setstate: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, None), state */ /*else*/ { __pyx_t_4 = (__pyx_v_self->alias != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->error != Py_None); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->mapping != ((PyObject*)Py_None)); if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = (__pyx_v_self->missing != ((PyObject*)Py_None)); __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __pyx_v_use_setstate = __pyx_t_3; } __pyx_L3:; /* "(tree fragment)":12 * else: * use_setstate = self.alias is not None or self.error is not None or self.mapping is not None or self.missing is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, None), state * else: */ if (__pyx_v_use_setstate) { /* "(tree fragment)":13 * use_setstate = self.alias is not None or self.error is not None or self.mapping is not None or self.missing is not None * if use_setstate: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, None), state # <<<<<<<<<<<<<< * else: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_DiscriminatorMeth); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_int_76745901); __Pyx_GIVEREF(__pyx_int_76745901); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_76745901)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state)) __PYX_ERR(2, 13, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "(tree fragment)":12 * else: * use_setstate = self.alias is not None or self.error is not None or self.mapping is not None or self.missing is not None * if use_setstate: # <<<<<<<<<<<<<< * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, None), state * else: */ } /* "(tree fragment)":15 * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, None), state * else: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_DiscriminatorMethod__set_state(self, __pyx_state) */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_DiscriminatorMeth); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_int_76745901); __Pyx_GIVEREF(__pyx_int_76745901); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_76745901)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_INCREF(__pyx_v_state); __Pyx_GIVEREF(__pyx_v_state); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_state); __Pyx_XDECREF(__pyx_v__dict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":16 * else: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DiscriminatorMethod__set_state(self, __pyx_state) */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19DiscriminatorMethod_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(2, 16, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v___pyx_state = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 16, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_6__setstate_cython__(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_19DiscriminatorMethod_6__setstate_cython__(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setstate_cython__", 1); /* "(tree fragment)":17 * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) * def __setstate_cython__(self, __pyx_state): * __pyx_unpickle_DiscriminatorMethod__set_state(self, __pyx_state) # <<<<<<<<<<<<<< */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 17, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DiscriminatorMethod__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":16 * else: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DiscriminatorMethod__set_state(self, __pyx_state) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":725 * self._dispatch = 31 * * cpdef inline to_hashable(object data): # <<<<<<<<<<<<<< * if isinstance(data, list): * return tuple(map(to_hashable, data)) */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_1to_hashable(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_to_hashable(PyObject *__pyx_v_data, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_v_sorted_keys = NULL; PyObject *__pyx_7genexpr__pyx_v_k = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; Py_ssize_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("to_hashable", 1); /* "apischema/deserialization/methods.pyx":726 * * cpdef inline to_hashable(object data): * if isinstance(data, list): # <<<<<<<<<<<<<< * return tuple(map(to_hashable, data)) * elif isinstance(data, dict): */ __pyx_t_1 = PyList_Check(__pyx_v_data); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":727 * cpdef inline to_hashable(object data): * if isinstance(data, list): * return tuple(map(to_hashable, data)) # <<<<<<<<<<<<<< * elif isinstance(data, dict): * sorted_keys = sorted(data) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_to_hashable); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(0, 727, __pyx_L1_error); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_data)) __PYX_ERR(0, 727, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PySequence_Tuple(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":726 * * cpdef inline to_hashable(object data): * if isinstance(data, list): # <<<<<<<<<<<<<< * return tuple(map(to_hashable, data)) * elif isinstance(data, dict): */ } /* "apischema/deserialization/methods.pyx":728 * if isinstance(data, list): * return tuple(map(to_hashable, data)) * elif isinstance(data, dict): # <<<<<<<<<<<<<< * sorted_keys = sorted(data) * return tuple(sorted_keys + [to_hashable(data[k]) for k in sorted_keys]) */ __pyx_t_1 = PyDict_Check(__pyx_v_data); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":729 * return tuple(map(to_hashable, data)) * elif isinstance(data, dict): * sorted_keys = sorted(data) # <<<<<<<<<<<<<< * return tuple(sorted_keys + [to_hashable(data[k]) for k in sorted_keys]) * else: */ __pyx_t_2 = PySequence_List(__pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = PyList_Sort(__pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 729, __pyx_L1_error) __pyx_v_sorted_keys = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":730 * elif isinstance(data, dict): * sorted_keys = sorted(data) * return tuple(sorted_keys + [to_hashable(data[k]) for k in sorted_keys]) # <<<<<<<<<<<<<< * else: * return data */ __Pyx_XDECREF(__pyx_r); { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 730, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __pyx_v_sorted_keys; __Pyx_INCREF(__pyx_t_2); __pyx_t_5 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 730, __pyx_L6_error) #endif if (__pyx_t_5 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(0, 730, __pyx_L6_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 730, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_k, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_7genexpr__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 730, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __pyx_f_9apischema_15deserialization_7methods_to_hashable(__pyx_t_6, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 730, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 730, __pyx_L6_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __pyx_7genexpr__pyx_v_k = 0; goto __pyx_L10_exit_scope; __pyx_L6_error:; __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __pyx_7genexpr__pyx_v_k = 0; goto __pyx_L1_error; __pyx_L10_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyNumber_Add(__pyx_v_sorted_keys, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":728 * if isinstance(data, list): * return tuple(map(to_hashable, data)) * elif isinstance(data, dict): # <<<<<<<<<<<<<< * sorted_keys = sorted(data) * return tuple(sorted_keys + [to_hashable(data[k]) for k in sorted_keys]) */ } /* "apischema/deserialization/methods.pyx":732 * return tuple(sorted_keys + [to_hashable(data[k]) for k in sorted_keys]) * else: * return data # <<<<<<<<<<<<<< * * cpdef inline format_error(object err, object data): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":725 * self._dispatch = 31 * * cpdef inline to_hashable(object data): # <<<<<<<<<<<<<< * if isinstance(data, list): * return tuple(map(to_hashable, data)) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.to_hashable", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_sorted_keys); __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_1to_hashable(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_1to_hashable = {"to_hashable", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_1to_hashable, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_1to_hashable(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[1] = {0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("to_hashable (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 725, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "to_hashable") < 0)) __PYX_ERR(0, 725, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("to_hashable", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 725, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.to_hashable", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_to_hashable(__pyx_self, __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_to_hashable(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("to_hashable", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_to_hashable(__pyx_v_data, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.to_hashable", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":734 * return data * * cpdef inline format_error(object err, object data): # <<<<<<<<<<<<<< * return err if isinstance(err, str) else err(data) * */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_3format_error(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_format_error(PyObject *__pyx_v_err, PyObject *__pyx_v_data, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("format_error", 1); /* "apischema/deserialization/methods.pyx":735 * * cpdef inline format_error(object err, object data): * return err if isinstance(err, str) else err(data) # <<<<<<<<<<<<<< * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Check(__pyx_v_err); if (__pyx_t_2) { __Pyx_INCREF(__pyx_v_err); __pyx_t_1 = __pyx_v_err; } else { __Pyx_INCREF(__pyx_v_err); __pyx_t_4 = __pyx_v_err; __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_data}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; } __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":734 * return data * * cpdef inline format_error(object err, object data): # <<<<<<<<<<<<<< * return err if isinstance(err, str) else err(data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.format_error", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_3format_error(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_3format_error = {"format_error", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_3format_error, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_3format_error(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_err = 0; PyObject *__pyx_v_data = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("format_error (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_err,&__pyx_n_s_data,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_err)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 734, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 734, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("format_error", 1, 2, 2, 1); __PYX_ERR(0, 734, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "format_error") < 0)) __PYX_ERR(0, 734, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_err = values[0]; __pyx_v_data = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("format_error", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 734, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.format_error", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_2format_error(__pyx_self, __pyx_v_err, __pyx_v_data); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_2format_error(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_err, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("format_error", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_v_err, __pyx_v_data, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.format_error", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":737 * return err if isinstance(err, str) else err(data) * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): # <<<<<<<<<<<<<< * for i in range(len(constraints)): * constraint:Constraint= constraints[i] */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5validate_constraints(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_validate_constraints(PyObject *__pyx_v_data, PyObject *__pyx_v_constraints, PyObject *__pyx_v_children_errors, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_v_i = NULL; struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_constraint = 0; PyObject *__pyx_v_errors = 0; PyObject *__pyx_v_j = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *(*__pyx_t_4)(PyObject *); int __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *(*__pyx_t_10)(PyObject *); int __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate_constraints", 1); /* "apischema/deserialization/methods.pyx":738 * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): * for i in range(len(constraints)): # <<<<<<<<<<<<<< * constraint:Constraint= constraints[i] * if not Constraint_validate(constraint, data): */ if (unlikely(__pyx_v_constraints == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 738, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyTuple_GET_SIZE(__pyx_v_constraints); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 738, __pyx_L1_error) __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_1 = 0; __pyx_t_4 = NULL; } else { __pyx_t_1 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 738, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { if (likely(!__pyx_t_4)) { if (likely(PyList_CheckExact(__pyx_t_2))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 738, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 738, __pyx_L1_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 738, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 738, __pyx_L1_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } } else { __pyx_t_3 = __pyx_t_4(__pyx_t_2); if (unlikely(!__pyx_t_3)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 738, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_3); } __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":739 * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): * for i in range(len(constraints)): * constraint:Constraint= constraints[i] # <<<<<<<<<<<<<< * if not Constraint_validate(constraint, data): * errors:list= [format_error(constraint.error, data)] */ if (unlikely(__pyx_v_constraints == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 739, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_constraints, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_9apischema_15deserialization_7methods_Constraint))))) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_constraint, ((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_t_3)); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":740 * for i in range(len(constraints)): * constraint:Constraint= constraints[i] * if not Constraint_validate(constraint, data): # <<<<<<<<<<<<<< * errors:list= [format_error(constraint.error, data)] * for j in range(i + 1, len(constraints)): */ __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_Constraint_validate(__pyx_v_constraint, __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = (!__pyx_t_5); if (__pyx_t_6) { /* "apischema/deserialization/methods.pyx":741 * constraint:Constraint= constraints[i] * if not Constraint_validate(constraint, data): * errors:list= [format_error(constraint.error, data)] # <<<<<<<<<<<<<< * for j in range(i + 1, len(constraints)): * constraint = constraints[j] */ __pyx_t_3 = __pyx_v_constraint->error; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_t_3, __pyx_v_data, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_7)) __PYX_ERR(0, 741, __pyx_L1_error); __pyx_t_7 = 0; __pyx_v_errors = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":742 * if not Constraint_validate(constraint, data): * errors:list= [format_error(constraint.error, data)] * for j in range(i + 1, len(constraints)): # <<<<<<<<<<<<<< * constraint = constraints[j] * if not Constraint_validate(constraint, data): */ __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_v_constraints == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 742, __pyx_L1_error) } __pyx_t_8 = __Pyx_PyTuple_GET_SIZE(__pyx_v_constraints); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 742, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3)) __PYX_ERR(0, 742, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7)) __PYX_ERR(0, 742, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) { __pyx_t_9 = __pyx_t_7; __Pyx_INCREF(__pyx_t_9); __pyx_t_8 = 0; __pyx_t_10 = NULL; } else { __pyx_t_8 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 742, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; for (;;) { if (likely(!__pyx_t_10)) { if (likely(PyList_CheckExact(__pyx_t_9))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 742, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 742, __pyx_L1_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 742, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 742, __pyx_L1_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } } else { __pyx_t_7 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_7)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 742, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_7); } __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_7); __pyx_t_7 = 0; /* "apischema/deserialization/methods.pyx":743 * errors:list= [format_error(constraint.error, data)] * for j in range(i + 1, len(constraints)): * constraint = constraints[j] # <<<<<<<<<<<<<< * if not Constraint_validate(constraint, data): * errors.append(format_error(constraint.error, data)) */ if (unlikely(__pyx_v_constraints == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 743, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_constraints, __pyx_v_j); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_9apischema_15deserialization_7methods_Constraint))))) __PYX_ERR(0, 743, __pyx_L1_error) __Pyx_DECREF_SET(__pyx_v_constraint, ((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_t_7)); __pyx_t_7 = 0; /* "apischema/deserialization/methods.pyx":744 * for j in range(i + 1, len(constraints)): * constraint = constraints[j] * if not Constraint_validate(constraint, data): # <<<<<<<<<<<<<< * errors.append(format_error(constraint.error, data)) * raise ValidationError(errors, children_errors or {}) */ __pyx_t_7 = __pyx_f_9apischema_15deserialization_7methods_Constraint_validate(__pyx_v_constraint, __pyx_v_data); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_5 = (!__pyx_t_6); if (__pyx_t_5) { /* "apischema/deserialization/methods.pyx":745 * constraint = constraints[j] * if not Constraint_validate(constraint, data): * errors.append(format_error(constraint.error, data)) # <<<<<<<<<<<<<< * raise ValidationError(errors, children_errors or {}) * if children_errors: */ __pyx_t_7 = __pyx_v_constraint->error; __Pyx_INCREF(__pyx_t_7); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_t_7, __pyx_v_data, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_errors, __pyx_t_3); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":744 * for j in range(i + 1, len(constraints)): * constraint = constraints[j] * if not Constraint_validate(constraint, data): # <<<<<<<<<<<<<< * errors.append(format_error(constraint.error, data)) * raise ValidationError(errors, children_errors or {}) */ } /* "apischema/deserialization/methods.pyx":742 * if not Constraint_validate(constraint, data): * errors:list= [format_error(constraint.error, data)] * for j in range(i + 1, len(constraints)): # <<<<<<<<<<<<<< * constraint = constraints[j] * if not Constraint_validate(constraint, data): */ } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "apischema/deserialization/methods.pyx":746 * if not Constraint_validate(constraint, data): * errors.append(format_error(constraint.error, data)) * raise ValidationError(errors, children_errors or {}) # <<<<<<<<<<<<<< * if children_errors: * raise ValidationError([], children_errors) */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_children_errors); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 746, __pyx_L1_error) if (!__pyx_t_5) { } else { __Pyx_INCREF(__pyx_v_children_errors); __pyx_t_7 = __pyx_v_children_errors; goto __pyx_L10_bool_binop_done; } __pyx_t_12 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_12); __pyx_t_7 = __pyx_t_12; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_L10_bool_binop_done:; __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_12, __pyx_v_errors, __pyx_t_7}; __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_13, 2+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __PYX_ERR(0, 746, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":740 * for i in range(len(constraints)): * constraint:Constraint= constraints[i] * if not Constraint_validate(constraint, data): # <<<<<<<<<<<<<< * errors:list= [format_error(constraint.error, data)] * for j in range(i + 1, len(constraints)): */ } /* "apischema/deserialization/methods.pyx":738 * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): * for i in range(len(constraints)): # <<<<<<<<<<<<<< * constraint:Constraint= constraints[i] * if not Constraint_validate(constraint, data): */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":747 * errors.append(format_error(constraint.error, data)) * raise ValidationError(errors, children_errors or {}) * if children_errors: # <<<<<<<<<<<<<< * raise ValidationError([], children_errors) * return data */ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_children_errors); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 747, __pyx_L1_error) if (unlikely(__pyx_t_5)) { /* "apischema/deserialization/methods.pyx":748 * raise ValidationError(errors, children_errors or {}) * if children_errors: * raise ValidationError([], children_errors) # <<<<<<<<<<<<<< * return data * */ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_t_3, __pyx_v_children_errors}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_13, 2+__pyx_t_13); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 748, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":747 * errors.append(format_error(constraint.error, data)) * raise ValidationError(errors, children_errors or {}) * if children_errors: # <<<<<<<<<<<<<< * raise ValidationError([], children_errors) * return data */ } /* "apischema/deserialization/methods.pyx":749 * if children_errors: * raise ValidationError([], children_errors) * return data # <<<<<<<<<<<<<< * * cpdef inline set_child_error(object errors, object key, object error): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":737 * return err if isinstance(err, str) else err(data) * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): # <<<<<<<<<<<<<< * for i in range(len(constraints)): * constraint:Constraint= constraints[i] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("apischema.deserialization.methods.validate_constraints", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF((PyObject *)__pyx_v_constraint); __Pyx_XDECREF(__pyx_v_errors); __Pyx_XDECREF(__pyx_v_j); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5validate_constraints(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_5validate_constraints = {"validate_constraints", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_5validate_constraints, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_5validate_constraints(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_data = 0; PyObject *__pyx_v_constraints = 0; PyObject *__pyx_v_children_errors = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("validate_constraints (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,&__pyx_n_s_constraints,&__pyx_n_s_children_errors,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 737, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_constraints)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 737, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("validate_constraints", 1, 3, 3, 1); __PYX_ERR(0, 737, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_children_errors)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 737, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("validate_constraints", 1, 3, 3, 2); __PYX_ERR(0, 737, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "validate_constraints") < 0)) __PYX_ERR(0, 737, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_data = values[0]; __pyx_v_constraints = ((PyObject*)values[1]); __pyx_v_children_errors = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("validate_constraints", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 737, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.validate_constraints", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_constraints), (&PyTuple_Type), 1, "constraints", 1))) __PYX_ERR(0, 737, __pyx_L1_error) __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_4validate_constraints(__pyx_self, __pyx_v_data, __pyx_v_constraints, __pyx_v_children_errors); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_4validate_constraints(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_constraints, PyObject *__pyx_v_children_errors) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("validate_constraints", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, __pyx_v_constraints, __pyx_v_children_errors, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.validate_constraints", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":751 * return data * * cpdef inline set_child_error(object errors, object key, object error): # <<<<<<<<<<<<<< * if errors is None: * return {key: error} */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_7set_child_error(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_set_child_error(PyObject *__pyx_v_errors, PyObject *__pyx_v_key, PyObject *__pyx_v_error, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_child_error", 1); /* "apischema/deserialization/methods.pyx":752 * * cpdef inline set_child_error(object errors, object key, object error): * if errors is None: # <<<<<<<<<<<<<< * return {key: error} * else: */ __pyx_t_1 = (__pyx_v_errors == Py_None); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":753 * cpdef inline set_child_error(object errors, object key, object error): * if errors is None: * return {key: error} # <<<<<<<<<<<<<< * else: * errors[key] = error */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_v_key, __pyx_v_error) < 0) __PYX_ERR(0, 753, __pyx_L1_error) __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":752 * * cpdef inline set_child_error(object errors, object key, object error): * if errors is None: # <<<<<<<<<<<<<< * return {key: error} * else: */ } /* "apischema/deserialization/methods.pyx":755 * return {key: error} * else: * errors[key] = error # <<<<<<<<<<<<<< * return errors * */ /*else*/ { if (unlikely((PyObject_SetItem(__pyx_v_errors, __pyx_v_key, __pyx_v_error) < 0))) __PYX_ERR(0, 755, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":756 * else: * errors[key] = error * return errors # <<<<<<<<<<<<<< * * cpdef inline extend_errors(object errors, object messages): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_errors); __pyx_r = __pyx_v_errors; goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":751 * return data * * cpdef inline set_child_error(object errors, object key, object error): # <<<<<<<<<<<<<< * if errors is None: * return {key: error} */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.set_child_error", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_7set_child_error(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_7set_child_error = {"set_child_error", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_7set_child_error, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_7set_child_error(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_errors = 0; PyObject *__pyx_v_key = 0; PyObject *__pyx_v_error = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_child_error (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_errors,&__pyx_n_s_key,&__pyx_n_s_error,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_errors)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 751, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_key)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 751, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("set_child_error", 1, 3, 3, 1); __PYX_ERR(0, 751, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 751, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("set_child_error", 1, 3, 3, 2); __PYX_ERR(0, 751, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "set_child_error") < 0)) __PYX_ERR(0, 751, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_errors = values[0]; __pyx_v_key = values[1]; __pyx_v_error = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_child_error", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 751, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.set_child_error", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_6set_child_error(__pyx_self, __pyx_v_errors, __pyx_v_key, __pyx_v_error); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_6set_child_error(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_errors, PyObject *__pyx_v_key, PyObject *__pyx_v_error) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_child_error", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_errors, __pyx_v_key, __pyx_v_error, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.set_child_error", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":758 * return errors * * cpdef inline extend_errors(object errors, object messages): # <<<<<<<<<<<<<< * if errors is None: * return list(messages) */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9extend_errors(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_extend_errors(PyObject *__pyx_v_errors, PyObject *__pyx_v_messages, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("extend_errors", 1); /* "apischema/deserialization/methods.pyx":759 * * cpdef inline extend_errors(object errors, object messages): * if errors is None: # <<<<<<<<<<<<<< * return list(messages) * else: */ __pyx_t_1 = (__pyx_v_errors == Py_None); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":760 * cpdef inline extend_errors(object errors, object messages): * if errors is None: * return list(messages) # <<<<<<<<<<<<<< * else: * errors.extend(messages) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PySequence_List(__pyx_v_messages); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":759 * * cpdef inline extend_errors(object errors, object messages): * if errors is None: # <<<<<<<<<<<<<< * return list(messages) * else: */ } /* "apischema/deserialization/methods.pyx":762 * return list(messages) * else: * errors.extend(messages) # <<<<<<<<<<<<<< * return errors * */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_errors, __pyx_n_s_extend); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_messages}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":763 * else: * errors.extend(messages) * return errors # <<<<<<<<<<<<<< * * cpdef inline update_children_errors(object errors, dict children): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_errors); __pyx_r = __pyx_v_errors; goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":758 * return errors * * cpdef inline extend_errors(object errors, object messages): # <<<<<<<<<<<<<< * if errors is None: * return list(messages) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.extend_errors", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9extend_errors(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_9extend_errors = {"extend_errors", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9extend_errors, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_9extend_errors(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_errors = 0; PyObject *__pyx_v_messages = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("extend_errors (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_errors,&__pyx_n_s_messages,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_errors)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 758, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_messages)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 758, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("extend_errors", 1, 2, 2, 1); __PYX_ERR(0, 758, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extend_errors") < 0)) __PYX_ERR(0, 758, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_errors = values[0]; __pyx_v_messages = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("extend_errors", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 758, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.extend_errors", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_8extend_errors(__pyx_self, __pyx_v_errors, __pyx_v_messages); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_8extend_errors(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_errors, PyObject *__pyx_v_messages) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("extend_errors", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_extend_errors(__pyx_v_errors, __pyx_v_messages, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.extend_errors", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":765 * return errors * * cpdef inline update_children_errors(object errors, dict children): # <<<<<<<<<<<<<< * if errors is None: * return dict(children) */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11update_children_errors(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_update_children_errors(PyObject *__pyx_v_errors, PyObject *__pyx_v_children, CYTHON_UNUSED int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("update_children_errors", 1); /* "apischema/deserialization/methods.pyx":766 * * cpdef inline update_children_errors(object errors, dict children): * if errors is None: # <<<<<<<<<<<<<< * return dict(children) * else: */ __pyx_t_1 = (__pyx_v_errors == Py_None); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":767 * cpdef inline update_children_errors(object errors, dict children): * if errors is None: * return dict(children) # <<<<<<<<<<<<<< * else: * errors.update(children) */ __Pyx_XDECREF(__pyx_r); if (unlikely(__pyx_v_children == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' is not iterable"); __PYX_ERR(0, 767, __pyx_L1_error) } __pyx_t_2 = PyDict_Copy(__pyx_v_children); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":766 * * cpdef inline update_children_errors(object errors, dict children): * if errors is None: # <<<<<<<<<<<<<< * return dict(children) * else: */ } /* "apischema/deserialization/methods.pyx":769 * return dict(children) * else: * errors.update(children) # <<<<<<<<<<<<<< * return errors * */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_errors, __pyx_n_s_update); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_children}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":770 * else: * errors.update(children) * return errors # <<<<<<<<<<<<<< * * cdef inline MinimumConstraint_validate(MinimumConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_errors); __pyx_r = __pyx_v_errors; goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":765 * return errors * * cpdef inline update_children_errors(object errors, dict children): # <<<<<<<<<<<<<< * if errors is None: * return dict(children) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.update_children_errors", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11update_children_errors(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_11update_children_errors = {"update_children_errors", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11update_children_errors, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_11update_children_errors(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v_errors = 0; PyObject *__pyx_v_children = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[2] = {0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("update_children_errors (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_errors,&__pyx_n_s_children,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_errors)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 765, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_children)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 765, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("update_children_errors", 1, 2, 2, 1); __PYX_ERR(0, 765, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "update_children_errors") < 0)) __PYX_ERR(0, 765, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_errors = values[0]; __pyx_v_children = ((PyObject*)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("update_children_errors", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 765, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.update_children_errors", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_children), (&PyDict_Type), 1, "children", 1))) __PYX_ERR(0, 765, __pyx_L1_error) __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_10update_children_errors(__pyx_self, __pyx_v_errors, __pyx_v_children); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_10update_children_errors(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_errors, PyObject *__pyx_v_children) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("update_children_errors", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_update_children_errors(__pyx_v_errors, __pyx_v_children, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("apischema.deserialization.methods.update_children_errors", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":772 * return errors * * cdef inline MinimumConstraint_validate(MinimumConstraint self, object data): # <<<<<<<<<<<<<< * return data >= self.minimum * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MinimumConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":773 * * cdef inline MinimumConstraint_validate(MinimumConstraint self, object data): * return data >= self.minimum # <<<<<<<<<<<<<< * * cdef inline MaximumConstraint_validate(MaximumConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->minimum); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_v_data, __pyx_t_1, Py_GE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 773, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":772 * return errors * * cdef inline MinimumConstraint_validate(MinimumConstraint self, object data): # <<<<<<<<<<<<<< * return data >= self.minimum * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MinimumConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":775 * return data >= self.minimum * * cdef inline MaximumConstraint_validate(MaximumConstraint self, object data): # <<<<<<<<<<<<<< * return data <= self.maximum * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MaximumConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":776 * * cdef inline MaximumConstraint_validate(MaximumConstraint self, object data): * return data <= self.maximum # <<<<<<<<<<<<<< * * cdef inline ExclusiveMinimumConstraint_validate(ExclusiveMinimumConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->maximum); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_v_data, __pyx_t_1, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":775 * return data >= self.minimum * * cdef inline MaximumConstraint_validate(MaximumConstraint self, object data): # <<<<<<<<<<<<<< * return data <= self.maximum * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MaximumConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":778 * return data <= self.maximum * * cdef inline ExclusiveMinimumConstraint_validate(ExclusiveMinimumConstraint self, object data): # <<<<<<<<<<<<<< * return data > self.exc_min * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ExclusiveMinimumConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":779 * * cdef inline ExclusiveMinimumConstraint_validate(ExclusiveMinimumConstraint self, object data): * return data > self.exc_min # <<<<<<<<<<<<<< * * cdef inline ExclusiveMaximumConstraint_validate(ExclusiveMaximumConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->exc_min); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_v_data, __pyx_t_1, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":778 * return data <= self.maximum * * cdef inline ExclusiveMinimumConstraint_validate(ExclusiveMinimumConstraint self, object data): # <<<<<<<<<<<<<< * return data > self.exc_min * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMinimumConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":781 * return data > self.exc_min * * cdef inline ExclusiveMaximumConstraint_validate(ExclusiveMaximumConstraint self, object data): # <<<<<<<<<<<<<< * return data < self.exc_max * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ExclusiveMaximumConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":782 * * cdef inline ExclusiveMaximumConstraint_validate(ExclusiveMaximumConstraint self, object data): * return data < self.exc_max # <<<<<<<<<<<<<< * * cdef inline MultipleOfConstraint_validate(MultipleOfConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->exc_max); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_v_data, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 782, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":781 * return data > self.exc_min * * cdef inline ExclusiveMaximumConstraint_validate(ExclusiveMaximumConstraint self, object data): # <<<<<<<<<<<<<< * return data < self.exc_max * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.ExclusiveMaximumConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":784 * return data < self.exc_max * * cdef inline MultipleOfConstraint_validate(MultipleOfConstraint self, object data): # <<<<<<<<<<<<<< * return not (data % self.mult_of) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MultipleOfConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MultipleOfConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":785 * * cdef inline MultipleOfConstraint_validate(MultipleOfConstraint self, object data): * return not (data % self.mult_of) # <<<<<<<<<<<<<< * * cdef inline MinLengthConstraint_validate(MinLengthConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_self->mult_of); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Remainder(__pyx_v_data, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyBool_FromLong((!__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":784 * return data < self.exc_max * * cdef inline MultipleOfConstraint_validate(MultipleOfConstraint self, object data): # <<<<<<<<<<<<<< * return not (data % self.mult_of) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MultipleOfConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":787 * return not (data % self.mult_of) * * cdef inline MinLengthConstraint_validate(MinLengthConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) >= self.min_len * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MinLengthConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":788 * * cdef inline MinLengthConstraint_validate(MinLengthConstraint self, object data): * return len(data) >= self.min_len # <<<<<<<<<<<<<< * * cdef inline MaxLengthConstraint_validate(MaxLengthConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 788, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_1 >= __pyx_v_self->min_len)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":787 * return not (data % self.mult_of) * * cdef inline MinLengthConstraint_validate(MinLengthConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) >= self.min_len * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MinLengthConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":790 * return len(data) >= self.min_len * * cdef inline MaxLengthConstraint_validate(MaxLengthConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) <= self.max_len * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaxLengthConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MaxLengthConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":791 * * cdef inline MaxLengthConstraint_validate(MaxLengthConstraint self, object data): * return len(data) <= self.max_len # <<<<<<<<<<<<<< * * cdef inline PatternConstraint_validate(PatternConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 791, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_1 <= __pyx_v_self->max_len)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":790 * return len(data) >= self.min_len * * cdef inline MaxLengthConstraint_validate(MaxLengthConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) <= self.max_len * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MaxLengthConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":793 * return len(data) <= self.max_len * * cdef inline PatternConstraint_validate(PatternConstraint self, object data): # <<<<<<<<<<<<<< * return self.pattern.match(data) is not None * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_PatternConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PatternConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":794 * * cdef inline PatternConstraint_validate(PatternConstraint self, object data): * return self.pattern.match(data) is not None # <<<<<<<<<<<<<< * * cdef inline MinItemsConstraint_validate(MinItemsConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->pattern, __pyx_n_s_match); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_data}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = (__pyx_t_1 != Py_None); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":793 * return len(data) <= self.max_len * * cdef inline PatternConstraint_validate(PatternConstraint self, object data): # <<<<<<<<<<<<<< * return self.pattern.match(data) is not None * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.PatternConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":796 * return self.pattern.match(data) is not None * * cdef inline MinItemsConstraint_validate(MinItemsConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) >= self.min_items * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MinItemsConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":797 * * cdef inline MinItemsConstraint_validate(MinItemsConstraint self, object data): * return len(data) >= self.min_items # <<<<<<<<<<<<<< * * cdef inline MaxItemsConstraint_validate(MaxItemsConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 797, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_1 >= __pyx_v_self->min_items)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":796 * return self.pattern.match(data) is not None * * cdef inline MinItemsConstraint_validate(MinItemsConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) >= self.min_items * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MinItemsConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":799 * return len(data) >= self.min_items * * cdef inline MaxItemsConstraint_validate(MaxItemsConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) <= self.max_items * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaxItemsConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MaxItemsConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":800 * * cdef inline MaxItemsConstraint_validate(MaxItemsConstraint self, object data): * return len(data) <= self.max_items # <<<<<<<<<<<<<< * * cdef inline UniqueItemsConstraint_validate(UniqueItemsConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 800, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_1 <= __pyx_v_self->max_items)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":799 * return len(data) >= self.min_items * * cdef inline MaxItemsConstraint_validate(MaxItemsConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) <= self.max_items * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MaxItemsConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":802 * return len(data) <= self.max_items * * cdef inline UniqueItemsConstraint_validate(UniqueItemsConstraint self, object data): # <<<<<<<<<<<<<< * return len(set(map(to_hashable, data))) == len(data) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_UniqueItemsConstraint_validate(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("UniqueItemsConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":803 * * cdef inline UniqueItemsConstraint_validate(UniqueItemsConstraint self, object data): * return len(set(map(to_hashable, data))) == len(data) # <<<<<<<<<<<<<< * * cdef inline MinPropertiesConstraint_validate(MinPropertiesConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_to_hashable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_data)) __PYX_ERR(0, 803, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PySet_New(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PySet_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 803, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_3 == __pyx_t_4)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":802 * return len(data) <= self.max_items * * cdef inline UniqueItemsConstraint_validate(UniqueItemsConstraint self, object data): # <<<<<<<<<<<<<< * return len(set(map(to_hashable, data))) == len(data) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.UniqueItemsConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":805 * return len(set(map(to_hashable, data))) == len(data) * * cdef inline MinPropertiesConstraint_validate(MinPropertiesConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) >= self.min_properties * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MinPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MinPropertiesConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":806 * * cdef inline MinPropertiesConstraint_validate(MinPropertiesConstraint self, object data): * return len(data) >= self.min_properties # <<<<<<<<<<<<<< * * cdef inline MaxPropertiesConstraint_validate(MaxPropertiesConstraint self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 806, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_1 >= __pyx_v_self->min_properties)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":805 * return len(set(map(to_hashable, data))) == len(data) * * cdef inline MinPropertiesConstraint_validate(MinPropertiesConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) >= self.min_properties * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MinPropertiesConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":808 * return len(data) >= self.min_properties * * cdef inline MaxPropertiesConstraint_validate(MaxPropertiesConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) <= self.max_properties * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MaxPropertiesConstraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MaxPropertiesConstraint_validate", 1); /* "apischema/deserialization/methods.pyx":809 * * cdef inline MaxPropertiesConstraint_validate(MaxPropertiesConstraint self, object data): * return len(data) <= self.max_properties # <<<<<<<<<<<<<< * * cdef inline RecMethod_deserialize(RecMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 809, __pyx_L1_error) __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_t_1 <= __pyx_v_self->max_properties)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":808 * return len(data) >= self.min_properties * * cdef inline MaxPropertiesConstraint_validate(MaxPropertiesConstraint self, object data): # <<<<<<<<<<<<<< * return len(data) <= self.max_properties * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.MaxPropertiesConstraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":811 * return len(data) <= self.max_properties * * cdef inline RecMethod_deserialize(RecMethod self, object data): # <<<<<<<<<<<<<< * if self.method is None: * self.method = self.lazy() */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_RecMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("RecMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":812 * * cdef inline RecMethod_deserialize(RecMethod self, object data): * if self.method is None: # <<<<<<<<<<<<<< * self.method = self.lazy() * return DeserializationMethod_deserialize(self.method, data) */ __pyx_t_1 = (__pyx_v_self->method == Py_None); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":813 * cdef inline RecMethod_deserialize(RecMethod self, object data): * if self.method is None: * self.method = self.lazy() # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.method, data) * */ __Pyx_INCREF(__pyx_v_self->lazy); __pyx_t_3 = __pyx_v_self->lazy; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_self->method); __Pyx_DECREF(__pyx_v_self->method); __pyx_v_self->method = __pyx_t_2; __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":812 * * cdef inline RecMethod_deserialize(RecMethod self, object data): * if self.method is None: # <<<<<<<<<<<<<< * self.method = self.lazy() * return DeserializationMethod_deserialize(self.method, data) */ } /* "apischema/deserialization/methods.pyx":814 * if self.method is None: * self.method = self.lazy() * return DeserializationMethod_deserialize(self.method, data) # <<<<<<<<<<<<<< * * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): */ __Pyx_XDECREF(__pyx_r); if (!(likely(((__pyx_v_self->method) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self->method, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 814, __pyx_L1_error) __pyx_t_2 = __pyx_v_self->method; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_2), __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":811 * return len(data) <= self.max_properties * * cdef inline RecMethod_deserialize(RecMethod self, object data): # <<<<<<<<<<<<<< * if self.method is None: * self.method = self.lazy() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.RecMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":816 * return DeserializationMethod_deserialize(self.method, data) * * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): # <<<<<<<<<<<<<< * return validate( * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ValidatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ValidatorMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":817 * * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): * return validate( # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser * ) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_validate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "apischema/deserialization/methods.pyx":818 * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): * return validate( * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser # <<<<<<<<<<<<<< * ) * */ __pyx_t_2 = ((PyObject *)__pyx_v_self->method); __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_2), __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":817 * * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): * return validate( # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser * ) */ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3)) __PYX_ERR(0, 817, __pyx_L1_error); __Pyx_INCREF(__pyx_v_self->validators); __Pyx_GIVEREF(__pyx_v_self->validators); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->validators)) __PYX_ERR(0, 817, __pyx_L1_error); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":818 * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): * return validate( * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser # <<<<<<<<<<<<<< * ) * */ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_aliaser, __pyx_v_self->aliaser) < 0) __PYX_ERR(0, 818, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":817 * * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): * return validate( # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser * ) */ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":816 * return DeserializationMethod_deserialize(self.method, data) * * cdef inline ValidatorMethod_deserialize(ValidatorMethod self, object data): # <<<<<<<<<<<<<< * return validate( * DeserializationMethod_deserialize(self.method, data), self.validators, aliaser=self.aliaser */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ValidatorMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":821 * ) * * cdef inline CoercerMethod_deserialize(CoercerMethod self, object data): # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.method, self.coercer(self.cls, data)) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_CoercerMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("CoercerMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":822 * * cdef inline CoercerMethod_deserialize(CoercerMethod self, object data): * return DeserializationMethod_deserialize(self.method, self.coercer(self.cls, data)) # <<<<<<<<<<<<<< * * cdef inline TypeCheckMethod_deserialize(TypeCheckMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_v_self->method); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_self->coercer); __pyx_t_3 = __pyx_v_self->coercer; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_v_self->cls), __pyx_v_data}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":821 * ) * * cdef inline CoercerMethod_deserialize(CoercerMethod self, object data): # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.method, self.coercer(self.cls, data)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.CoercerMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":824 * return DeserializationMethod_deserialize(self.method, self.coercer(self.cls, data)) * * cdef inline TypeCheckMethod_deserialize(TypeCheckMethod self, object data): # <<<<<<<<<<<<<< * if isinstance(data, self.expected): * return data */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_TypeCheckMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("TypeCheckMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":825 * * cdef inline TypeCheckMethod_deserialize(TypeCheckMethod self, object data): * if isinstance(data, self.expected): # <<<<<<<<<<<<<< * return data * return DeserializationMethod_deserialize(self.fallback, data) */ __pyx_t_1 = __pyx_v_self->expected; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = PyObject_IsInstance(__pyx_v_data, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":826 * cdef inline TypeCheckMethod_deserialize(TypeCheckMethod self, object data): * if isinstance(data, self.expected): * return data # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.fallback, data) * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":825 * * cdef inline TypeCheckMethod_deserialize(TypeCheckMethod self, object data): * if isinstance(data, self.expected): # <<<<<<<<<<<<<< * return data * return DeserializationMethod_deserialize(self.fallback, data) */ } /* "apischema/deserialization/methods.pyx":827 * if isinstance(data, self.expected): * return data * return DeserializationMethod_deserialize(self.fallback, data) # <<<<<<<<<<<<<< * * cdef inline AnyMethod_deserialize(AnyMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_v_self->fallback); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1), __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":824 * return DeserializationMethod_deserialize(self.method, self.coercer(self.cls, data)) * * cdef inline TypeCheckMethod_deserialize(TypeCheckMethod self, object data): # <<<<<<<<<<<<<< * if isinstance(data, self.expected): * return data */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.TypeCheckMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":829 * return DeserializationMethod_deserialize(self.fallback, data) * * cdef inline AnyMethod_deserialize(AnyMethod self, object data): # <<<<<<<<<<<<<< * if type(data) in self.constraints: * validate_constraints(data, self.constraints[type(data)], None) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_AnyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("AnyMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":830 * * cdef inline AnyMethod_deserialize(AnyMethod self, object data): * if type(data) in self.constraints: # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints[type(data)], None) * return data */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__pyx_v_self->constraints == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 830, __pyx_L1_error) } __pyx_t_2 = (__Pyx_PyDict_ContainsTF(__pyx_t_1, __pyx_v_self->constraints, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":831 * cdef inline AnyMethod_deserialize(AnyMethod self, object data): * if type(data) in self.constraints: * validate_constraints(data, self.constraints[type(data)], None) # <<<<<<<<<<<<<< * return data * */ if (unlikely(__pyx_v_self->constraints == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 831, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_self->constraints, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_3))) __PYX_ERR(0, 831, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), Py_None, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":830 * * cdef inline AnyMethod_deserialize(AnyMethod self, object data): * if type(data) in self.constraints: # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints[type(data)], None) * return data */ } /* "apischema/deserialization/methods.pyx":832 * if type(data) in self.constraints: * validate_constraints(data, self.constraints[type(data)], None) * return data # <<<<<<<<<<<<<< * * cdef inline ListCheckOnlyMethod_deserialize(ListCheckOnlyMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":829 * return DeserializationMethod_deserialize(self.fallback, data) * * cdef inline AnyMethod_deserialize(AnyMethod self, object data): # <<<<<<<<<<<<<< * if type(data) in self.constraints: * validate_constraints(data, self.constraints[type(data)], None) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.AnyMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":834 * return data * * cdef inline ListCheckOnlyMethod_deserialize(ListCheckOnlyMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ListCheckOnlyMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_elt_errors = 0; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_elt = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; PyObject *(*__pyx_t_8)(PyObject *); PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; int __pyx_t_15; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ListCheckOnlyMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":835 * * cdef inline ListCheckOnlyMethod_deserialize(ListCheckOnlyMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * elt_errors:object= None */ __pyx_t_1 = PyList_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":836 * cdef inline ListCheckOnlyMethod_deserialize(ListCheckOnlyMethod self, object data): * if not isinstance(data, list): * raise bad_type(data, list) # <<<<<<<<<<<<<< * elt_errors:object= None * for i, elt in enumerate(data): */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyList_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 836, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":835 * * cdef inline ListCheckOnlyMethod_deserialize(ListCheckOnlyMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * elt_errors:object= None */ } /* "apischema/deserialization/methods.pyx":837 * if not isinstance(data, list): * raise bad_type(data, list) * elt_errors:object= None # <<<<<<<<<<<<<< * for i, elt in enumerate(data): * try: */ __Pyx_INCREF(Py_None); __pyx_v_elt_errors = Py_None; /* "apischema/deserialization/methods.pyx":838 * raise bad_type(data, list) * elt_errors:object= None * for i, elt in enumerate(data): # <<<<<<<<<<<<<< * try: * DeserializationMethod_deserialize(self.value_method, elt) */ __Pyx_INCREF(__pyx_int_0); __pyx_t_3 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_data)) || PyTuple_CheckExact(__pyx_v_data)) { __pyx_t_4 = __pyx_v_data; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_data); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 838, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_8)) { if (likely(PyList_CheckExact(__pyx_t_4))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 838, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 838, __pyx_L1_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 838, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 838, __pyx_L1_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_8(__pyx_t_4); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 838, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_5); } __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_5); __pyx_t_5 = 0; __Pyx_INCREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_5 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_5; __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":839 * elt_errors:object= None * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { /* "apischema/deserialization/methods.pyx":840 * for i, elt in enumerate(data): * try: * DeserializationMethod_deserialize(self.value_method, elt) # <<<<<<<<<<<<<< * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) */ __pyx_t_5 = ((PyObject *)__pyx_v_self->value_method); __Pyx_INCREF(__pyx_t_5); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_elt); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 840, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":839 * elt_errors:object= None * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":841 * try: * DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: # <<<<<<<<<<<<<< * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_5, &__pyx_t_13); __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 841, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_14); __pyx_t_15 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_12, __pyx_t_14); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_ErrRestore(__pyx_t_12, __pyx_t_5, __pyx_t_13); __pyx_t_12 = 0; __pyx_t_5 = 0; __pyx_t_13 = 0; if (__pyx_t_15) { __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_13, &__pyx_t_5, &__pyx_t_12) < 0) __PYX_ERR(0, 841, __pyx_L8_except_error) __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_5); __pyx_v_err = __pyx_t_5; /*try:*/ { /* "apischema/deserialization/methods.pyx":842 * DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, elt_errors) * return data */ __pyx_t_14 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_elt_errors, __pyx_v_i, __pyx_v_err, 0); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 842, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF_SET(__pyx_v_elt_errors, __pyx_t_14); __pyx_t_14 = 0; } /* "apischema/deserialization/methods.pyx":841 * try: * DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: # <<<<<<<<<<<<<< * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L20; } __pyx_L19_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_15 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L8_except_error; } __pyx_L20:; } __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; goto __pyx_L7_exception_handled; } goto __pyx_L8_except_error; /* "apischema/deserialization/methods.pyx":839 * elt_errors:object= None * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: */ __pyx_L8_except_error:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); goto __pyx_L1_error; __pyx_L7_exception_handled:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); __pyx_L13_try_end:; } /* "apischema/deserialization/methods.pyx":838 * raise bad_type(data, list) * elt_errors:object= None * for i, elt in enumerate(data): # <<<<<<<<<<<<<< * try: * DeserializationMethod_deserialize(self.value_method, elt) */ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":843 * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) # <<<<<<<<<<<<<< * return data * */ __pyx_t_3 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), __pyx_v_elt_errors, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":844 * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) * return data # <<<<<<<<<<<<<< * * cdef inline ListMethod_deserialize(ListMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":834 * return data * * cdef inline ListCheckOnlyMethod_deserialize(ListCheckOnlyMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_14); __Pyx_AddTraceback("apischema.deserialization.methods.ListCheckOnlyMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_elt_errors); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_elt); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":846 * return data * * cdef inline ListMethod_deserialize(ListMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ListMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_elt_errors = 0; PyObject *__pyx_v_values = 0; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_elt = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; PyObject *(*__pyx_t_8)(PyObject *); PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; int __pyx_t_15; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ListMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":847 * * cdef inline ListMethod_deserialize(ListMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * elt_errors:object= None */ __pyx_t_1 = PyList_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":848 * cdef inline ListMethod_deserialize(ListMethod self, object data): * if not isinstance(data, list): * raise bad_type(data, list) # <<<<<<<<<<<<<< * elt_errors:object= None * values:list= [None] * len(data) */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyList_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 848, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":847 * * cdef inline ListMethod_deserialize(ListMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * elt_errors:object= None */ } /* "apischema/deserialization/methods.pyx":849 * if not isinstance(data, list): * raise bad_type(data, list) * elt_errors:object= None # <<<<<<<<<<<<<< * values:list= [None] * len(data) * for i, elt in enumerate(data): */ __Pyx_INCREF(Py_None); __pyx_v_elt_errors = Py_None; /* "apischema/deserialization/methods.pyx":850 * raise bad_type(data, list) * elt_errors:object= None * values:list= [None] * len(data) # <<<<<<<<<<<<<< * for i, elt in enumerate(data): * try: */ __pyx_t_7 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 850, __pyx_L1_error) __pyx_t_3 = PyList_New(1 * ((__pyx_t_7<0) ? 0:__pyx_t_7)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < __pyx_t_7; __pyx_temp++) { __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, __pyx_temp, Py_None)) __PYX_ERR(0, 850, __pyx_L1_error); } } __pyx_v_values = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":851 * elt_errors:object= None * values:list= [None] * len(data) * for i, elt in enumerate(data): # <<<<<<<<<<<<<< * try: * values[i] = DeserializationMethod_deserialize(self.value_method, elt) */ __Pyx_INCREF(__pyx_int_0); __pyx_t_3 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_data)) || PyTuple_CheckExact(__pyx_v_data)) { __pyx_t_4 = __pyx_v_data; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_data); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 851, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_8)) { if (likely(PyList_CheckExact(__pyx_t_4))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 851, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 851, __pyx_L1_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 851, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 851, __pyx_L1_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_8(__pyx_t_4); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 851, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_5); } __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_5); __pyx_t_5 = 0; __Pyx_INCREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_5 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_5; __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":852 * values:list= [None] * len(data) * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * values[i] = DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { /* "apischema/deserialization/methods.pyx":853 * for i, elt in enumerate(data): * try: * values[i] = DeserializationMethod_deserialize(self.value_method, elt) # <<<<<<<<<<<<<< * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) */ __pyx_t_5 = ((PyObject *)__pyx_v_self->value_method); __Pyx_INCREF(__pyx_t_5); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_elt); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 853, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely((PyObject_SetItem(__pyx_v_values, __pyx_v_i, __pyx_t_12) < 0))) __PYX_ERR(0, 853, __pyx_L6_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":852 * values:list= [None] * len(data) * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * values[i] = DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":854 * try: * values[i] = DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: # <<<<<<<<<<<<<< * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_5, &__pyx_t_13); __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 854, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_14); __pyx_t_15 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_12, __pyx_t_14); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_ErrRestore(__pyx_t_12, __pyx_t_5, __pyx_t_13); __pyx_t_12 = 0; __pyx_t_5 = 0; __pyx_t_13 = 0; if (__pyx_t_15) { __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_13, &__pyx_t_5, &__pyx_t_12) < 0) __PYX_ERR(0, 854, __pyx_L8_except_error) __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_5); __pyx_v_err = __pyx_t_5; /*try:*/ { /* "apischema/deserialization/methods.pyx":855 * values[i] = DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, elt_errors) * return values */ __pyx_t_14 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_elt_errors, __pyx_v_i, __pyx_v_err, 0); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 855, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF_SET(__pyx_v_elt_errors, __pyx_t_14); __pyx_t_14 = 0; } /* "apischema/deserialization/methods.pyx":854 * try: * values[i] = DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: # <<<<<<<<<<<<<< * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L20; } __pyx_L19_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_15 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L8_except_error; } __pyx_L20:; } __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; goto __pyx_L7_exception_handled; } goto __pyx_L8_except_error; /* "apischema/deserialization/methods.pyx":852 * values:list= [None] * len(data) * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * values[i] = DeserializationMethod_deserialize(self.value_method, elt) * except ValidationError as err: */ __pyx_L8_except_error:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); goto __pyx_L1_error; __pyx_L7_exception_handled:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); __pyx_L13_try_end:; } /* "apischema/deserialization/methods.pyx":851 * elt_errors:object= None * values:list= [None] * len(data) * for i, elt in enumerate(data): # <<<<<<<<<<<<<< * try: * values[i] = DeserializationMethod_deserialize(self.value_method, elt) */ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":856 * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) # <<<<<<<<<<<<<< * return values * */ __pyx_t_3 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), __pyx_v_elt_errors, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":857 * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) * return values # <<<<<<<<<<<<<< * * cdef inline SetMethod_deserialize(SetMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_values); __pyx_r = __pyx_v_values; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":846 * return data * * cdef inline ListMethod_deserialize(ListMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_14); __Pyx_AddTraceback("apischema.deserialization.methods.ListMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_elt_errors); __Pyx_XDECREF(__pyx_v_values); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_elt); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":859 * return values * * cdef inline SetMethod_deserialize(SetMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_SetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_elt_errors = 0; PyObject *__pyx_v_values = 0; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_elt = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; PyObject *(*__pyx_t_8)(PyObject *); PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; int __pyx_t_13; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; int __pyx_t_17; char const *__pyx_t_18; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; PyObject *__pyx_t_24 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("SetMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":860 * * cdef inline SetMethod_deserialize(SetMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * elt_errors:dict= {} */ __pyx_t_1 = PyList_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":861 * cdef inline SetMethod_deserialize(SetMethod self, object data): * if not isinstance(data, list): * raise bad_type(data, list) # <<<<<<<<<<<<<< * elt_errors:dict= {} * values:set= set() */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyList_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 861, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":860 * * cdef inline SetMethod_deserialize(SetMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * elt_errors:dict= {} */ } /* "apischema/deserialization/methods.pyx":862 * if not isinstance(data, list): * raise bad_type(data, list) * elt_errors:dict= {} # <<<<<<<<<<<<<< * values:set= set() * for i, elt in enumerate(data): */ __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_elt_errors = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":863 * raise bad_type(data, list) * elt_errors:dict= {} * values:set= set() # <<<<<<<<<<<<<< * for i, elt in enumerate(data): * try: */ __pyx_t_3 = PySet_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_values = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":864 * elt_errors:dict= {} * values:set= set() * for i, elt in enumerate(data): # <<<<<<<<<<<<<< * try: * values.add(DeserializationMethod_deserialize(self.value_method, elt)) */ __Pyx_INCREF(__pyx_int_0); __pyx_t_3 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_data)) || PyTuple_CheckExact(__pyx_v_data)) { __pyx_t_4 = __pyx_v_data; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_data); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 864, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_8)) { if (likely(PyList_CheckExact(__pyx_t_4))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 864, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 864, __pyx_L1_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 864, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 864, __pyx_L1_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_8(__pyx_t_4); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 864, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_5); } __Pyx_XDECREF_SET(__pyx_v_elt, __pyx_t_5); __pyx_t_5 = 0; __Pyx_INCREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_5 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_5; __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":865 * values:set= set() * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * values.add(DeserializationMethod_deserialize(self.value_method, elt)) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { /* "apischema/deserialization/methods.pyx":866 * for i, elt in enumerate(data): * try: * values.add(DeserializationMethod_deserialize(self.value_method, elt)) # <<<<<<<<<<<<<< * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) */ __pyx_t_5 = ((PyObject *)__pyx_v_self->value_method); __Pyx_INCREF(__pyx_t_5); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_elt); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 866, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_13 = PySet_Add(__pyx_v_values, __pyx_t_12); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 866, __pyx_L6_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":865 * values:set= set() * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * values.add(DeserializationMethod_deserialize(self.value_method, elt)) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":867 * try: * values.add(DeserializationMethod_deserialize(self.value_method, elt)) * except ValidationError as err: # <<<<<<<<<<<<<< * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_5, &__pyx_t_14); __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 867, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_16 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_12, __pyx_t_15); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_ErrRestore(__pyx_t_12, __pyx_t_5, __pyx_t_14); __pyx_t_12 = 0; __pyx_t_5 = 0; __pyx_t_14 = 0; if (__pyx_t_16) { __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_14, &__pyx_t_5, &__pyx_t_12) < 0) __PYX_ERR(0, 867, __pyx_L8_except_error) __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_5); __pyx_v_err = __pyx_t_5; /*try:*/ { /* "apischema/deserialization/methods.pyx":868 * values.add(DeserializationMethod_deserialize(self.value_method, elt)) * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, elt_errors) * return values */ __pyx_t_15 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_elt_errors, __pyx_v_i, __pyx_v_err, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 868, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); if (!(likely(PyDict_CheckExact(__pyx_t_15))||((__pyx_t_15) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_15))) __PYX_ERR(0, 868, __pyx_L19_error) __Pyx_DECREF_SET(__pyx_v_elt_errors, ((PyObject*)__pyx_t_15)); __pyx_t_15 = 0; } /* "apischema/deserialization/methods.pyx":867 * try: * values.add(DeserializationMethod_deserialize(self.value_method, elt)) * except ValidationError as err: # <<<<<<<<<<<<<< * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L20; } __pyx_L19_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __Pyx_XGOTREF(__pyx_t_24); __pyx_t_16 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_XGIVEREF(__pyx_t_24); __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24); } __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21); __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_lineno = __pyx_t_16; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18; goto __pyx_L8_except_error; } __pyx_L20:; } __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; goto __pyx_L7_exception_handled; } goto __pyx_L8_except_error; /* "apischema/deserialization/methods.pyx":865 * values:set= set() * for i, elt in enumerate(data): * try: # <<<<<<<<<<<<<< * values.add(DeserializationMethod_deserialize(self.value_method, elt)) * except ValidationError as err: */ __pyx_L8_except_error:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); goto __pyx_L1_error; __pyx_L7_exception_handled:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); __pyx_L13_try_end:; } /* "apischema/deserialization/methods.pyx":864 * elt_errors:dict= {} * values:set= set() * for i, elt in enumerate(data): # <<<<<<<<<<<<<< * try: * values.add(DeserializationMethod_deserialize(self.value_method, elt)) */ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":869 * except ValidationError as err: * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) # <<<<<<<<<<<<<< * return values * */ __pyx_t_3 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), __pyx_v_elt_errors, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":870 * elt_errors = set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) * return values # <<<<<<<<<<<<<< * * cdef inline FrozenSetMethod_deserialize(FrozenSetMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_values); __pyx_r = __pyx_v_values; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":859 * return values * * cdef inline SetMethod_deserialize(SetMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_14); __Pyx_XDECREF(__pyx_t_15); __Pyx_AddTraceback("apischema.deserialization.methods.SetMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_elt_errors); __Pyx_XDECREF(__pyx_v_values); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_elt); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":872 * return values * * cdef inline FrozenSetMethod_deserialize(FrozenSetMethod self, object data): # <<<<<<<<<<<<<< * return frozenset(DeserializationMethod_deserialize(self.method, data)) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_FrozenSetMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("FrozenSetMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":873 * * cdef inline FrozenSetMethod_deserialize(FrozenSetMethod self, object data): * return frozenset(DeserializationMethod_deserialize(self.method, data)) # <<<<<<<<<<<<<< * * cdef inline VariadicTupleMethod_deserialize(VariadicTupleMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_v_self->method); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyFrozenSet_New(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":872 * return values * * cdef inline FrozenSetMethod_deserialize(FrozenSetMethod self, object data): # <<<<<<<<<<<<<< * return frozenset(DeserializationMethod_deserialize(self.method, data)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.FrozenSetMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":875 * return frozenset(DeserializationMethod_deserialize(self.method, data)) * * cdef inline VariadicTupleMethod_deserialize(VariadicTupleMethod self, object data): # <<<<<<<<<<<<<< * return tuple(DeserializationMethod_deserialize(self.method, data)) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_VariadicTupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("VariadicTupleMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":876 * * cdef inline VariadicTupleMethod_deserialize(VariadicTupleMethod self, object data): * return tuple(DeserializationMethod_deserialize(self.method, data)) # <<<<<<<<<<<<<< * * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_v_self->method); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PySequence_Tuple(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":875 * return frozenset(DeserializationMethod_deserialize(self.method, data)) * * cdef inline VariadicTupleMethod_deserialize(VariadicTupleMethod self, object data): # <<<<<<<<<<<<<< * return tuple(DeserializationMethod_deserialize(self.method, data)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.VariadicTupleMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":878 * return tuple(DeserializationMethod_deserialize(self.method, data)) * * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): # <<<<<<<<<<<<<< * try: * return self.value_map[data] */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_LiteralMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v_self, PyObject *__pyx_v_data) { Py_ssize_t __pyx_v___i; PyTypeObject *__pyx_v_cls = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; Py_ssize_t __pyx_t_10; Py_ssize_t __pyx_t_11; Py_ssize_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; unsigned int __pyx_t_18; PyObject *__pyx_t_19 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("LiteralMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":879 * * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): * try: # <<<<<<<<<<<<<< * return self.value_map[data] * except KeyError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "apischema/deserialization/methods.pyx":880 * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): * try: * return self.value_map[data] # <<<<<<<<<<<<<< * except KeyError: * if self.coercer is not None: */ __Pyx_XDECREF(__pyx_r); if (unlikely(__pyx_v_self->value_map == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 880, __pyx_L3_error) } __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_self->value_map, __pyx_v_data); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 880, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L7_try_return; /* "apischema/deserialization/methods.pyx":879 * * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): * try: # <<<<<<<<<<<<<< * return self.value_map[data] * except KeyError: */ } __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":881 * try: * return self.value_map[data] * except KeyError: # <<<<<<<<<<<<<< * if self.coercer is not None: * for __i in range(len(self.types)): */ __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_5) { __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 881, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); /* "apischema/deserialization/methods.pyx":882 * return self.value_map[data] * except KeyError: * if self.coercer is not None: # <<<<<<<<<<<<<< * for __i in range(len(self.types)): * cls: type = self.types[__i] */ __pyx_t_8 = (__pyx_v_self->coercer != Py_None); if (__pyx_t_8) { /* "apischema/deserialization/methods.pyx":883 * except KeyError: * if self.coercer is not None: * for __i in range(len(self.types)): # <<<<<<<<<<<<<< * cls: type = self.types[__i] * try: */ __pyx_t_9 = __pyx_v_self->types; __Pyx_INCREF(__pyx_t_9); if (unlikely(__pyx_t_9 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 883, __pyx_L5_except_error) } __pyx_t_10 = __Pyx_PyTuple_GET_SIZE(__pyx_t_9); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(0, 883, __pyx_L5_except_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v___i = __pyx_t_12; /* "apischema/deserialization/methods.pyx":884 * if self.coercer is not None: * for __i in range(len(self.types)): * cls: type = self.types[__i] # <<<<<<<<<<<<<< * try: * return self.value_map[self.coercer(cls, data)] */ if (unlikely(__pyx_v_self->types == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 884, __pyx_L5_except_error) } __pyx_t_9 = __Pyx_GetItemInt_Tuple(__pyx_v_self->types, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 884, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_9); if (!(likely(((__pyx_t_9) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_9, __pyx_ptype_7cpython_4type_type))))) __PYX_ERR(0, 884, __pyx_L5_except_error) __Pyx_XDECREF_SET(__pyx_v_cls, ((PyTypeObject *)__pyx_t_9)); __pyx_t_9 = 0; /* "apischema/deserialization/methods.pyx":885 * for __i in range(len(self.types)): * cls: type = self.types[__i] * try: # <<<<<<<<<<<<<< * return self.value_map[self.coercer(cls, data)] * except IndexError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { /* "apischema/deserialization/methods.pyx":886 * cls: type = self.types[__i] * try: * return self.value_map[self.coercer(cls, data)] # <<<<<<<<<<<<<< * except IndexError: * pass */ __Pyx_XDECREF(__pyx_r); if (unlikely(__pyx_v_self->value_map == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 886, __pyx_L14_error) } __Pyx_INCREF(__pyx_v_self->coercer); __pyx_t_16 = __pyx_v_self->coercer; __pyx_t_17 = NULL; __pyx_t_18 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_16))) { __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_16); if (likely(__pyx_t_17)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_16); __Pyx_INCREF(__pyx_t_17); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_16, function); __pyx_t_18 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_17, ((PyObject *)__pyx_v_cls), __pyx_v_data}; __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_16, __pyx_callargs+1-__pyx_t_18, 2+__pyx_t_18); __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 886, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; } __pyx_t_16 = __Pyx_PyDict_GetItem(__pyx_v_self->value_map, __pyx_t_9); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 886, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_16; __pyx_t_16 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L18_try_return; /* "apischema/deserialization/methods.pyx":885 * for __i in range(len(self.types)): * cls: type = self.types[__i] * try: # <<<<<<<<<<<<<< * return self.value_map[self.coercer(cls, data)] * except IndexError: */ } __pyx_L14_error:; __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; /* "apischema/deserialization/methods.pyx":887 * try: * return self.value_map[self.coercer(cls, data)] * except IndexError: # <<<<<<<<<<<<<< * pass * raise ValidationError(format_error(self.error, data)) */ __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_IndexError); if (__pyx_t_5) { __Pyx_ErrRestore(0,0,0); goto __pyx_L15_exception_handled; } goto __pyx_L16_except_error; /* "apischema/deserialization/methods.pyx":885 * for __i in range(len(self.types)): * cls: type = self.types[__i] * try: # <<<<<<<<<<<<<< * return self.value_map[self.coercer(cls, data)] * except IndexError: */ __pyx_L16_except_error:; __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15); goto __pyx_L5_except_error; __pyx_L18_try_return:; __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15); goto __pyx_L6_except_return; __pyx_L15_exception_handled:; __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15); } } /* "apischema/deserialization/methods.pyx":882 * return self.value_map[data] * except KeyError: * if self.coercer is not None: # <<<<<<<<<<<<<< * for __i in range(len(self.types)): * cls: type = self.types[__i] */ } /* "apischema/deserialization/methods.pyx":889 * except IndexError: * pass * raise ValidationError(format_error(self.error, data)) # <<<<<<<<<<<<<< * except TypeError: * raise bad_type(data, *self.types) */ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 889, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_17 = __pyx_v_self->error; __Pyx_INCREF(__pyx_t_17); __pyx_t_19 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_t_17, __pyx_v_data, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 889, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_19); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __pyx_t_17 = NULL; __pyx_t_18 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_17)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_17); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_18 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_17, __pyx_t_19}; __pyx_t_16 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_18, 1+__pyx_t_18); __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 889, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_Raise(__pyx_t_16, 0, 0, 0); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __PYX_ERR(0, 889, __pyx_L5_except_error) } /* "apischema/deserialization/methods.pyx":890 * pass * raise ValidationError(format_error(self.error, data)) * except TypeError: # <<<<<<<<<<<<<< * raise bad_type(data, *self.types) * */ __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError); if (__pyx_t_5) { __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_4) < 0) __PYX_ERR(0, 890, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_4); /* "apischema/deserialization/methods.pyx":891 * raise ValidationError(format_error(self.error, data)) * except TypeError: * raise bad_type(data, *self.types) # <<<<<<<<<<<<<< * * cdef inline MappingCheckOnly_deserialize(MappingCheckOnly self, object data): */ __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 891, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_16); __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 891, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_data)) __PYX_ERR(0, 891, __pyx_L5_except_error); if (unlikely(__pyx_v_self->types == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 891, __pyx_L5_except_error) } __pyx_t_19 = PyNumber_Add(__pyx_t_9, __pyx_v_self->types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 891, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_19); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_16, __pyx_t_19, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 891, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __PYX_ERR(0, 891, __pyx_L5_except_error) } goto __pyx_L5_except_error; /* "apischema/deserialization/methods.pyx":879 * * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): * try: # <<<<<<<<<<<<<< * return self.value_map[data] * except KeyError: */ __pyx_L5_except_error:; __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L6_except_return:; __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":878 * return tuple(DeserializationMethod_deserialize(self.method, data)) * * cdef inline LiteralMethod_deserialize(LiteralMethod self, object data): # <<<<<<<<<<<<<< * try: * return self.value_map[data] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_16); __Pyx_XDECREF(__pyx_t_17); __Pyx_XDECREF(__pyx_t_19); __Pyx_AddTraceback("apischema.deserialization.methods.LiteralMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_cls); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":893 * raise bad_type(data, *self.types) * * cdef inline MappingCheckOnly_deserialize(MappingCheckOnly self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MappingCheckOnly_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_item_errors = 0; PyObject *__pyx_v_key = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_t_9; int __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MappingCheckOnly_deserialize", 1); /* "apischema/deserialization/methods.pyx":894 * * cdef inline MappingCheckOnly_deserialize(MappingCheckOnly self, object data): * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * item_errors:object= None */ __pyx_t_1 = PyDict_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":895 * cdef inline MappingCheckOnly_deserialize(MappingCheckOnly self, object data): * if not isinstance(data, dict): * raise bad_type(data, dict) # <<<<<<<<<<<<<< * item_errors:object= None * for key, value in data.items(): */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 895, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":894 * * cdef inline MappingCheckOnly_deserialize(MappingCheckOnly self, object data): * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * item_errors:object= None */ } /* "apischema/deserialization/methods.pyx":896 * if not isinstance(data, dict): * raise bad_type(data, dict) * item_errors:object= None # <<<<<<<<<<<<<< * for key, value in data.items(): * try: */ __Pyx_INCREF(Py_None); __pyx_v_item_errors = Py_None; /* "apischema/deserialization/methods.pyx":897 * raise bad_type(data, dict) * item_errors:object= None * for key, value in data.items(): # <<<<<<<<<<<<<< * try: * DeserializationMethod_deserialize(self.key_method, key) */ __pyx_t_7 = 0; if (unlikely(__pyx_v_data == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items"); __PYX_ERR(0, 897, __pyx_L1_error) } __pyx_t_4 = __Pyx_dict_iterator(__pyx_v_data, 0, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_4; __pyx_t_4 = 0; while (1) { __pyx_t_10 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_8, &__pyx_t_7, &__pyx_t_4, &__pyx_t_5, NULL, __pyx_t_9); if (unlikely(__pyx_t_10 == 0)) break; if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":898 * item_errors:object= None * for key, value in data.items(): * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.key_method, key) * DeserializationMethod_deserialize(self.value_method, value) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { /* "apischema/deserialization/methods.pyx":899 * for key, value in data.items(): * try: * DeserializationMethod_deserialize(self.key_method, key) # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.value_method, value) * except ValidationError as err: */ __pyx_t_5 = ((PyObject *)__pyx_v_self->key_method); __Pyx_INCREF(__pyx_t_5); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 899, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":900 * try: * DeserializationMethod_deserialize(self.key_method, key) * DeserializationMethod_deserialize(self.value_method, value) # <<<<<<<<<<<<<< * except ValidationError as err: * item_errors = set_child_error(item_errors, key, err) */ __pyx_t_4 = ((PyObject *)__pyx_v_self->value_method); __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_4), __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 900, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":898 * item_errors:object= None * for key, value in data.items(): * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.key_method, key) * DeserializationMethod_deserialize(self.value_method, value) */ } __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":901 * DeserializationMethod_deserialize(self.key_method, key) * DeserializationMethod_deserialize(self.value_method, value) * except ValidationError as err: # <<<<<<<<<<<<<< * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) */ __Pyx_ErrFetch(&__pyx_t_5, &__pyx_t_4, &__pyx_t_14); __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 901, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_5, __pyx_t_15); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_ErrRestore(__pyx_t_5, __pyx_t_4, __pyx_t_14); __pyx_t_5 = 0; __pyx_t_4 = 0; __pyx_t_14 = 0; if (__pyx_t_10) { __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_14, &__pyx_t_4, &__pyx_t_5) < 0) __PYX_ERR(0, 901, __pyx_L8_except_error) __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __pyx_v_err = __pyx_t_4; /*try:*/ { /* "apischema/deserialization/methods.pyx":902 * DeserializationMethod_deserialize(self.value_method, value) * except ValidationError as err: * item_errors = set_child_error(item_errors, key, err) # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, item_errors) * return data */ __pyx_t_15 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_item_errors, __pyx_v_key, __pyx_v_err, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 902, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF_SET(__pyx_v_item_errors, __pyx_t_15); __pyx_t_15 = 0; } /* "apischema/deserialization/methods.pyx":901 * DeserializationMethod_deserialize(self.key_method, key) * DeserializationMethod_deserialize(self.value_method, value) * except ValidationError as err: # <<<<<<<<<<<<<< * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L20; } __pyx_L19_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_10 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L8_except_error; } __pyx_L20:; } __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L7_exception_handled; } goto __pyx_L8_except_error; /* "apischema/deserialization/methods.pyx":898 * item_errors:object= None * for key, value in data.items(): * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(self.key_method, key) * DeserializationMethod_deserialize(self.value_method, value) */ __pyx_L8_except_error:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); goto __pyx_L1_error; __pyx_L7_exception_handled:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); __pyx_L13_try_end:; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":903 * except ValidationError as err: * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) # <<<<<<<<<<<<<< * return data * */ __pyx_t_3 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), __pyx_v_item_errors, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":904 * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) * return data # <<<<<<<<<<<<<< * * cdef inline MappingMethod_deserialize(MappingMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":893 * raise bad_type(data, *self.types) * * cdef inline MappingCheckOnly_deserialize(MappingCheckOnly self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_14); __Pyx_XDECREF(__pyx_t_15); __Pyx_AddTraceback("apischema.deserialization.methods.MappingCheckOnly_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_item_errors); __Pyx_XDECREF(__pyx_v_key); __Pyx_XDECREF(__pyx_v_value); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":906 * return data * * cdef inline MappingMethod_deserialize(MappingMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_MappingMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_item_errors = 0; PyObject *__pyx_v_items = 0; PyObject *__pyx_v_key = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_t_9; int __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("MappingMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":907 * * cdef inline MappingMethod_deserialize(MappingMethod self, object data): * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * item_errors:object= None */ __pyx_t_1 = PyDict_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":908 * cdef inline MappingMethod_deserialize(MappingMethod self, object data): * if not isinstance(data, dict): * raise bad_type(data, dict) # <<<<<<<<<<<<<< * item_errors:object= None * items:dict= {} */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 908, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":907 * * cdef inline MappingMethod_deserialize(MappingMethod self, object data): * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * item_errors:object= None */ } /* "apischema/deserialization/methods.pyx":909 * if not isinstance(data, dict): * raise bad_type(data, dict) * item_errors:object= None # <<<<<<<<<<<<<< * items:dict= {} * for key, value in data.items(): */ __Pyx_INCREF(Py_None); __pyx_v_item_errors = Py_None; /* "apischema/deserialization/methods.pyx":910 * raise bad_type(data, dict) * item_errors:object= None * items:dict= {} # <<<<<<<<<<<<<< * for key, value in data.items(): * try: */ __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_items = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":911 * item_errors:object= None * items:dict= {} * for key, value in data.items(): # <<<<<<<<<<<<<< * try: * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, */ __pyx_t_7 = 0; if (unlikely(__pyx_v_data == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items"); __PYX_ERR(0, 911, __pyx_L1_error) } __pyx_t_4 = __Pyx_dict_iterator(__pyx_v_data, 0, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_4; __pyx_t_4 = 0; while (1) { __pyx_t_10 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_8, &__pyx_t_7, &__pyx_t_4, &__pyx_t_5, NULL, __pyx_t_9); if (unlikely(__pyx_t_10 == 0)) break; if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":912 * items:dict= {} * for key, value in data.items(): * try: # <<<<<<<<<<<<<< * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, * value */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { /* "apischema/deserialization/methods.pyx":913 * for key, value in data.items(): * try: * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, # <<<<<<<<<<<<<< * value * ) */ __pyx_t_5 = ((PyObject *)__pyx_v_self->value_method); __Pyx_INCREF(__pyx_t_5); /* "apischema/deserialization/methods.pyx":914 * try: * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, * value # <<<<<<<<<<<<<< * ) * except ValidationError as err: */ __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 913, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":913 * for key, value in data.items(): * try: * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, # <<<<<<<<<<<<<< * value * ) */ __pyx_t_5 = ((PyObject *)__pyx_v_self->key_method); __Pyx_INCREF(__pyx_t_5); __pyx_t_14 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_key); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 913, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely((PyDict_SetItem(__pyx_v_items, __pyx_t_14, __pyx_t_4) < 0))) __PYX_ERR(0, 913, __pyx_L6_error) __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":912 * items:dict= {} * for key, value in data.items(): * try: # <<<<<<<<<<<<<< * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, * value */ } __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":916 * value * ) * except ValidationError as err: # <<<<<<<<<<<<<< * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) */ __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_14, &__pyx_t_5); __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 916, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_15); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_ErrRestore(__pyx_t_4, __pyx_t_14, __pyx_t_5); __pyx_t_4 = 0; __pyx_t_14 = 0; __pyx_t_5 = 0; if (__pyx_t_10) { __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_14, &__pyx_t_4) < 0) __PYX_ERR(0, 916, __pyx_L8_except_error) __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_v_err = __pyx_t_14; /*try:*/ { /* "apischema/deserialization/methods.pyx":917 * ) * except ValidationError as err: * item_errors = set_child_error(item_errors, key, err) # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, item_errors) * return items */ __pyx_t_15 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_item_errors, __pyx_v_key, __pyx_v_err, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 917, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF_SET(__pyx_v_item_errors, __pyx_t_15); __pyx_t_15 = 0; } /* "apischema/deserialization/methods.pyx":916 * value * ) * except ValidationError as err: # <<<<<<<<<<<<<< * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L20; } __pyx_L19_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_10 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L8_except_error; } __pyx_L20:; } __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L7_exception_handled; } goto __pyx_L8_except_error; /* "apischema/deserialization/methods.pyx":912 * items:dict= {} * for key, value in data.items(): * try: # <<<<<<<<<<<<<< * items[DeserializationMethod_deserialize(self.key_method, key)] = DeserializationMethod_deserialize(self.value_method, * value */ __pyx_L8_except_error:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); goto __pyx_L1_error; __pyx_L7_exception_handled:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); __pyx_L13_try_end:; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":918 * except ValidationError as err: * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) # <<<<<<<<<<<<<< * return items * */ __pyx_t_3 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), __pyx_v_item_errors, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":919 * item_errors = set_child_error(item_errors, key, err) * validate_constraints(data, self.constraints, item_errors) * return items # <<<<<<<<<<<<<< * * cdef inline SimpleObjectMethod_deserialize(SimpleObjectMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_items); __pyx_r = __pyx_v_items; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":906 * return data * * cdef inline MappingMethod_deserialize(MappingMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_14); __Pyx_XDECREF(__pyx_t_15); __Pyx_AddTraceback("apischema.deserialization.methods.MappingMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_item_errors); __Pyx_XDECREF(__pyx_v_items); __Pyx_XDECREF(__pyx_v_key); __Pyx_XDECREF(__pyx_v_value); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":921 * return items * * cdef inline SimpleObjectMethod_deserialize(SimpleObjectMethod self, object data): # <<<<<<<<<<<<<< * discriminator:object= None * if not isinstance(data, dict): */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_SimpleObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_discriminator = 0; PyObject *__pyx_v_fields_count = 0; PyObject *__pyx_v_field_errors = 0; Py_ssize_t __pyx_v___i; struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_field = 0; PyObject *__pyx_v_err = NULL; int __pyx_v_has_discriminator; PyObject *__pyx_v_key = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; int __pyx_t_14; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; PyObject *(*__pyx_t_24)(PyObject *); int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("SimpleObjectMethod_deserialize", 0); __Pyx_INCREF(__pyx_v_data); /* "apischema/deserialization/methods.pyx":922 * * cdef inline SimpleObjectMethod_deserialize(SimpleObjectMethod self, object data): * discriminator:object= None # <<<<<<<<<<<<<< * if not isinstance(data, dict): * if isinstance(data, Discriminated): */ __Pyx_INCREF(Py_None); __pyx_v_discriminator = Py_None; /* "apischema/deserialization/methods.pyx":923 * cdef inline SimpleObjectMethod_deserialize(SimpleObjectMethod self, object data): * discriminator:object= None * if not isinstance(data, dict): # <<<<<<<<<<<<<< * if isinstance(data, Discriminated): * discriminator = data.discriminator */ __pyx_t_1 = PyDict_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":924 * discriminator:object= None * if not isinstance(data, dict): * if isinstance(data, Discriminated): # <<<<<<<<<<<<<< * discriminator = data.discriminator * data = data.data */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_data, __pyx_ptype_9apischema_15deserialization_7methods_Discriminated); if (likely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":925 * if not isinstance(data, dict): * if isinstance(data, Discriminated): * discriminator = data.discriminator # <<<<<<<<<<<<<< * data = data.data * if not isinstance(data, dict): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_discriminator); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_discriminator, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":926 * if isinstance(data, Discriminated): * discriminator = data.discriminator * data = data.data # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":927 * discriminator = data.discriminator * data = data.data * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * else: */ __pyx_t_2 = PyDict_Check(__pyx_v_data); __pyx_t_1 = (!__pyx_t_2); if (unlikely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":928 * data = data.data * if not isinstance(data, dict): * raise bad_type(data, dict) # <<<<<<<<<<<<<< * else: * raise bad_type(data, dict) */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 928, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":927 * discriminator = data.discriminator * data = data.data * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * else: */ } /* "apischema/deserialization/methods.pyx":924 * discriminator:object= None * if not isinstance(data, dict): * if isinstance(data, Discriminated): # <<<<<<<<<<<<<< * discriminator = data.discriminator * data = data.data */ goto __pyx_L4; } /* "apischema/deserialization/methods.pyx":930 * raise bad_type(data, dict) * else: * raise bad_type(data, dict) # <<<<<<<<<<<<<< * fields_count:long= 0 * field_errors:object= None */ /*else*/ { __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 930, __pyx_L1_error) } __pyx_L4:; /* "apischema/deserialization/methods.pyx":923 * cdef inline SimpleObjectMethod_deserialize(SimpleObjectMethod self, object data): * discriminator:object= None * if not isinstance(data, dict): # <<<<<<<<<<<<<< * if isinstance(data, Discriminated): * discriminator = data.discriminator */ } /* "apischema/deserialization/methods.pyx":931 * else: * raise bad_type(data, dict) * fields_count:long= 0 # <<<<<<<<<<<<<< * field_errors:object= None * for __i in range(len(self.fields)): */ __Pyx_INCREF(__pyx_int_0); __pyx_v_fields_count = __pyx_int_0; /* "apischema/deserialization/methods.pyx":932 * raise bad_type(data, dict) * fields_count:long= 0 * field_errors:object= None # <<<<<<<<<<<<<< * for __i in range(len(self.fields)): * field: Field = self.fields[__i] */ __Pyx_INCREF(Py_None); __pyx_v_field_errors = Py_None; /* "apischema/deserialization/methods.pyx":933 * fields_count:long= 0 * field_errors:object= None * for __i in range(len(self.fields)): # <<<<<<<<<<<<<< * field: Field = self.fields[__i] * if field.alias in data: */ __pyx_t_3 = __pyx_v_self->fields; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 933, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_8 = __pyx_t_7; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v___i = __pyx_t_9; /* "apischema/deserialization/methods.pyx":934 * field_errors:object= None * for __i in range(len(self.fields)): * field: Field = self.fields[__i] # <<<<<<<<<<<<<< * if field.alias in data: * fields_count += 1 */ if (unlikely(__pyx_v_self->fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 934, __pyx_L1_error) } __pyx_t_3 = __Pyx_GetItemInt_Tuple(__pyx_v_self->fields, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_9apischema_15deserialization_7methods_Field))))) __PYX_ERR(0, 934, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_field, ((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_t_3)); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":935 * for __i in range(len(self.fields)): * field: Field = self.fields[__i] * if field.alias in data: # <<<<<<<<<<<<<< * fields_count += 1 * try: */ __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_field->alias, __pyx_v_data, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 935, __pyx_L1_error) if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":936 * field: Field = self.fields[__i] * if field.alias in data: * fields_count += 1 # <<<<<<<<<<<<<< * try: * DeserializationMethod_deserialize(field.method, data[field.alias]) */ __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_fields_count, __pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_fields_count, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":937 * if field.alias in data: * fields_count += 1 * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { /* "apischema/deserialization/methods.pyx":938 * fields_count += 1 * try: * DeserializationMethod_deserialize(field.method, data[field.alias]) # <<<<<<<<<<<<<< * except ValidationError as err: * if field.required or not field.fall_back_on_default: */ __pyx_t_3 = ((PyObject *)__pyx_v_field->method); __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_data, __pyx_v_field->alias); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 938, __pyx_L9_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_3), __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 938, __pyx_L9_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":937 * if field.alias in data: * fields_count += 1 * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; goto __pyx_L16_try_end; __pyx_L9_error:; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":939 * try: * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: # <<<<<<<<<<<<<< * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) */ __Pyx_ErrFetch(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3); __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 939, __pyx_L11_except_error) __Pyx_GOTREF(__pyx_t_13); __pyx_t_14 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_5, __pyx_t_13); __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_ErrRestore(__pyx_t_5, __pyx_t_4, __pyx_t_3); __pyx_t_5 = 0; __pyx_t_4 = 0; __pyx_t_3 = 0; if (__pyx_t_14) { __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5) < 0) __PYX_ERR(0, 939, __pyx_L11_except_error) __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __pyx_v_err = __pyx_t_4; /*try:*/ { /* "apischema/deserialization/methods.pyx":940 * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: * if field.required or not field.fall_back_on_default: # <<<<<<<<<<<<<< * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: */ if (!__pyx_v_field->required) { } else { __pyx_t_1 = __pyx_v_field->required; goto __pyx_L25_bool_binop_done; } __pyx_t_2 = (!__pyx_v_field->fall_back_on_default); __pyx_t_1 = __pyx_t_2; __pyx_L25_bool_binop_done:; if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":941 * except ValidationError as err: * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) # <<<<<<<<<<<<<< * elif field.required: * field_errors = set_child_error( */ __pyx_t_13 = __pyx_v_field->alias; __Pyx_INCREF(__pyx_t_13); __pyx_t_15 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_t_13, __pyx_v_err, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 941, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_15); __pyx_t_15 = 0; /* "apischema/deserialization/methods.pyx":940 * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: * if field.required or not field.fall_back_on_default: # <<<<<<<<<<<<<< * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: */ } } /* "apischema/deserialization/methods.pyx":939 * try: * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: # <<<<<<<<<<<<<< * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L23; } __pyx_L22_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_14 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L11_except_error; } __pyx_L23:; } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L10_exception_handled; } goto __pyx_L11_except_error; /* "apischema/deserialization/methods.pyx":937 * if field.alias in data: * fields_count += 1 * try: # <<<<<<<<<<<<<< * DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: */ __pyx_L11_except_error:; __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12); goto __pyx_L1_error; __pyx_L10_exception_handled:; __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12); __pyx_L16_try_end:; } /* "apischema/deserialization/methods.pyx":935 * for __i in range(len(self.fields)): * field: Field = self.fields[__i] * if field.alias in data: # <<<<<<<<<<<<<< * fields_count += 1 * try: */ goto __pyx_L8; } /* "apischema/deserialization/methods.pyx":942 * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, field.alias, ValidationError(self.missing) */ if (__pyx_v_field->required) { /* "apischema/deserialization/methods.pyx":944 * elif field.required: * field_errors = set_child_error( * field_errors, field.alias, ValidationError(self.missing) # <<<<<<<<<<<<<< * ) * has_discriminator = False */ __pyx_t_5 = __pyx_v_field->alias; __Pyx_INCREF(__pyx_t_5); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_15 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_15)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_15); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_15, __pyx_v_self->missing}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } /* "apischema/deserialization/methods.pyx":943 * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: * field_errors = set_child_error( # <<<<<<<<<<<<<< * field_errors, field.alias, ValidationError(self.missing) * ) */ __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_t_5, __pyx_t_4, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":942 * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, field.alias, ValidationError(self.missing) */ } __pyx_L8:; } /* "apischema/deserialization/methods.pyx":946 * field_errors, field.alias, ValidationError(self.missing) * ) * has_discriminator = False # <<<<<<<<<<<<<< * if len(data) != fields_count and not self.typed_dict: * for key in data.keys() - self.all_aliases: */ __pyx_v_has_discriminator = 0; /* "apischema/deserialization/methods.pyx":947 * ) * has_discriminator = False * if len(data) != fields_count and not self.typed_dict: # <<<<<<<<<<<<<< * for key in data.keys() - self.all_aliases: * if key == discriminator: */ __pyx_t_7 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 947, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_fields_count, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L32_bool_binop_done; } __pyx_t_2 = (!__pyx_v_self->typed_dict); __pyx_t_1 = __pyx_t_2; __pyx_L32_bool_binop_done:; if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":948 * has_discriminator = False * if len(data) != fields_count and not self.typed_dict: * for key in data.keys() - self.all_aliases: # <<<<<<<<<<<<<< * if key == discriminator: * has_discriminator = True */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyNumber_Subtract(__pyx_t_4, __pyx_v_self->all_aliases); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_24 = NULL; } else { __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_24 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 948, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { if (likely(!__pyx_t_24)) { if (likely(PyList_CheckExact(__pyx_t_4))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 948, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 948, __pyx_L1_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 948, __pyx_L1_error) #endif if (__pyx_t_7 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely((0 < 0))) __PYX_ERR(0, 948, __pyx_L1_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } } else { __pyx_t_3 = __pyx_t_24(__pyx_t_4); if (unlikely(!__pyx_t_3)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 948, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_3); } __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":949 * if len(data) != fields_count and not self.typed_dict: * for key in data.keys() - self.all_aliases: * if key == discriminator: # <<<<<<<<<<<<<< * has_discriminator = True * else: */ __pyx_t_3 = PyObject_RichCompare(__pyx_v_key, __pyx_v_discriminator, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 949, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":950 * for key in data.keys() - self.all_aliases: * if key == discriminator: * has_discriminator = True # <<<<<<<<<<<<<< * else: * field_errors = set_child_error( */ __pyx_v_has_discriminator = 1; /* "apischema/deserialization/methods.pyx":949 * if len(data) != fields_count and not self.typed_dict: * for key in data.keys() - self.all_aliases: * if key == discriminator: # <<<<<<<<<<<<<< * has_discriminator = True * else: */ goto __pyx_L36; } /* "apischema/deserialization/methods.pyx":952 * has_discriminator = True * else: * field_errors = set_child_error( # <<<<<<<<<<<<<< * field_errors, key, ValidationError(self.unexpected) * ) */ /*else*/ { /* "apischema/deserialization/methods.pyx":953 * else: * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) # <<<<<<<<<<<<<< * ) * if field_errors: */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_15 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_15)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_15); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_15, __pyx_v_self->unexpected}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } /* "apischema/deserialization/methods.pyx":952 * has_discriminator = True * else: * field_errors = set_child_error( # <<<<<<<<<<<<<< * field_errors, key, ValidationError(self.unexpected) * ) */ __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_v_key, __pyx_t_3, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_5); __pyx_t_5 = 0; } __pyx_L36:; /* "apischema/deserialization/methods.pyx":948 * has_discriminator = False * if len(data) != fields_count and not self.typed_dict: * for key in data.keys() - self.all_aliases: # <<<<<<<<<<<<<< * if key == discriminator: * has_discriminator = True */ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":947 * ) * has_discriminator = False * if len(data) != fields_count and not self.typed_dict: # <<<<<<<<<<<<<< * for key in data.keys() - self.all_aliases: * if key == discriminator: */ } /* "apischema/deserialization/methods.pyx":955 * field_errors, key, ValidationError(self.unexpected) * ) * if field_errors: # <<<<<<<<<<<<<< * raise ValidationError([], field_errors) * if has_discriminator: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 955, __pyx_L1_error) if (unlikely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":956 * ) * if field_errors: * raise ValidationError([], field_errors) # <<<<<<<<<<<<<< * if has_discriminator: * data = data.copy() */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_15 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_15)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_15); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_15, __pyx_t_3, __pyx_v_field_errors}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 956, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":955 * field_errors, key, ValidationError(self.unexpected) * ) * if field_errors: # <<<<<<<<<<<<<< * raise ValidationError([], field_errors) * if has_discriminator: */ } /* "apischema/deserialization/methods.pyx":957 * if field_errors: * raise ValidationError([], field_errors) * if has_discriminator: # <<<<<<<<<<<<<< * data = data.copy() * del data[discriminator] */ if (__pyx_v_has_discriminator) { /* "apischema/deserialization/methods.pyx":958 * raise ValidationError([], field_errors) * if has_discriminator: * data = data.copy() # <<<<<<<<<<<<<< * del data[discriminator] * return Constructor_construct(self.constructor, data) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_copy); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":959 * if has_discriminator: * data = data.copy() * del data[discriminator] # <<<<<<<<<<<<<< * return Constructor_construct(self.constructor, data) * */ if (unlikely((PyObject_DelItem(__pyx_v_data, __pyx_v_discriminator) < 0))) __PYX_ERR(0, 959, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":957 * if field_errors: * raise ValidationError([], field_errors) * if has_discriminator: # <<<<<<<<<<<<<< * data = data.copy() * del data[discriminator] */ } /* "apischema/deserialization/methods.pyx":960 * data = data.copy() * del data[discriminator] * return Constructor_construct(self.constructor, data) # <<<<<<<<<<<<<< * * cdef inline ObjectMethod_deserialize(ObjectMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = ((PyObject *)__pyx_v_self->constructor); __Pyx_INCREF(__pyx_t_4); if (!(likely(PyDict_CheckExact(__pyx_v_data))||((__pyx_v_data) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_v_data))) __PYX_ERR(0, 960, __pyx_L1_error) __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_Constructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_4), ((PyObject*)__pyx_v_data)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":921 * return items * * cdef inline SimpleObjectMethod_deserialize(SimpleObjectMethod self, object data): # <<<<<<<<<<<<<< * discriminator:object= None * if not isinstance(data, dict): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_15); __Pyx_AddTraceback("apischema.deserialization.methods.SimpleObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_discriminator); __Pyx_XDECREF(__pyx_v_fields_count); __Pyx_XDECREF(__pyx_v_field_errors); __Pyx_XDECREF((PyObject *)__pyx_v_field); __Pyx_XDECREF(__pyx_v_err); __Pyx_XDECREF(__pyx_v_key); __Pyx_XDECREF(__pyx_v_data); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":962 * return Constructor_construct(self.constructor, data) * * cdef inline ObjectMethod_deserialize(ObjectMethod self, object data): # <<<<<<<<<<<<<< * discriminator:object= None * if not isinstance(data, dict): */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ObjectMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_discriminator = 0; PyObject *__pyx_v_values = 0; PyObject *__pyx_v_fields_count = 0; PyObject *__pyx_v_errors = 0; PyObject *__pyx_v_err = NULL; PyObject *__pyx_v_field_errors = 0; Py_ssize_t __pyx_v___i; struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v_field = 0; PyObject *__pyx_v_requiring = NULL; PyObject *__pyx_v_error = NULL; PyObject *__pyx_v_remain = NULL; struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v_flattened_field = 0; PyObject *__pyx_v_flattened = 0; struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v_pattern_field = 0; PyObject *__pyx_v_matched = 0; PyObject *__pyx_v_additional = 0; PyObject *__pyx_v_key = NULL; PyObject *__pyx_v_init = NULL; PyObject *__pyx_v_name = NULL; PyObject *__pyx_v_default_factory = NULL; PyObject *__pyx_v_aliases = NULL; PyObject *__pyx_v_validators = NULL; PyObject *__pyx_v_invalid_fields = NULL; PyObject *__pyx_v_obj = NULL; PyObject *__pyx_8genexpr1__pyx_v_alias = NULL; PyObject *__pyx_8genexpr2__pyx_v_key = NULL; PyObject *__pyx_8genexpr3__pyx_v_key = NULL; PyObject *__pyx_8genexpr4__pyx_v_v = NULL; PyObject *__pyx_8genexpr5__pyx_v_v = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_t_11; PyObject *__pyx_t_12 = NULL; int __pyx_t_13; char const *__pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; Py_ssize_t __pyx_t_21; Py_ssize_t __pyx_t_22; Py_ssize_t __pyx_t_23; char const *__pyx_t_24; int __pyx_t_25; int __pyx_t_26; Py_ssize_t __pyx_t_27; Py_UCS4 __pyx_t_28; char const *__pyx_t_29; PyObject *(*__pyx_t_30)(PyObject *); char const *__pyx_t_31; char const *__pyx_t_32; PyObject *(*__pyx_t_33)(PyObject *); PyObject *__pyx_t_34 = NULL; PyObject *__pyx_t_35 = NULL; char const *__pyx_t_36; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ObjectMethod_deserialize", 0); __Pyx_INCREF(__pyx_v_data); /* "apischema/deserialization/methods.pyx":963 * * cdef inline ObjectMethod_deserialize(ObjectMethod self, object data): * discriminator:object= None # <<<<<<<<<<<<<< * if not isinstance(data, dict): * if isinstance(data, Discriminated): */ __Pyx_INCREF(Py_None); __pyx_v_discriminator = Py_None; /* "apischema/deserialization/methods.pyx":964 * cdef inline ObjectMethod_deserialize(ObjectMethod self, object data): * discriminator:object= None * if not isinstance(data, dict): # <<<<<<<<<<<<<< * if isinstance(data, Discriminated): * discriminator = data.discriminator */ __pyx_t_1 = PyDict_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":965 * discriminator:object= None * if not isinstance(data, dict): * if isinstance(data, Discriminated): # <<<<<<<<<<<<<< * discriminator = data.discriminator * data = data.data */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_data, __pyx_ptype_9apischema_15deserialization_7methods_Discriminated); if (likely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":966 * if not isinstance(data, dict): * if isinstance(data, Discriminated): * discriminator = data.discriminator # <<<<<<<<<<<<<< * data = data.data * if not isinstance(data, dict): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_discriminator); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_discriminator, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":967 * if isinstance(data, Discriminated): * discriminator = data.discriminator * data = data.data # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":968 * discriminator = data.discriminator * data = data.data * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * else: */ __pyx_t_2 = PyDict_Check(__pyx_v_data); __pyx_t_1 = (!__pyx_t_2); if (unlikely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":969 * data = data.data * if not isinstance(data, dict): * raise bad_type(data, dict) # <<<<<<<<<<<<<< * else: * raise bad_type(data, dict) */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 969, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":968 * discriminator = data.discriminator * data = data.data * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * else: */ } /* "apischema/deserialization/methods.pyx":965 * discriminator:object= None * if not isinstance(data, dict): * if isinstance(data, Discriminated): # <<<<<<<<<<<<<< * discriminator = data.discriminator * data = data.data */ goto __pyx_L4; } /* "apischema/deserialization/methods.pyx":971 * raise bad_type(data, dict) * else: * raise bad_type(data, dict) # <<<<<<<<<<<<<< * values:dict= {} * fields_count:long= 0 */ /*else*/ { __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 971, __pyx_L1_error) } __pyx_L4:; /* "apischema/deserialization/methods.pyx":964 * cdef inline ObjectMethod_deserialize(ObjectMethod self, object data): * discriminator:object= None * if not isinstance(data, dict): # <<<<<<<<<<<<<< * if isinstance(data, Discriminated): * discriminator = data.discriminator */ } /* "apischema/deserialization/methods.pyx":972 * else: * raise bad_type(data, dict) * values:dict= {} # <<<<<<<<<<<<<< * fields_count:long= 0 * errors:object= None */ __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_values = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":973 * raise bad_type(data, dict) * values:dict= {} * fields_count:long= 0 # <<<<<<<<<<<<<< * errors:object= None * try: */ __Pyx_INCREF(__pyx_int_0); __pyx_v_fields_count = __pyx_int_0; /* "apischema/deserialization/methods.pyx":974 * values:dict= {} * fields_count:long= 0 * errors:object= None # <<<<<<<<<<<<<< * try: * validate_constraints(data, self.constraints, None) */ __Pyx_INCREF(Py_None); __pyx_v_errors = Py_None; /* "apischema/deserialization/methods.pyx":975 * fields_count:long= 0 * errors:object= None * try: # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, None) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { /* "apischema/deserialization/methods.pyx":976 * errors:object= None * try: * validate_constraints(data, self.constraints, None) # <<<<<<<<<<<<<< * except ValidationError as err: * errors = list(err.messages) */ __pyx_t_3 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_3), Py_None, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 976, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":975 * fields_count:long= 0 * errors:object= None * try: # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, None) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L11_try_end; __pyx_L6_error:; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":977 * try: * validate_constraints(data, self.constraints, None) * except ValidationError as err: # <<<<<<<<<<<<<< * errors = list(err.messages) * field_errors:object= None */ __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_3, &__pyx_t_5); __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 977, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_ErrRestore(__pyx_t_4, __pyx_t_3, __pyx_t_5); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_5 = 0; if (__pyx_t_11) { __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_3, &__pyx_t_4) < 0) __PYX_ERR(0, 977, __pyx_L8_except_error) __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_v_err = __pyx_t_3; /*try:*/ { /* "apischema/deserialization/methods.pyx":978 * validate_constraints(data, self.constraints, None) * except ValidationError as err: * errors = list(err.messages) # <<<<<<<<<<<<<< * field_errors:object= None * for __i in range(len(self.fields)): */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_messages); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 978, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_12 = __Pyx_PySequence_ListKeepNew(__pyx_t_10); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 978, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF_SET(__pyx_v_errors, __pyx_t_12); __pyx_t_12 = 0; } /* "apischema/deserialization/methods.pyx":977 * try: * validate_constraints(data, self.constraints, None) * except ValidationError as err: # <<<<<<<<<<<<<< * errors = list(err.messages) * field_errors:object= None */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L18; } __pyx_L17_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_11 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; goto __pyx_L8_except_error; } __pyx_L18:; } __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L7_exception_handled; } goto __pyx_L8_except_error; /* "apischema/deserialization/methods.pyx":975 * fields_count:long= 0 * errors:object= None * try: # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, None) * except ValidationError as err: */ __pyx_L8_except_error:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); goto __pyx_L1_error; __pyx_L7_exception_handled:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); __pyx_L11_try_end:; } /* "apischema/deserialization/methods.pyx":979 * except ValidationError as err: * errors = list(err.messages) * field_errors:object= None # <<<<<<<<<<<<<< * for __i in range(len(self.fields)): * field: Field = self.fields[__i] */ __Pyx_INCREF(Py_None); __pyx_v_field_errors = Py_None; /* "apischema/deserialization/methods.pyx":980 * errors = list(err.messages) * field_errors:object= None * for __i in range(len(self.fields)): # <<<<<<<<<<<<<< * field: Field = self.fields[__i] * if field.alias in data: */ __pyx_t_4 = __pyx_v_self->fields; __Pyx_INCREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 980, __pyx_L1_error) } __pyx_t_21 = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_21 == ((Py_ssize_t)-1))) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_22 = __pyx_t_21; for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_22; __pyx_t_23+=1) { __pyx_v___i = __pyx_t_23; /* "apischema/deserialization/methods.pyx":981 * field_errors:object= None * for __i in range(len(self.fields)): * field: Field = self.fields[__i] # <<<<<<<<<<<<<< * if field.alias in data: * fields_count += 1 */ if (unlikely(__pyx_v_self->fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 981, __pyx_L1_error) } __pyx_t_4 = __Pyx_GetItemInt_Tuple(__pyx_v_self->fields, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_9apischema_15deserialization_7methods_Field))))) __PYX_ERR(0, 981, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_field, ((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_t_4)); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":982 * for __i in range(len(self.fields)): * field: Field = self.fields[__i] * if field.alias in data: # <<<<<<<<<<<<<< * fields_count += 1 * try: */ __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_field->alias, __pyx_v_data, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 982, __pyx_L1_error) if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":983 * field: Field = self.fields[__i] * if field.alias in data: * fields_count += 1 # <<<<<<<<<<<<<< * try: * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) */ __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_fields_count, __pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_fields_count, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":984 * if field.alias in data: * fields_count += 1 * try: # <<<<<<<<<<<<<< * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_8, &__pyx_t_7); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { /* "apischema/deserialization/methods.pyx":985 * fields_count += 1 * try: * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) # <<<<<<<<<<<<<< * except ValidationError as err: * if field.required or not field.fall_back_on_default: */ __pyx_t_4 = ((PyObject *)__pyx_v_field->method); __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_v_data, __pyx_v_field->alias); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 985, __pyx_L26_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_4), __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 985, __pyx_L26_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_field->name, __pyx_t_5) < 0))) __PYX_ERR(0, 985, __pyx_L26_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":984 * if field.alias in data: * fields_count += 1 * try: # <<<<<<<<<<<<<< * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L33_try_end; __pyx_L26_error:; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":986 * try: * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: # <<<<<<<<<<<<<< * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) */ __Pyx_ErrFetch(&__pyx_t_5, &__pyx_t_3, &__pyx_t_4); __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 986, __pyx_L28_except_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_13 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_5, __pyx_t_12); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_ErrRestore(__pyx_t_5, __pyx_t_3, __pyx_t_4); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; if (__pyx_t_13) { __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_5) < 0) __PYX_ERR(0, 986, __pyx_L28_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_v_err = __pyx_t_3; /*try:*/ { /* "apischema/deserialization/methods.pyx":987 * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: * if field.required or not field.fall_back_on_default: # <<<<<<<<<<<<<< * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: */ if (!__pyx_v_field->required) { } else { __pyx_t_1 = __pyx_v_field->required; goto __pyx_L42_bool_binop_done; } __pyx_t_2 = (!__pyx_v_field->fall_back_on_default); __pyx_t_1 = __pyx_t_2; __pyx_L42_bool_binop_done:; if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":988 * except ValidationError as err: * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) # <<<<<<<<<<<<<< * elif field.required: * field_errors = set_child_error( */ __pyx_t_12 = __pyx_v_field->alias; __Pyx_INCREF(__pyx_t_12); __pyx_t_10 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_t_12, __pyx_v_err, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 988, __pyx_L39_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":987 * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: * if field.required or not field.fall_back_on_default: # <<<<<<<<<<<<<< * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: */ } } /* "apischema/deserialization/methods.pyx":986 * try: * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: # <<<<<<<<<<<<<< * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L40; } __pyx_L39_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_15); __pyx_t_13 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_24 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15); } __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18); __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_24; goto __pyx_L28_except_error; } __pyx_L40:; } __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L27_exception_handled; } goto __pyx_L28_except_error; /* "apischema/deserialization/methods.pyx":984 * if field.alias in data: * fields_count += 1 * try: # <<<<<<<<<<<<<< * values[field.name] = DeserializationMethod_deserialize(field.method, data[field.alias]) * except ValidationError as err: */ __pyx_L28_except_error:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7); goto __pyx_L1_error; __pyx_L27_exception_handled:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7); __pyx_L33_try_end:; } /* "apischema/deserialization/methods.pyx":982 * for __i in range(len(self.fields)): * field: Field = self.fields[__i] * if field.alias in data: # <<<<<<<<<<<<<< * fields_count += 1 * try: */ goto __pyx_L25; } /* "apischema/deserialization/methods.pyx":989 * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, field.alias, ValidationError(self.missing) */ if (__pyx_v_field->required) { /* "apischema/deserialization/methods.pyx":991 * elif field.required: * field_errors = set_child_error( * field_errors, field.alias, ValidationError(self.missing) # <<<<<<<<<<<<<< * ) * elif field.required_by is not None and not field.required_by.isdisjoint( */ __pyx_t_5 = __pyx_v_field->alias; __Pyx_INCREF(__pyx_t_5); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_self->missing}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } /* "apischema/deserialization/methods.pyx":990 * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: * field_errors = set_child_error( # <<<<<<<<<<<<<< * field_errors, field.alias, ValidationError(self.missing) * ) */ __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_t_5, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":989 * if field.required or not field.fall_back_on_default: * field_errors = set_child_error(field_errors, field.alias, err) * elif field.required: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, field.alias, ValidationError(self.missing) */ goto __pyx_L25; } /* "apischema/deserialization/methods.pyx":993 * field_errors, field.alias, ValidationError(self.missing) * ) * elif field.required_by is not None and not field.required_by.isdisjoint( # <<<<<<<<<<<<<< * data * ): */ __pyx_t_2 = (__pyx_v_field->required_by != Py_None); if (__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L48_bool_binop_done; } __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_field->required_by, __pyx_n_s_isdisjoint); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "apischema/deserialization/methods.pyx":994 * ) * elif field.required_by is not None and not field.required_by.isdisjoint( * data # <<<<<<<<<<<<<< * ): * requiring = sorted(field.required_by & data.keys()) */ __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_data}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } /* "apischema/deserialization/methods.pyx":993 * field_errors, field.alias, ValidationError(self.missing) * ) * elif field.required_by is not None and not field.required_by.isdisjoint( # <<<<<<<<<<<<<< * data * ): */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_25 = (!__pyx_t_2); __pyx_t_1 = __pyx_t_25; __pyx_L48_bool_binop_done:; if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":996 * data * ): * requiring = sorted(field.required_by & data.keys()) # <<<<<<<<<<<<<< * error = ValidationError([self.missing + f" (required by {requiring})"]) * field_errors = set_child_error(field_errors, field.alias, error) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyNumber_And(__pyx_v_field->required_by, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PySequence_List(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; __pyx_t_26 = PyList_Sort(__pyx_t_4); if (unlikely(__pyx_t_26 == ((int)-1))) __PYX_ERR(0, 996, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_requiring, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":997 * ): * requiring = sorted(field.required_by & data.keys()) * error = ValidationError([self.missing + f" (required by {requiring})"]) # <<<<<<<<<<<<<< * field_errors = set_child_error(field_errors, field.alias, error) * if self.aggregate_fields: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_27 = 0; __pyx_t_28 = 127; __Pyx_INCREF(__pyx_kp_u_required_by_2); __pyx_t_27 += 14; __Pyx_GIVEREF(__pyx_kp_u_required_by_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_required_by_2); __pyx_t_10 = __Pyx_PyObject_FormatSimple(__pyx_v_requiring, __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_28 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) > __pyx_t_28) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) : __pyx_t_28; __pyx_t_27 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_10); __pyx_t_10 = 0; __Pyx_INCREF(__pyx_kp_u_); __pyx_t_27 += 1; __Pyx_GIVEREF(__pyx_kp_u_); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_); __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, __pyx_t_27, __pyx_t_28); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatSafe(__pyx_v_self->missing, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_t_5)) __PYX_ERR(0, 997, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_10}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_XDECREF_SET(__pyx_v_error, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":998 * requiring = sorted(field.required_by & data.keys()) * error = ValidationError([self.missing + f" (required by {requiring})"]) * field_errors = set_child_error(field_errors, field.alias, error) # <<<<<<<<<<<<<< * if self.aggregate_fields: * remain = data.keys() - self.all_aliases */ __pyx_t_4 = __pyx_v_field->alias; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_t_4, __pyx_v_error, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":993 * field_errors, field.alias, ValidationError(self.missing) * ) * elif field.required_by is not None and not field.required_by.isdisjoint( # <<<<<<<<<<<<<< * data * ): */ } __pyx_L25:; } /* "apischema/deserialization/methods.pyx":999 * error = ValidationError([self.missing + f" (required by {requiring})"]) * field_errors = set_child_error(field_errors, field.alias, error) * if self.aggregate_fields: # <<<<<<<<<<<<<< * remain = data.keys() - self.all_aliases * for __i in range(len(self.flattened_fields)): */ if (__pyx_v_self->aggregate_fields) { /* "apischema/deserialization/methods.pyx":1000 * field_errors = set_child_error(field_errors, field.alias, error) * if self.aggregate_fields: * remain = data.keys() - self.all_aliases # <<<<<<<<<<<<<< * for __i in range(len(self.flattened_fields)): * flattened_field: FlattenedField = self.flattened_fields[__i] */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyNumber_Subtract(__pyx_t_3, __pyx_v_self->all_aliases); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_remain = __pyx_t_4; __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1001 * if self.aggregate_fields: * remain = data.keys() - self.all_aliases * for __i in range(len(self.flattened_fields)): # <<<<<<<<<<<<<< * flattened_field: FlattenedField = self.flattened_fields[__i] * flattened:dict= { */ __pyx_t_4 = __pyx_v_self->flattened_fields; __Pyx_INCREF(__pyx_t_4); if (unlikely(__pyx_t_4 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1001, __pyx_L1_error) } __pyx_t_21 = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_21 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_22 = __pyx_t_21; for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_22; __pyx_t_23+=1) { __pyx_v___i = __pyx_t_23; /* "apischema/deserialization/methods.pyx":1002 * remain = data.keys() - self.all_aliases * for __i in range(len(self.flattened_fields)): * flattened_field: FlattenedField = self.flattened_fields[__i] # <<<<<<<<<<<<<< * flattened:dict= { * alias: data[alias] */ if (unlikely(__pyx_v_self->flattened_fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1002, __pyx_L1_error) } __pyx_t_4 = __Pyx_GetItemInt_Tuple(__pyx_v_self->flattened_fields, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField))))) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_flattened_field, ((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_t_4)); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1003 * for __i in range(len(self.flattened_fields)): * flattened_field: FlattenedField = self.flattened_fields[__i] * flattened:dict= { # <<<<<<<<<<<<<< * alias: data[alias] * for alias in flattened_field.aliases */ { /* enter inner scope */ __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1003, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_4); /* "apischema/deserialization/methods.pyx":1005 * flattened:dict= { * alias: data[alias] * for alias in flattened_field.aliases # <<<<<<<<<<<<<< * if alias in data * } */ if (unlikely(__pyx_v_flattened_field->aliases == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 1005, __pyx_L55_error) } __pyx_t_3 = __pyx_v_flattened_field->aliases; __Pyx_INCREF(__pyx_t_3); __pyx_t_27 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1005, __pyx_L55_error) #endif if (__pyx_t_27 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_27); __Pyx_INCREF(__pyx_t_10); __pyx_t_27++; if (unlikely((0 < 0))) __PYX_ERR(0, 1005, __pyx_L55_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1005, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_10); #endif __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_alias, __pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1006 * alias: data[alias] * for alias in flattened_field.aliases * if alias in data # <<<<<<<<<<<<<< * } * remain.difference_update(flattened) */ __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_8genexpr1__pyx_v_alias, __pyx_v_data, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1006, __pyx_L55_error) if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":1004 * flattened_field: FlattenedField = self.flattened_fields[__i] * flattened:dict= { * alias: data[alias] # <<<<<<<<<<<<<< * for alias in flattened_field.aliases * if alias in data */ __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_8genexpr1__pyx_v_alias); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1004, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyDict_SetItem(__pyx_t_4, (PyObject*)__pyx_8genexpr1__pyx_v_alias, (PyObject*)__pyx_t_10))) __PYX_ERR(0, 1004, __pyx_L55_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1006 * alias: data[alias] * for alias in flattened_field.aliases * if alias in data # <<<<<<<<<<<<<< * } * remain.difference_update(flattened) */ } /* "apischema/deserialization/methods.pyx":1005 * flattened:dict= { * alias: data[alias] * for alias in flattened_field.aliases # <<<<<<<<<<<<<< * if alias in data * } */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_alias); __pyx_8genexpr1__pyx_v_alias = 0; goto __pyx_L60_exit_scope; __pyx_L55_error:; __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_alias); __pyx_8genexpr1__pyx_v_alias = 0; goto __pyx_L1_error; __pyx_L60_exit_scope:; } /* exit inner scope */ __Pyx_XDECREF_SET(__pyx_v_flattened, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1008 * if alias in data * } * remain.difference_update(flattened) # <<<<<<<<<<<<<< * try: * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_remain, __pyx_n_s_difference_update); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_flattened}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1009 * } * remain.difference_update(flattened) * try: # <<<<<<<<<<<<<< * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, * flattened */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { /* "apischema/deserialization/methods.pyx":1010 * remain.difference_update(flattened) * try: * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, # <<<<<<<<<<<<<< * flattened * ) */ __pyx_t_4 = ((PyObject *)__pyx_v_flattened_field->method); __Pyx_INCREF(__pyx_t_4); /* "apischema/deserialization/methods.pyx":1011 * try: * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, * flattened # <<<<<<<<<<<<<< * ) * except ValidationError as err: */ __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_4), __pyx_v_flattened); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1010, __pyx_L61_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1010 * remain.difference_update(flattened) * try: * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, # <<<<<<<<<<<<<< * flattened * ) */ if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_flattened_field->name, __pyx_t_3) < 0))) __PYX_ERR(0, 1010, __pyx_L61_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1009 * } * remain.difference_update(flattened) * try: # <<<<<<<<<<<<<< * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, * flattened */ } __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L68_try_end; __pyx_L61_error:; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1013 * flattened * ) * except ValidationError as err: # <<<<<<<<<<<<<< * if not flattened_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) */ __Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_4, &__pyx_t_10); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1013, __pyx_L63_except_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_3, __pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_ErrRestore(__pyx_t_3, __pyx_t_4, __pyx_t_10); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_10 = 0; if (__pyx_t_11) { __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_4, &__pyx_t_3) < 0) __PYX_ERR(0, 1013, __pyx_L63_except_error) __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_v_err = __pyx_t_4; /*try:*/ { /* "apischema/deserialization/methods.pyx":1014 * ) * except ValidationError as err: * if not flattened_field.fall_back_on_default: # <<<<<<<<<<<<<< * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( */ __pyx_t_1 = (!__pyx_v_flattened_field->fall_back_on_default); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":1015 * except ValidationError as err: * if not flattened_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) # <<<<<<<<<<<<<< * field_errors = update_children_errors( * field_errors, err.children */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_messages); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1015, __pyx_L74_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_extend_errors(__pyx_v_errors, __pyx_t_5, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1015, __pyx_L74_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_errors, __pyx_t_12); __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":1017 * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( * field_errors, err.children # <<<<<<<<<<<<<< * ) * for __i in range(len(self.pattern_fields)): */ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_children); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1017, __pyx_L74_error) __Pyx_GOTREF(__pyx_t_12); if (!(likely(PyDict_CheckExact(__pyx_t_12))||((__pyx_t_12) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_12))) __PYX_ERR(0, 1017, __pyx_L74_error) /* "apischema/deserialization/methods.pyx":1016 * if not flattened_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( # <<<<<<<<<<<<<< * field_errors, err.children * ) */ __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_update_children_errors(__pyx_v_field_errors, ((PyObject*)__pyx_t_12), 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1016, __pyx_L74_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1014 * ) * except ValidationError as err: * if not flattened_field.fall_back_on_default: # <<<<<<<<<<<<<< * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( */ } } /* "apischema/deserialization/methods.pyx":1013 * flattened * ) * except ValidationError as err: # <<<<<<<<<<<<<< * if not flattened_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L75; } __pyx_L74_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_11 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_29 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_29; goto __pyx_L63_except_error; } __pyx_L75:; } __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L62_exception_handled; } goto __pyx_L63_except_error; /* "apischema/deserialization/methods.pyx":1009 * } * remain.difference_update(flattened) * try: # <<<<<<<<<<<<<< * values[flattened_field.name] = DeserializationMethod_deserialize(flattened_field.method, * flattened */ __pyx_L63_except_error:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); goto __pyx_L1_error; __pyx_L62_exception_handled:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); __pyx_L68_try_end:; } } /* "apischema/deserialization/methods.pyx":1019 * field_errors, err.children * ) * for __i in range(len(self.pattern_fields)): # <<<<<<<<<<<<<< * pattern_field: PatternField = self.pattern_fields[__i] * matched:dict= { */ __pyx_t_3 = __pyx_v_self->pattern_fields; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1019, __pyx_L1_error) } __pyx_t_21 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_21 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_22 = __pyx_t_21; for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_22; __pyx_t_23+=1) { __pyx_v___i = __pyx_t_23; /* "apischema/deserialization/methods.pyx":1020 * ) * for __i in range(len(self.pattern_fields)): * pattern_field: PatternField = self.pattern_fields[__i] # <<<<<<<<<<<<<< * matched:dict= { * key: data[key] for key in remain if pattern_field.pattern.match(key) */ if (unlikely(__pyx_v_self->pattern_fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1020, __pyx_L1_error) } __pyx_t_3 = __Pyx_GetItemInt_Tuple(__pyx_v_self->pattern_fields, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_9apischema_15deserialization_7methods_PatternField))))) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_pattern_field, ((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_t_3)); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1021 * for __i in range(len(self.pattern_fields)): * pattern_field: PatternField = self.pattern_fields[__i] * matched:dict= { # <<<<<<<<<<<<<< * key: data[key] for key in remain if pattern_field.pattern.match(key) * } */ { /* enter inner scope */ __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1021, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_3); /* "apischema/deserialization/methods.pyx":1022 * pattern_field: PatternField = self.pattern_fields[__i] * matched:dict= { * key: data[key] for key in remain if pattern_field.pattern.match(key) # <<<<<<<<<<<<<< * } * remain.difference_update(matched) */ if (likely(PyList_CheckExact(__pyx_v_remain)) || PyTuple_CheckExact(__pyx_v_remain)) { __pyx_t_4 = __pyx_v_remain; __Pyx_INCREF(__pyx_t_4); __pyx_t_27 = 0; __pyx_t_30 = NULL; } else { __pyx_t_27 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_remain); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_30 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_30)) __PYX_ERR(0, 1022, __pyx_L85_error) } for (;;) { if (likely(!__pyx_t_30)) { if (likely(PyList_CheckExact(__pyx_t_4))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1022, __pyx_L85_error) #endif if (__pyx_t_27 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_27); __Pyx_INCREF(__pyx_t_10); __pyx_t_27++; if (unlikely((0 < 0))) __PYX_ERR(0, 1022, __pyx_L85_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1022, __pyx_L85_error) #endif if (__pyx_t_27 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_27); __Pyx_INCREF(__pyx_t_10); __pyx_t_27++; if (unlikely((0 < 0))) __PYX_ERR(0, 1022, __pyx_L85_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_30(__pyx_t_4); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1022, __pyx_L85_error) } break; } __Pyx_GOTREF(__pyx_t_10); } __Pyx_XDECREF_SET(__pyx_8genexpr2__pyx_v_key, __pyx_t_10); __pyx_t_10 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_pattern_field->pattern, __pyx_n_s_match); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_8genexpr2__pyx_v_key}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__pyx_t_1) { __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_8genexpr2__pyx_v_key); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyDict_SetItem(__pyx_t_3, (PyObject*)__pyx_8genexpr2__pyx_v_key, (PyObject*)__pyx_t_10))) __PYX_ERR(0, 1022, __pyx_L85_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_key); __pyx_8genexpr2__pyx_v_key = 0; goto __pyx_L90_exit_scope; __pyx_L85_error:; __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_key); __pyx_8genexpr2__pyx_v_key = 0; goto __pyx_L1_error; __pyx_L90_exit_scope:; } /* exit inner scope */ __Pyx_XDECREF_SET(__pyx_v_matched, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1024 * key: data[key] for key in remain if pattern_field.pattern.match(key) * } * remain.difference_update(matched) # <<<<<<<<<<<<<< * try: * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_remain, __pyx_n_s_difference_update); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_matched}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1025 * } * remain.difference_update(matched) * try: # <<<<<<<<<<<<<< * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, * matched */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_8, &__pyx_t_7); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { /* "apischema/deserialization/methods.pyx":1026 * remain.difference_update(matched) * try: * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, # <<<<<<<<<<<<<< * matched * ) */ __pyx_t_3 = ((PyObject *)__pyx_v_pattern_field->method); __Pyx_INCREF(__pyx_t_3); /* "apischema/deserialization/methods.pyx":1027 * try: * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, * matched # <<<<<<<<<<<<<< * ) * except ValidationError as err: */ __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_3), __pyx_v_matched); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1026, __pyx_L91_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1026 * remain.difference_update(matched) * try: * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, # <<<<<<<<<<<<<< * matched * ) */ if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_pattern_field->name, __pyx_t_4) < 0))) __PYX_ERR(0, 1026, __pyx_L91_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1025 * } * remain.difference_update(matched) * try: # <<<<<<<<<<<<<< * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, * matched */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L98_try_end; __pyx_L91_error:; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1029 * matched * ) * except ValidationError as err: # <<<<<<<<<<<<<< * if not pattern_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) */ __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_3, &__pyx_t_10); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1029, __pyx_L93_except_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_13 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_ErrRestore(__pyx_t_4, __pyx_t_3, __pyx_t_10); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_10 = 0; if (__pyx_t_13) { __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_3, &__pyx_t_4) < 0) __PYX_ERR(0, 1029, __pyx_L93_except_error) __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_v_err = __pyx_t_3; /*try:*/ { /* "apischema/deserialization/methods.pyx":1030 * ) * except ValidationError as err: * if not pattern_field.fall_back_on_default: # <<<<<<<<<<<<<< * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( */ __pyx_t_1 = (!__pyx_v_pattern_field->fall_back_on_default); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":1031 * except ValidationError as err: * if not pattern_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) # <<<<<<<<<<<<<< * field_errors = update_children_errors( * field_errors, err.children */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_messages); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1031, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_extend_errors(__pyx_v_errors, __pyx_t_5, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1031, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_errors, __pyx_t_12); __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":1033 * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( * field_errors, err.children # <<<<<<<<<<<<<< * ) * if self.additional_field is not None: */ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_children); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1033, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_12); if (!(likely(PyDict_CheckExact(__pyx_t_12))||((__pyx_t_12) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_12))) __PYX_ERR(0, 1033, __pyx_L104_error) /* "apischema/deserialization/methods.pyx":1032 * if not pattern_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( # <<<<<<<<<<<<<< * field_errors, err.children * ) */ __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_update_children_errors(__pyx_v_field_errors, ((PyObject*)__pyx_t_12), 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1032, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1030 * ) * except ValidationError as err: * if not pattern_field.fall_back_on_default: # <<<<<<<<<<<<<< * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( */ } } /* "apischema/deserialization/methods.pyx":1029 * matched * ) * except ValidationError as err: # <<<<<<<<<<<<<< * if not pattern_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L105; } __pyx_L104_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_15); __pyx_t_13 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_31 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15); } __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18); __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_31; goto __pyx_L93_except_error; } __pyx_L105:; } __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L92_exception_handled; } goto __pyx_L93_except_error; /* "apischema/deserialization/methods.pyx":1025 * } * remain.difference_update(matched) * try: # <<<<<<<<<<<<<< * values[pattern_field.name] = DeserializationMethod_deserialize(pattern_field.method, * matched */ __pyx_L93_except_error:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7); goto __pyx_L1_error; __pyx_L92_exception_handled:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7); __pyx_L98_try_end:; } } /* "apischema/deserialization/methods.pyx":1035 * field_errors, err.children * ) * if self.additional_field is not None: # <<<<<<<<<<<<<< * additional:dict= {key: data[key] for key in remain} * try: */ __pyx_t_1 = (__pyx_v_self->additional_field != Py_None); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":1036 * ) * if self.additional_field is not None: * additional:dict= {key: data[key] for key in remain} # <<<<<<<<<<<<<< * try: * values[ */ { /* enter inner scope */ __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1036, __pyx_L114_error) __Pyx_GOTREF(__pyx_t_4); if (likely(PyList_CheckExact(__pyx_v_remain)) || PyTuple_CheckExact(__pyx_v_remain)) { __pyx_t_3 = __pyx_v_remain; __Pyx_INCREF(__pyx_t_3); __pyx_t_21 = 0; __pyx_t_30 = NULL; } else { __pyx_t_21 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_remain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1036, __pyx_L114_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_30 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_30)) __PYX_ERR(0, 1036, __pyx_L114_error) } for (;;) { if (likely(!__pyx_t_30)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1036, __pyx_L114_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_21); __Pyx_INCREF(__pyx_t_10); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1036, __pyx_L114_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1036, __pyx_L114_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1036, __pyx_L114_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_21); __Pyx_INCREF(__pyx_t_10); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1036, __pyx_L114_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1036, __pyx_L114_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_30(__pyx_t_3); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1036, __pyx_L114_error) } break; } __Pyx_GOTREF(__pyx_t_10); } __Pyx_XDECREF_SET(__pyx_8genexpr3__pyx_v_key, __pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_8genexpr3__pyx_v_key); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1036, __pyx_L114_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyDict_SetItem(__pyx_t_4, (PyObject*)__pyx_8genexpr3__pyx_v_key, (PyObject*)__pyx_t_10))) __PYX_ERR(0, 1036, __pyx_L114_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_key); __pyx_8genexpr3__pyx_v_key = 0; goto __pyx_L118_exit_scope; __pyx_L114_error:; __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_key); __pyx_8genexpr3__pyx_v_key = 0; goto __pyx_L1_error; __pyx_L118_exit_scope:; } /* exit inner scope */ __pyx_v_additional = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1037 * if self.additional_field is not None: * additional:dict= {key: data[key] for key in remain} * try: # <<<<<<<<<<<<<< * values[ * self.additional_field.name */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { /* "apischema/deserialization/methods.pyx":1040 * values[ * self.additional_field.name * ] = DeserializationMethod_deserialize(self.additional_field.method, additional) # <<<<<<<<<<<<<< * except ValidationError as err: * if not self.additional_field.fall_back_on_default: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->additional_field, __pyx_n_s_method); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1040, __pyx_L119_error) __Pyx_GOTREF(__pyx_t_4); if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 1040, __pyx_L119_error) __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_4), __pyx_v_additional); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1040, __pyx_L119_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1039 * try: * values[ * self.additional_field.name # <<<<<<<<<<<<<< * ] = DeserializationMethod_deserialize(self.additional_field.method, additional) * except ValidationError as err: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->additional_field, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1039, __pyx_L119_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_t_4, __pyx_t_3) < 0))) __PYX_ERR(0, 1038, __pyx_L119_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1037 * if self.additional_field is not None: * additional:dict= {key: data[key] for key in remain} * try: # <<<<<<<<<<<<<< * values[ * self.additional_field.name */ } __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L124_try_end; __pyx_L119_error:; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1041 * self.additional_field.name * ] = DeserializationMethod_deserialize(self.additional_field.method, additional) * except ValidationError as err: # <<<<<<<<<<<<<< * if not self.additional_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) */ __Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_4, &__pyx_t_10); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1041, __pyx_L121_except_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_3, __pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_ErrRestore(__pyx_t_3, __pyx_t_4, __pyx_t_10); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_10 = 0; if (__pyx_t_11) { __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_4, &__pyx_t_3) < 0) __PYX_ERR(0, 1041, __pyx_L121_except_error) __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_v_err = __pyx_t_4; /*try:*/ { /* "apischema/deserialization/methods.pyx":1042 * ] = DeserializationMethod_deserialize(self.additional_field.method, additional) * except ValidationError as err: * if not self.additional_field.fall_back_on_default: # <<<<<<<<<<<<<< * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->additional_field, __pyx_n_s_fall_back_on_default); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1042, __pyx_L130_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1042, __pyx_L130_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_25 = (!__pyx_t_1); if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1043 * except ValidationError as err: * if not self.additional_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) # <<<<<<<<<<<<<< * field_errors = update_children_errors( * field_errors, err.children */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_messages); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1043, __pyx_L130_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_extend_errors(__pyx_v_errors, __pyx_t_5, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1043, __pyx_L130_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_errors, __pyx_t_12); __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":1045 * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( * field_errors, err.children # <<<<<<<<<<<<<< * ) * elif remain: */ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_err, __pyx_n_s_children); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1045, __pyx_L130_error) __Pyx_GOTREF(__pyx_t_12); if (!(likely(PyDict_CheckExact(__pyx_t_12))||((__pyx_t_12) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_12))) __PYX_ERR(0, 1045, __pyx_L130_error) /* "apischema/deserialization/methods.pyx":1044 * if not self.additional_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( # <<<<<<<<<<<<<< * field_errors, err.children * ) */ __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_update_children_errors(__pyx_v_field_errors, ((PyObject*)__pyx_t_12), 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1044, __pyx_L130_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1042 * ] = DeserializationMethod_deserialize(self.additional_field.method, additional) * except ValidationError as err: * if not self.additional_field.fall_back_on_default: # <<<<<<<<<<<<<< * errors = extend_errors(errors, err.messages) * field_errors = update_children_errors( */ } } /* "apischema/deserialization/methods.pyx":1041 * self.additional_field.name * ] = DeserializationMethod_deserialize(self.additional_field.method, additional) * except ValidationError as err: # <<<<<<<<<<<<<< * if not self.additional_field.fall_back_on_default: * errors = extend_errors(errors, err.messages) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L131; } __pyx_L130_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_11 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_32 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_32; goto __pyx_L121_except_error; } __pyx_L131:; } __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L120_exception_handled; } goto __pyx_L121_except_error; /* "apischema/deserialization/methods.pyx":1037 * if self.additional_field is not None: * additional:dict= {key: data[key] for key in remain} * try: # <<<<<<<<<<<<<< * values[ * self.additional_field.name */ __pyx_L121_except_error:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); goto __pyx_L1_error; __pyx_L120_exception_handled:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); __pyx_L124_try_end:; } /* "apischema/deserialization/methods.pyx":1035 * field_errors, err.children * ) * if self.additional_field is not None: # <<<<<<<<<<<<<< * additional:dict= {key: data[key] for key in remain} * try: */ goto __pyx_L111; } /* "apischema/deserialization/methods.pyx":1047 * field_errors, err.children * ) * elif remain: # <<<<<<<<<<<<<< * if not self.additional_properties: * for key in remain: */ __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_v_remain); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1047, __pyx_L1_error) if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1048 * ) * elif remain: * if not self.additional_properties: # <<<<<<<<<<<<<< * for key in remain: * if key != discriminator: */ __pyx_t_25 = (!__pyx_v_self->additional_properties); if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1049 * elif remain: * if not self.additional_properties: * for key in remain: # <<<<<<<<<<<<<< * if key != discriminator: * field_errors = set_child_error( */ if (likely(PyList_CheckExact(__pyx_v_remain)) || PyTuple_CheckExact(__pyx_v_remain)) { __pyx_t_3 = __pyx_v_remain; __Pyx_INCREF(__pyx_t_3); __pyx_t_21 = 0; __pyx_t_30 = NULL; } else { __pyx_t_21 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_remain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_30 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_30)) __PYX_ERR(0, 1049, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_30)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1049, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_21); __Pyx_INCREF(__pyx_t_4); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1049, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1049, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_21); __Pyx_INCREF(__pyx_t_4); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1049, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_30(__pyx_t_3); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1049, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_4); } __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1050 * if not self.additional_properties: * for key in remain: * if key != discriminator: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) */ __pyx_t_4 = PyObject_RichCompare(__pyx_v_key, __pyx_v_discriminator, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1050, __pyx_L1_error) __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1052 * if key != discriminator: * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) # <<<<<<<<<<<<<< * ) * elif self.typed_dict: */ __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_10))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_self->unexpected}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } /* "apischema/deserialization/methods.pyx":1051 * for key in remain: * if key != discriminator: * field_errors = set_child_error( # <<<<<<<<<<<<<< * field_errors, key, ValidationError(self.unexpected) * ) */ __pyx_t_10 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_v_key, __pyx_t_4, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1050 * if not self.additional_properties: * for key in remain: * if key != discriminator: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) */ } /* "apischema/deserialization/methods.pyx":1049 * elif remain: * if not self.additional_properties: * for key in remain: # <<<<<<<<<<<<<< * if key != discriminator: * field_errors = set_child_error( */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1048 * ) * elif remain: * if not self.additional_properties: # <<<<<<<<<<<<<< * for key in remain: * if key != discriminator: */ goto __pyx_L137; } /* "apischema/deserialization/methods.pyx":1054 * field_errors, key, ValidationError(self.unexpected) * ) * elif self.typed_dict: # <<<<<<<<<<<<<< * for key in remain: * values[key] = data[key] */ if (__pyx_v_self->typed_dict) { /* "apischema/deserialization/methods.pyx":1055 * ) * elif self.typed_dict: * for key in remain: # <<<<<<<<<<<<<< * values[key] = data[key] * elif len(data) != fields_count: */ if (likely(PyList_CheckExact(__pyx_v_remain)) || PyTuple_CheckExact(__pyx_v_remain)) { __pyx_t_3 = __pyx_v_remain; __Pyx_INCREF(__pyx_t_3); __pyx_t_21 = 0; __pyx_t_30 = NULL; } else { __pyx_t_21 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_remain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_30 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_30)) __PYX_ERR(0, 1055, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_30)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1055, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_21); __Pyx_INCREF(__pyx_t_10); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1055, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1055, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_21); __Pyx_INCREF(__pyx_t_10); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1055, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_30(__pyx_t_3); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1055, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_10); } __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1056 * elif self.typed_dict: * for key in remain: * values[key] = data[key] # <<<<<<<<<<<<<< * elif len(data) != fields_count: * if not self.additional_properties: */ __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_key); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_key, __pyx_t_10) < 0))) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1055 * ) * elif self.typed_dict: * for key in remain: # <<<<<<<<<<<<<< * values[key] = data[key] * elif len(data) != fields_count: */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1054 * field_errors, key, ValidationError(self.unexpected) * ) * elif self.typed_dict: # <<<<<<<<<<<<<< * for key in remain: * values[key] = data[key] */ } __pyx_L137:; /* "apischema/deserialization/methods.pyx":1047 * field_errors, err.children * ) * elif remain: # <<<<<<<<<<<<<< * if not self.additional_properties: * for key in remain: */ } __pyx_L111:; /* "apischema/deserialization/methods.pyx":999 * error = ValidationError([self.missing + f" (required by {requiring})"]) * field_errors = set_child_error(field_errors, field.alias, error) * if self.aggregate_fields: # <<<<<<<<<<<<<< * remain = data.keys() - self.all_aliases * for __i in range(len(self.flattened_fields)): */ goto __pyx_L50; } /* "apischema/deserialization/methods.pyx":1057 * for key in remain: * values[key] = data[key] * elif len(data) != fields_count: # <<<<<<<<<<<<<< * if not self.additional_properties: * for key in data.keys() - self.all_aliases: */ __pyx_t_21 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_21 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1057, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_21); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = PyObject_RichCompare(__pyx_t_3, __pyx_v_fields_count, Py_NE); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1058 * values[key] = data[key] * elif len(data) != fields_count: * if not self.additional_properties: # <<<<<<<<<<<<<< * for key in data.keys() - self.all_aliases: * if key != discriminator: */ __pyx_t_25 = (!__pyx_v_self->additional_properties); if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1059 * elif len(data) != fields_count: * if not self.additional_properties: * for key in data.keys() - self.all_aliases: # <<<<<<<<<<<<<< * if key != discriminator: * field_errors = set_child_error( */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyNumber_Subtract(__pyx_t_10, __pyx_v_self->all_aliases); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_10 = __pyx_t_3; __Pyx_INCREF(__pyx_t_10); __pyx_t_21 = 0; __pyx_t_30 = NULL; } else { __pyx_t_21 = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_30 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_30)) __PYX_ERR(0, 1059, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { if (likely(!__pyx_t_30)) { if (likely(PyList_CheckExact(__pyx_t_10))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1059, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_10, __pyx_t_21); __Pyx_INCREF(__pyx_t_3); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1059, __pyx_L1_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1059, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_21); __Pyx_INCREF(__pyx_t_3); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1059, __pyx_L1_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } } else { __pyx_t_3 = __pyx_t_30(__pyx_t_10); if (unlikely(!__pyx_t_3)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1059, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_3); } __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1060 * if not self.additional_properties: * for key in data.keys() - self.all_aliases: * if key != discriminator: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) */ __pyx_t_3 = PyObject_RichCompare(__pyx_v_key, __pyx_v_discriminator, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1060, __pyx_L1_error) __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1062 * if key != discriminator: * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) # <<<<<<<<<<<<<< * ) * elif self.typed_dict: */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_self->unexpected}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } /* "apischema/deserialization/methods.pyx":1061 * for key in data.keys() - self.all_aliases: * if key != discriminator: * field_errors = set_child_error( # <<<<<<<<<<<<<< * field_errors, key, ValidationError(self.unexpected) * ) */ __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_field_errors, __pyx_v_key, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_field_errors, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1060 * if not self.additional_properties: * for key in data.keys() - self.all_aliases: * if key != discriminator: # <<<<<<<<<<<<<< * field_errors = set_child_error( * field_errors, key, ValidationError(self.unexpected) */ } /* "apischema/deserialization/methods.pyx":1059 * elif len(data) != fields_count: * if not self.additional_properties: * for key in data.keys() - self.all_aliases: # <<<<<<<<<<<<<< * if key != discriminator: * field_errors = set_child_error( */ } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1058 * values[key] = data[key] * elif len(data) != fields_count: * if not self.additional_properties: # <<<<<<<<<<<<<< * for key in data.keys() - self.all_aliases: * if key != discriminator: */ goto __pyx_L145; } /* "apischema/deserialization/methods.pyx":1064 * field_errors, key, ValidationError(self.unexpected) * ) * elif self.typed_dict: # <<<<<<<<<<<<<< * for key in data.keys() - self.all_aliases: * values[key] = data[key] */ if (__pyx_v_self->typed_dict) { /* "apischema/deserialization/methods.pyx":1065 * ) * elif self.typed_dict: * for key in data.keys() - self.all_aliases: # <<<<<<<<<<<<<< * values[key] = data[key] * if self.validators: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyNumber_Subtract(__pyx_t_10, __pyx_v_self->all_aliases); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) { __pyx_t_10 = __pyx_t_4; __Pyx_INCREF(__pyx_t_10); __pyx_t_21 = 0; __pyx_t_30 = NULL; } else { __pyx_t_21 = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_30 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_30)) __PYX_ERR(0, 1065, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; for (;;) { if (likely(!__pyx_t_30)) { if (likely(PyList_CheckExact(__pyx_t_10))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1065, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_10, __pyx_t_21); __Pyx_INCREF(__pyx_t_4); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1065, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1065, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_21); __Pyx_INCREF(__pyx_t_4); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1065, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_30(__pyx_t_10); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 1065, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_4); } __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1066 * elif self.typed_dict: * for key in data.keys() - self.all_aliases: * values[key] = data[key] # <<<<<<<<<<<<<< * if self.validators: * init = None */ __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_key, __pyx_t_4) < 0))) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1065 * ) * elif self.typed_dict: * for key in data.keys() - self.all_aliases: # <<<<<<<<<<<<<< * values[key] = data[key] * if self.validators: */ } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1064 * field_errors, key, ValidationError(self.unexpected) * ) * elif self.typed_dict: # <<<<<<<<<<<<<< * for key in data.keys() - self.all_aliases: * values[key] = data[key] */ } __pyx_L145:; /* "apischema/deserialization/methods.pyx":1057 * for key in remain: * values[key] = data[key] * elif len(data) != fields_count: # <<<<<<<<<<<<<< * if not self.additional_properties: * for key in data.keys() - self.all_aliases: */ } __pyx_L50:; /* "apischema/deserialization/methods.pyx":1067 * for key in data.keys() - self.all_aliases: * values[key] = data[key] * if self.validators: # <<<<<<<<<<<<<< * init = None * if self.init_defaults: */ __pyx_t_25 = (__pyx_v_self->validators != Py_None)&&(PyTuple_GET_SIZE(__pyx_v_self->validators) != 0); if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1068 * values[key] = data[key] * if self.validators: * init = None # <<<<<<<<<<<<<< * if self.init_defaults: * init = {} */ __Pyx_INCREF(Py_None); __pyx_v_init = ((PyObject*)Py_None); /* "apischema/deserialization/methods.pyx":1069 * if self.validators: * init = None * if self.init_defaults: # <<<<<<<<<<<<<< * init = {} * for name, default_factory in self.init_defaults: */ __pyx_t_25 = (__pyx_v_self->init_defaults != Py_None)&&(PyTuple_GET_SIZE(__pyx_v_self->init_defaults) != 0); if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1070 * init = None * if self.init_defaults: * init = {} # <<<<<<<<<<<<<< * for name, default_factory in self.init_defaults: * if name in values: */ __pyx_t_10 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF_SET(__pyx_v_init, ((PyObject*)__pyx_t_10)); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1071 * if self.init_defaults: * init = {} * for name, default_factory in self.init_defaults: # <<<<<<<<<<<<<< * if name in values: * init[name] = values[name] */ if (unlikely(__pyx_v_self->init_defaults == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 1071, __pyx_L1_error) } __pyx_t_10 = __pyx_v_self->init_defaults; __Pyx_INCREF(__pyx_t_10); __pyx_t_21 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1071, __pyx_L1_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_21); __Pyx_INCREF(__pyx_t_4); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1071, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) { PyObject* sequence = __pyx_t_4; Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); __PYX_ERR(0, 1071, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_3 = PyList_GET_ITEM(sequence, 0); __pyx_t_5 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); #else __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { Py_ssize_t index = -1; __pyx_t_12 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_33 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); index = 0; __pyx_t_3 = __pyx_t_33(__pyx_t_12); if (unlikely(!__pyx_t_3)) goto __pyx_L157_unpacking_failed; __Pyx_GOTREF(__pyx_t_3); index = 1; __pyx_t_5 = __pyx_t_33(__pyx_t_12); if (unlikely(!__pyx_t_5)) goto __pyx_L157_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); if (__Pyx_IternextUnpackEndCheck(__pyx_t_33(__pyx_t_12), 2) < 0) __PYX_ERR(0, 1071, __pyx_L1_error) __pyx_t_33 = NULL; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; goto __pyx_L158_unpacking_done; __pyx_L157_unpacking_failed:; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_33 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); __PYX_ERR(0, 1071, __pyx_L1_error) __pyx_L158_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF_SET(__pyx_v_default_factory, __pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1072 * init = {} * for name, default_factory in self.init_defaults: * if name in values: # <<<<<<<<<<<<<< * init[name] = values[name] * elif not field_errors or name not in field_errors: */ __pyx_t_25 = (__Pyx_PyDict_ContainsTF(__pyx_v_name, __pyx_v_values, Py_EQ)); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1072, __pyx_L1_error) if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1073 * for name, default_factory in self.init_defaults: * if name in values: * init[name] = values[name] # <<<<<<<<<<<<<< * elif not field_errors or name not in field_errors: * assert default_factory is not None */ __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_values, __pyx_v_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely((PyDict_SetItem(__pyx_v_init, __pyx_v_name, __pyx_t_4) < 0))) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1072 * init = {} * for name, default_factory in self.init_defaults: * if name in values: # <<<<<<<<<<<<<< * init[name] = values[name] * elif not field_errors or name not in field_errors: */ goto __pyx_L159; } /* "apischema/deserialization/methods.pyx":1074 * if name in values: * init[name] = values[name] * elif not field_errors or name not in field_errors: # <<<<<<<<<<<<<< * assert default_factory is not None * init[name] = default_factory() */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 1074, __pyx_L1_error) __pyx_t_2 = (!__pyx_t_1); if (!__pyx_t_2) { } else { __pyx_t_25 = __pyx_t_2; goto __pyx_L160_bool_binop_done; } __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_name, __pyx_v_field_errors, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1074, __pyx_L1_error) __pyx_t_25 = __pyx_t_2; __pyx_L160_bool_binop_done:; if (__pyx_t_25) { /* "apischema/deserialization/methods.pyx":1075 * init[name] = values[name] * elif not field_errors or name not in field_errors: * assert default_factory is not None # <<<<<<<<<<<<<< * init[name] = default_factory() * aliases = values.keys() */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { __pyx_t_25 = (__pyx_v_default_factory != Py_None); if (unlikely(!__pyx_t_25)) { __Pyx_Raise(__pyx_builtin_AssertionError, 0, 0, 0); __PYX_ERR(0, 1075, __pyx_L1_error) } } #else if ((1)); else __PYX_ERR(0, 1075, __pyx_L1_error) #endif /* "apischema/deserialization/methods.pyx":1076 * elif not field_errors or name not in field_errors: * assert default_factory is not None * init[name] = default_factory() # <<<<<<<<<<<<<< * aliases = values.keys() * # Don't keep validators when all dependencies are default */ __Pyx_INCREF(__pyx_v_default_factory); __pyx_t_5 = __pyx_v_default_factory; __pyx_t_3 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } if (unlikely((PyDict_SetItem(__pyx_v_init, __pyx_v_name, __pyx_t_4) < 0))) __PYX_ERR(0, 1076, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1074 * if name in values: * init[name] = values[name] * elif not field_errors or name not in field_errors: # <<<<<<<<<<<<<< * assert default_factory is not None * init[name] = default_factory() */ } __pyx_L159:; /* "apischema/deserialization/methods.pyx":1071 * if self.init_defaults: * init = {} * for name, default_factory in self.init_defaults: # <<<<<<<<<<<<<< * if name in values: * init[name] = values[name] */ } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1069 * if self.validators: * init = None * if self.init_defaults: # <<<<<<<<<<<<<< * init = {} * for name, default_factory in self.init_defaults: */ } /* "apischema/deserialization/methods.pyx":1077 * assert default_factory is not None * init[name] = default_factory() * aliases = values.keys() # <<<<<<<<<<<<<< * # Don't keep validators when all dependencies are default * validators = [ */ __pyx_t_10 = __Pyx_PyDict_Keys(__pyx_v_values); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_v_aliases = __pyx_t_10; __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1079 * aliases = values.keys() * # Don't keep validators when all dependencies are default * validators = [ # <<<<<<<<<<<<<< * v for v in self.validators if not v.dependencies.isdisjoint(aliases) * ] */ { /* enter inner scope */ __pyx_t_10 = PyList_New(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1079, __pyx_L165_error) __Pyx_GOTREF(__pyx_t_10); /* "apischema/deserialization/methods.pyx":1080 * # Don't keep validators when all dependencies are default * validators = [ * v for v in self.validators if not v.dependencies.isdisjoint(aliases) # <<<<<<<<<<<<<< * ] * if field_errors or errors: */ if (unlikely(__pyx_v_self->validators == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 1080, __pyx_L165_error) } __pyx_t_4 = __pyx_v_self->validators; __Pyx_INCREF(__pyx_t_4); __pyx_t_21 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1080, __pyx_L165_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_21); __Pyx_INCREF(__pyx_t_5); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1080, __pyx_L165_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1080, __pyx_L165_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_XDECREF_SET(__pyx_8genexpr4__pyx_v_v, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_8genexpr4__pyx_v_v, __pyx_n_s_dependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1080, __pyx_L165_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_isdisjoint); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1080, __pyx_L165_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_12))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_aliases}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1080, __pyx_L165_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1080, __pyx_L165_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = (!__pyx_t_25); if (__pyx_t_2) { if (unlikely(__Pyx_ListComp_Append(__pyx_t_10, (PyObject*)__pyx_8genexpr4__pyx_v_v))) __PYX_ERR(0, 1079, __pyx_L165_error) } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_v); __pyx_8genexpr4__pyx_v_v = 0; goto __pyx_L170_exit_scope; __pyx_L165_error:; __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_v); __pyx_8genexpr4__pyx_v_v = 0; goto __pyx_L1_error; __pyx_L170_exit_scope:; } /* exit inner scope */ __pyx_v_validators = ((PyObject*)__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1082 * v for v in self.validators if not v.dependencies.isdisjoint(aliases) * ] * if field_errors or errors: # <<<<<<<<<<<<<< * error = ValidationError(errors or [], field_errors or {}) * invalid_fields = self.post_init_modified */ __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1082, __pyx_L1_error) if (!__pyx_t_25) { } else { __pyx_t_2 = __pyx_t_25; goto __pyx_L172_bool_binop_done; } __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_v_errors); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1082, __pyx_L1_error) __pyx_t_2 = __pyx_t_25; __pyx_L172_bool_binop_done:; if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":1083 * ] * if field_errors or errors: * error = ValidationError(errors or [], field_errors or {}) # <<<<<<<<<<<<<< * invalid_fields = self.post_init_modified * if field_errors: */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_errors); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1083, __pyx_L1_error) if (!__pyx_t_2) { } else { __Pyx_INCREF(__pyx_v_errors); __pyx_t_5 = __pyx_v_errors; goto __pyx_L174_bool_binop_done; } __pyx_t_12 = PyList_New(0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_12); __pyx_t_5 = __pyx_t_12; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_L174_bool_binop_done:; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1083, __pyx_L1_error) if (!__pyx_t_2) { } else { __Pyx_INCREF(__pyx_v_field_errors); __pyx_t_12 = __pyx_v_field_errors; goto __pyx_L176_bool_binop_done; } __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_3); __pyx_t_12 = __pyx_t_3; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_L176_bool_binop_done:; __pyx_t_3 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_12}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_XDECREF_SET(__pyx_v_error, __pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1084 * if field_errors or errors: * error = ValidationError(errors or [], field_errors or {}) * invalid_fields = self.post_init_modified # <<<<<<<<<<<<<< * if field_errors: * invalid_fields = invalid_fields | field_errors.keys() */ __pyx_t_10 = __pyx_v_self->post_init_modified; __Pyx_INCREF(__pyx_t_10); __pyx_v_invalid_fields = __pyx_t_10; __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1085 * error = ValidationError(errors or [], field_errors or {}) * invalid_fields = self.post_init_modified * if field_errors: # <<<<<<<<<<<<<< * invalid_fields = invalid_fields | field_errors.keys() * try: */ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1085, __pyx_L1_error) if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":1086 * invalid_fields = self.post_init_modified * if field_errors: * invalid_fields = invalid_fields | field_errors.keys() # <<<<<<<<<<<<<< * try: * validate( */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_field_errors, __pyx_n_s_keys); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_12 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyNumber_Or(__pyx_v_invalid_fields, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF_SET(__pyx_v_invalid_fields, __pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1085 * error = ValidationError(errors or [], field_errors or {}) * invalid_fields = self.post_init_modified * if field_errors: # <<<<<<<<<<<<<< * invalid_fields = invalid_fields | field_errors.keys() * try: */ } /* "apischema/deserialization/methods.pyx":1087 * if field_errors: * invalid_fields = invalid_fields | field_errors.keys() * try: # <<<<<<<<<<<<<< * validate( * ValidatorMock(self.constructor.cls, values), */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_8, &__pyx_t_7); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { /* "apischema/deserialization/methods.pyx":1088 * invalid_fields = invalid_fields | field_errors.keys() * try: * validate( # <<<<<<<<<<<<<< * ValidatorMock(self.constructor.cls, values), * [ */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_validate); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1088, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_4); /* "apischema/deserialization/methods.pyx":1089 * try: * validate( * ValidatorMock(self.constructor.cls, values), # <<<<<<<<<<<<<< * [ * v */ __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_ValidatorMock); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1089, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_self->constructor->cls, __pyx_v_values}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1089, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } { /* enter inner scope */ /* "apischema/deserialization/methods.pyx":1090 * validate( * ValidatorMock(self.constructor.cls, values), * [ # <<<<<<<<<<<<<< * v * for v in validators */ __pyx_t_12 = PyList_New(0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1090, __pyx_L187_error) __Pyx_GOTREF(__pyx_t_12); /* "apischema/deserialization/methods.pyx":1092 * [ * v * for v in validators # <<<<<<<<<<<<<< * if v.dependencies.isdisjoint(invalid_fields) * ], */ __pyx_t_5 = __pyx_v_validators; __Pyx_INCREF(__pyx_t_5); __pyx_t_21 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1092, __pyx_L187_error) #endif if (__pyx_t_21 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_21); __Pyx_INCREF(__pyx_t_3); __pyx_t_21++; if (unlikely((0 < 0))) __PYX_ERR(0, 1092, __pyx_L187_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_21); __pyx_t_21++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1092, __pyx_L187_error) __Pyx_GOTREF(__pyx_t_3); #endif __Pyx_XDECREF_SET(__pyx_8genexpr5__pyx_v_v, __pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1093 * v * for v in validators * if v.dependencies.isdisjoint(invalid_fields) # <<<<<<<<<<<<<< * ], * init, */ __pyx_t_34 = __Pyx_PyObject_GetAttrStr(__pyx_8genexpr5__pyx_v_v, __pyx_n_s_dependencies); if (unlikely(!__pyx_t_34)) __PYX_ERR(0, 1093, __pyx_L187_error) __Pyx_GOTREF(__pyx_t_34); __pyx_t_35 = __Pyx_PyObject_GetAttrStr(__pyx_t_34, __pyx_n_s_isdisjoint); if (unlikely(!__pyx_t_35)) __PYX_ERR(0, 1093, __pyx_L187_error) __Pyx_GOTREF(__pyx_t_35); __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; __pyx_t_34 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_35))) { __pyx_t_34 = PyMethod_GET_SELF(__pyx_t_35); if (likely(__pyx_t_34)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_35); __Pyx_INCREF(__pyx_t_34); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_35, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_34, __pyx_v_invalid_fields}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_35, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1093, __pyx_L187_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_35); __pyx_t_35 = 0; } __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1093, __pyx_L187_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":1091 * ValidatorMock(self.constructor.cls, values), * [ * v # <<<<<<<<<<<<<< * for v in validators * if v.dependencies.isdisjoint(invalid_fields) */ if (unlikely(__Pyx_ListComp_Append(__pyx_t_12, (PyObject*)__pyx_8genexpr5__pyx_v_v))) __PYX_ERR(0, 1090, __pyx_L187_error) /* "apischema/deserialization/methods.pyx":1093 * v * for v in validators * if v.dependencies.isdisjoint(invalid_fields) # <<<<<<<<<<<<<< * ], * init, */ } /* "apischema/deserialization/methods.pyx":1092 * [ * v * for v in validators # <<<<<<<<<<<<<< * if v.dependencies.isdisjoint(invalid_fields) * ], */ } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_8genexpr5__pyx_v_v); __pyx_8genexpr5__pyx_v_v = 0; goto __pyx_L192_exit_scope; __pyx_L187_error:; __Pyx_XDECREF(__pyx_8genexpr5__pyx_v_v); __pyx_8genexpr5__pyx_v_v = 0; goto __pyx_L179_error; __pyx_L192_exit_scope:; } /* exit inner scope */ /* "apischema/deserialization/methods.pyx":1088 * invalid_fields = invalid_fields | field_errors.keys() * try: * validate( # <<<<<<<<<<<<<< * ValidatorMock(self.constructor.cls, values), * [ */ __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1088, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_10); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_10)) __PYX_ERR(0, 1088, __pyx_L179_error); __Pyx_GIVEREF(__pyx_t_12); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_12)) __PYX_ERR(0, 1088, __pyx_L179_error); __Pyx_INCREF(__pyx_v_init); __Pyx_GIVEREF(__pyx_v_init); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_init)) __PYX_ERR(0, 1088, __pyx_L179_error); __pyx_t_10 = 0; __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":1096 * ], * init, * aliaser=self.aliaser, # <<<<<<<<<<<<<< * ) * except ValidationError as err: */ __pyx_t_12 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1096, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_12); if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_aliaser, __pyx_v_self->aliaser) < 0) __PYX_ERR(0, 1096, __pyx_L179_error) /* "apischema/deserialization/methods.pyx":1088 * invalid_fields = invalid_fields | field_errors.keys() * try: * validate( # <<<<<<<<<<<<<< * ValidatorMock(self.constructor.cls, values), * [ */ __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1088, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1087 * if field_errors: * invalid_fields = invalid_fields | field_errors.keys() * try: # <<<<<<<<<<<<<< * validate( * ValidatorMock(self.constructor.cls, values), */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L184_try_end; __pyx_L179_error:; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; __Pyx_XDECREF(__pyx_t_35); __pyx_t_35 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1098 * aliaser=self.aliaser, * ) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * raise error */ __Pyx_ErrFetch(&__pyx_t_10, &__pyx_t_12, &__pyx_t_5); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1098, __pyx_L181_except_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_13 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_10, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_ErrRestore(__pyx_t_10, __pyx_t_12, __pyx_t_5); __pyx_t_10 = 0; __pyx_t_12 = 0; __pyx_t_5 = 0; if (__pyx_t_13) { __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_12, &__pyx_t_10) < 0) __PYX_ERR(0, 1098, __pyx_L181_except_error) __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_t_12); __pyx_v_err = __pyx_t_12; /*try:*/ { /* "apischema/deserialization/methods.pyx":1099 * ) * except ValidationError as err: * error = merge_errors(error, err) # <<<<<<<<<<<<<< * raise error * obj = Constructor_construct(self.constructor, values) */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1099, __pyx_L198_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_35 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_35 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_35)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_35); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_35, __pyx_v_error, __pyx_v_err}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_35); __pyx_t_35 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1099, __pyx_L198_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF_SET(__pyx_v_error, __pyx_t_4); __pyx_t_4 = 0; } /* "apischema/deserialization/methods.pyx":1098 * aliaser=self.aliaser, * ) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * raise error */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L199; } __pyx_L198_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; __Pyx_XDECREF(__pyx_t_35); __pyx_t_35 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_16, &__pyx_t_15); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_15); __pyx_t_13 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_36 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_16, __pyx_t_15); } __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ErrRestore(__pyx_t_20, __pyx_t_19, __pyx_t_18); __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_t_16 = 0; __pyx_t_15 = 0; __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_36; goto __pyx_L181_except_error; } __pyx_L199:; } __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L180_exception_handled; } goto __pyx_L181_except_error; /* "apischema/deserialization/methods.pyx":1087 * if field_errors: * invalid_fields = invalid_fields | field_errors.keys() * try: # <<<<<<<<<<<<<< * validate( * ValidatorMock(self.constructor.cls, values), */ __pyx_L181_except_error:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7); goto __pyx_L1_error; __pyx_L180_exception_handled:; __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7); __pyx_L184_try_end:; } /* "apischema/deserialization/methods.pyx":1100 * except ValidationError as err: * error = merge_errors(error, err) * raise error # <<<<<<<<<<<<<< * obj = Constructor_construct(self.constructor, values) * return validate(obj, validators, init, aliaser=self.aliaser) */ __Pyx_Raise(__pyx_v_error, 0, 0, 0); __PYX_ERR(0, 1100, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1082 * v for v in self.validators if not v.dependencies.isdisjoint(aliases) * ] * if field_errors or errors: # <<<<<<<<<<<<<< * error = ValidationError(errors or [], field_errors or {}) * invalid_fields = self.post_init_modified */ } /* "apischema/deserialization/methods.pyx":1101 * error = merge_errors(error, err) * raise error * obj = Constructor_construct(self.constructor, values) # <<<<<<<<<<<<<< * return validate(obj, validators, init, aliaser=self.aliaser) * elif field_errors or errors: */ __pyx_t_10 = ((PyObject *)__pyx_v_self->constructor); __Pyx_INCREF(__pyx_t_10); __pyx_t_12 = __pyx_f_9apischema_15deserialization_7methods_Constructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_10), __pyx_v_values); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_obj = __pyx_t_12; __pyx_t_12 = 0; /* "apischema/deserialization/methods.pyx":1102 * raise error * obj = Constructor_construct(self.constructor, values) * return validate(obj, validators, init, aliaser=self.aliaser) # <<<<<<<<<<<<<< * elif field_errors or errors: * raise ValidationError(errors or [], field_errors or {}) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_validate); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_v_obj); __Pyx_GIVEREF(__pyx_v_obj); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_obj)) __PYX_ERR(0, 1102, __pyx_L1_error); __Pyx_INCREF(__pyx_v_validators); __Pyx_GIVEREF(__pyx_v_validators); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_validators)) __PYX_ERR(0, 1102, __pyx_L1_error); __Pyx_INCREF(__pyx_v_init); __Pyx_GIVEREF(__pyx_v_init); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_init)) __PYX_ERR(0, 1102, __pyx_L1_error); __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_aliaser, __pyx_v_self->aliaser) < 0) __PYX_ERR(0, 1102, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_10, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1067 * for key in data.keys() - self.all_aliases: * values[key] = data[key] * if self.validators: # <<<<<<<<<<<<<< * init = None * if self.init_defaults: */ } /* "apischema/deserialization/methods.pyx":1103 * obj = Constructor_construct(self.constructor, values) * return validate(obj, validators, init, aliaser=self.aliaser) * elif field_errors or errors: # <<<<<<<<<<<<<< * raise ValidationError(errors or [], field_errors or {}) * return Constructor_construct(self.constructor, values) */ __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1103, __pyx_L1_error) if (!__pyx_t_25) { } else { __pyx_t_2 = __pyx_t_25; goto __pyx_L204_bool_binop_done; } __pyx_t_25 = __Pyx_PyObject_IsTrue(__pyx_v_errors); if (unlikely((__pyx_t_25 < 0))) __PYX_ERR(0, 1103, __pyx_L1_error) __pyx_t_2 = __pyx_t_25; __pyx_L204_bool_binop_done:; if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1104 * return validate(obj, validators, init, aliaser=self.aliaser) * elif field_errors or errors: * raise ValidationError(errors or [], field_errors or {}) # <<<<<<<<<<<<<< * return Constructor_construct(self.constructor, values) * */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_errors); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1104, __pyx_L1_error) if (!__pyx_t_2) { } else { __Pyx_INCREF(__pyx_v_errors); __pyx_t_10 = __pyx_v_errors; goto __pyx_L206_bool_binop_done; } __pyx_t_12 = PyList_New(0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_12); __pyx_t_10 = __pyx_t_12; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_L206_bool_binop_done:; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_field_errors); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1104, __pyx_L1_error) if (!__pyx_t_2) { } else { __Pyx_INCREF(__pyx_v_field_errors); __pyx_t_12 = __pyx_v_field_errors; goto __pyx_L208_bool_binop_done; } __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_3); __pyx_t_12 = __pyx_t_3; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_L208_bool_binop_done:; __pyx_t_3 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_10, __pyx_t_12}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 1104, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1103 * obj = Constructor_construct(self.constructor, values) * return validate(obj, validators, init, aliaser=self.aliaser) * elif field_errors or errors: # <<<<<<<<<<<<<< * raise ValidationError(errors or [], field_errors or {}) * return Constructor_construct(self.constructor, values) */ } /* "apischema/deserialization/methods.pyx":1105 * elif field_errors or errors: * raise ValidationError(errors or [], field_errors or {}) * return Constructor_construct(self.constructor, values) # <<<<<<<<<<<<<< * * cdef inline NoneMethod_deserialize(NoneMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = ((PyObject *)__pyx_v_self->constructor); __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_Constructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_4), __pyx_v_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":962 * return Constructor_construct(self.constructor, data) * * cdef inline ObjectMethod_deserialize(ObjectMethod self, object data): # <<<<<<<<<<<<<< * discriminator:object= None * if not isinstance(data, dict): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_34); __Pyx_XDECREF(__pyx_t_35); __Pyx_AddTraceback("apischema.deserialization.methods.ObjectMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_discriminator); __Pyx_XDECREF(__pyx_v_values); __Pyx_XDECREF(__pyx_v_fields_count); __Pyx_XDECREF(__pyx_v_errors); __Pyx_XDECREF(__pyx_v_err); __Pyx_XDECREF(__pyx_v_field_errors); __Pyx_XDECREF((PyObject *)__pyx_v_field); __Pyx_XDECREF(__pyx_v_requiring); __Pyx_XDECREF(__pyx_v_error); __Pyx_XDECREF(__pyx_v_remain); __Pyx_XDECREF((PyObject *)__pyx_v_flattened_field); __Pyx_XDECREF(__pyx_v_flattened); __Pyx_XDECREF((PyObject *)__pyx_v_pattern_field); __Pyx_XDECREF(__pyx_v_matched); __Pyx_XDECREF(__pyx_v_additional); __Pyx_XDECREF(__pyx_v_key); __Pyx_XDECREF(__pyx_v_init); __Pyx_XDECREF(__pyx_v_name); __Pyx_XDECREF(__pyx_v_default_factory); __Pyx_XDECREF(__pyx_v_aliases); __Pyx_XDECREF(__pyx_v_validators); __Pyx_XDECREF(__pyx_v_invalid_fields); __Pyx_XDECREF(__pyx_v_obj); __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_alias); __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_key); __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_key); __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_v); __Pyx_XDECREF(__pyx_8genexpr5__pyx_v_v); __Pyx_XDECREF(__pyx_v_data); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1107 * return Constructor_construct(self.constructor, values) * * cdef inline NoneMethod_deserialize(NoneMethod self, object data): # <<<<<<<<<<<<<< * if data is not None: * raise bad_type(data, NoneType) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_NoneMethod_deserialize(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("NoneMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1108 * * cdef inline NoneMethod_deserialize(NoneMethod self, object data): * if data is not None: # <<<<<<<<<<<<<< * raise bad_type(data, NoneType) * return data */ __pyx_t_1 = (__pyx_v_data != Py_None); if (unlikely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":1109 * cdef inline NoneMethod_deserialize(NoneMethod self, object data): * if data is not None: * raise bad_type(data, NoneType) # <<<<<<<<<<<<<< * return data * */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NoneType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 1109, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1108 * * cdef inline NoneMethod_deserialize(NoneMethod self, object data): * if data is not None: # <<<<<<<<<<<<<< * raise bad_type(data, NoneType) * return data */ } /* "apischema/deserialization/methods.pyx":1110 * if data is not None: * raise bad_type(data, NoneType) * return data # <<<<<<<<<<<<<< * * cdef inline IntMethod_deserialize(IntMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1107 * return Constructor_construct(self.constructor, values) * * cdef inline NoneMethod_deserialize(NoneMethod self, object data): # <<<<<<<<<<<<<< * if data is not None: * raise bad_type(data, NoneType) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.NoneMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1112 * return data * * cdef inline IntMethod_deserialize(IntMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, int) or isinstance(data, bool): * raise bad_type(data, int) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_IntMethod_deserialize(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("IntMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1113 * * cdef inline IntMethod_deserialize(IntMethod self, object data): * if not isinstance(data, int) or isinstance(data, bool): # <<<<<<<<<<<<<< * raise bad_type(data, int) * return data */ __pyx_t_2 = PyInt_Check(__pyx_v_data); __pyx_t_3 = (!__pyx_t_2); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } __pyx_t_3 = __Pyx_TypeCheck(__pyx_v_data, __pyx_ptype_7cpython_4bool_bool); __pyx_t_1 = __pyx_t_3; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":1114 * cdef inline IntMethod_deserialize(IntMethod self, object data): * if not isinstance(data, int) or isinstance(data, bool): * raise bad_type(data, int) # <<<<<<<<<<<<<< * return data * */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_v_data, ((PyObject *)(&PyInt_Type))}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 1114, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1113 * * cdef inline IntMethod_deserialize(IntMethod self, object data): * if not isinstance(data, int) or isinstance(data, bool): # <<<<<<<<<<<<<< * raise bad_type(data, int) * return data */ } /* "apischema/deserialization/methods.pyx":1115 * if not isinstance(data, int) or isinstance(data, bool): * raise bad_type(data, int) * return data # <<<<<<<<<<<<<< * * cdef inline ConstrainedIntMethod_deserialize(ConstrainedIntMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1112 * return data * * cdef inline IntMethod_deserialize(IntMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, int) or isinstance(data, bool): * raise bad_type(data, int) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("apischema.deserialization.methods.IntMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1117 * return data * * cdef inline ConstrainedIntMethod_deserialize(ConstrainedIntMethod self, object data): # <<<<<<<<<<<<<< * return validate_constraints(IntMethod_deserialize(self, data), self.constraints, None) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConstrainedIntMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ConstrainedIntMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1118 * * cdef inline ConstrainedIntMethod_deserialize(ConstrainedIntMethod self, object data): * return validate_constraints(IntMethod_deserialize(self, data), self.constraints, None) # <<<<<<<<<<<<<< * * cdef inline FloatMethod_deserialize(FloatMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_IntMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_t_1, ((PyObject*)__pyx_t_2), Py_None, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1117 * return data * * cdef inline ConstrainedIntMethod_deserialize(ConstrainedIntMethod self, object data): # <<<<<<<<<<<<<< * return validate_constraints(IntMethod_deserialize(self, data), self.constraints, None) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedIntMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1120 * return validate_constraints(IntMethod_deserialize(self, data), self.constraints, None) * * cdef inline FloatMethod_deserialize(FloatMethod self, object data): # <<<<<<<<<<<<<< * if isinstance(data, float): * return data */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_FloatMethod_deserialize(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("FloatMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1121 * * cdef inline FloatMethod_deserialize(FloatMethod self, object data): * if isinstance(data, float): # <<<<<<<<<<<<<< * return data * elif isinstance(data, int): */ __pyx_t_1 = PyFloat_Check(__pyx_v_data); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":1122 * cdef inline FloatMethod_deserialize(FloatMethod self, object data): * if isinstance(data, float): * return data # <<<<<<<<<<<<<< * elif isinstance(data, int): * return float(data) */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1121 * * cdef inline FloatMethod_deserialize(FloatMethod self, object data): * if isinstance(data, float): # <<<<<<<<<<<<<< * return data * elif isinstance(data, int): */ } /* "apischema/deserialization/methods.pyx":1123 * if isinstance(data, float): * return data * elif isinstance(data, int): # <<<<<<<<<<<<<< * return float(data) * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_data); if (likely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":1124 * return data * elif isinstance(data, int): * return float(data) # <<<<<<<<<<<<<< * else: * raise bad_type(data, float) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyNumber_Float(__pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1123 * if isinstance(data, float): * return data * elif isinstance(data, int): # <<<<<<<<<<<<<< * return float(data) * else: */ } /* "apischema/deserialization/methods.pyx":1126 * return float(data) * else: * raise bad_type(data, float) # <<<<<<<<<<<<<< * * cdef inline ConstrainedFloatMethod_deserialize(ConstrainedFloatMethod self, object data): */ /*else*/ { __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_data, ((PyObject *)(&PyFloat_Type))}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 1126, __pyx_L1_error) } /* "apischema/deserialization/methods.pyx":1120 * return validate_constraints(IntMethod_deserialize(self, data), self.constraints, None) * * cdef inline FloatMethod_deserialize(FloatMethod self, object data): # <<<<<<<<<<<<<< * if isinstance(data, float): * return data */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.FloatMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1128 * raise bad_type(data, float) * * cdef inline ConstrainedFloatMethod_deserialize(ConstrainedFloatMethod self, object data): # <<<<<<<<<<<<<< * return validate_constraints(FloatMethod_deserialize(self, data), self.constraints, None) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConstrainedFloatMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ConstrainedFloatMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1129 * * cdef inline ConstrainedFloatMethod_deserialize(ConstrainedFloatMethod self, object data): * return validate_constraints(FloatMethod_deserialize(self, data), self.constraints, None) # <<<<<<<<<<<<<< * * cdef inline StrMethod_deserialize(StrMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_FloatMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_t_1, ((PyObject*)__pyx_t_2), Py_None, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1128 * raise bad_type(data, float) * * cdef inline ConstrainedFloatMethod_deserialize(ConstrainedFloatMethod self, object data): # <<<<<<<<<<<<<< * return validate_constraints(FloatMethod_deserialize(self, data), self.constraints, None) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedFloatMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1131 * return validate_constraints(FloatMethod_deserialize(self, data), self.constraints, None) * * cdef inline StrMethod_deserialize(StrMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, str): * raise bad_type(data, str) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_StrMethod_deserialize(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("StrMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1132 * * cdef inline StrMethod_deserialize(StrMethod self, object data): * if not isinstance(data, str): # <<<<<<<<<<<<<< * raise bad_type(data, str) * return data */ __pyx_t_1 = PyUnicode_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1133 * cdef inline StrMethod_deserialize(StrMethod self, object data): * if not isinstance(data, str): * raise bad_type(data, str) # <<<<<<<<<<<<<< * return data * */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyUnicode_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1133, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1132 * * cdef inline StrMethod_deserialize(StrMethod self, object data): * if not isinstance(data, str): # <<<<<<<<<<<<<< * raise bad_type(data, str) * return data */ } /* "apischema/deserialization/methods.pyx":1134 * if not isinstance(data, str): * raise bad_type(data, str) * return data # <<<<<<<<<<<<<< * * cdef inline ConstrainedStrMethod_deserialize(ConstrainedStrMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1131 * return validate_constraints(FloatMethod_deserialize(self, data), self.constraints, None) * * cdef inline StrMethod_deserialize(StrMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, str): * raise bad_type(data, str) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.StrMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1136 * return data * * cdef inline ConstrainedStrMethod_deserialize(ConstrainedStrMethod self, object data): # <<<<<<<<<<<<<< * return validate_constraints(StrMethod_deserialize(self, data), self.constraints, None) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConstrainedStrMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ConstrainedStrMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1137 * * cdef inline ConstrainedStrMethod_deserialize(ConstrainedStrMethod self, object data): * return validate_constraints(StrMethod_deserialize(self, data), self.constraints, None) # <<<<<<<<<<<<<< * * cdef inline BoolMethod_deserialize(BoolMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_StrMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_t_1, ((PyObject*)__pyx_t_2), Py_None, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1136 * return data * * cdef inline ConstrainedStrMethod_deserialize(ConstrainedStrMethod self, object data): # <<<<<<<<<<<<<< * return validate_constraints(StrMethod_deserialize(self, data), self.constraints, None) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.ConstrainedStrMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1139 * return validate_constraints(StrMethod_deserialize(self, data), self.constraints, None) * * cdef inline BoolMethod_deserialize(BoolMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, bool): * raise bad_type(data, bool) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_BoolMethod_deserialize(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("BoolMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1140 * * cdef inline BoolMethod_deserialize(BoolMethod self, object data): * if not isinstance(data, bool): # <<<<<<<<<<<<<< * raise bad_type(data, bool) * return data */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_data, __pyx_ptype_7cpython_4bool_bool); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1141 * cdef inline BoolMethod_deserialize(BoolMethod self, object data): * if not isinstance(data, bool): * raise bad_type(data, bool) # <<<<<<<<<<<<<< * return data * */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)__pyx_ptype_7cpython_4bool_bool)}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1141, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1140 * * cdef inline BoolMethod_deserialize(BoolMethod self, object data): * if not isinstance(data, bool): # <<<<<<<<<<<<<< * raise bad_type(data, bool) * return data */ } /* "apischema/deserialization/methods.pyx":1142 * if not isinstance(data, bool): * raise bad_type(data, bool) * return data # <<<<<<<<<<<<<< * * cdef inline SubprimitiveMethod_deserialize(SubprimitiveMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1139 * return validate_constraints(StrMethod_deserialize(self, data), self.constraints, None) * * cdef inline BoolMethod_deserialize(BoolMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, bool): * raise bad_type(data, bool) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("apischema.deserialization.methods.BoolMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1144 * return data * * cdef inline SubprimitiveMethod_deserialize(SubprimitiveMethod self, object data): # <<<<<<<<<<<<<< * return self.cls(DeserializationMethod_deserialize(self.method, data)) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_SubprimitiveMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("SubprimitiveMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1145 * * cdef inline SubprimitiveMethod_deserialize(SubprimitiveMethod self, object data): * return self.cls(DeserializationMethod_deserialize(self.method, data)) # <<<<<<<<<<<<<< * * cdef inline TupleMethod_deserialize(TupleMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = ((PyObject *)__pyx_v_self->method); __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_2), __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_INCREF((PyObject *)__pyx_v_self->cls); __pyx_t_2 = ((PyObject *)__pyx_v_self->cls); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1144 * return data * * cdef inline SubprimitiveMethod_deserialize(SubprimitiveMethod self, object data): # <<<<<<<<<<<<<< * return self.cls(DeserializationMethod_deserialize(self.method, data)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.SubprimitiveMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1147 * return self.cls(DeserializationMethod_deserialize(self.method, data)) * * cdef inline TupleMethod_deserialize(TupleMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_TupleMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v_self, PyObject *__pyx_v_data) { Py_ssize_t __pyx_v_data_len; PyObject *__pyx_v_elt_errors = 0; PyObject *__pyx_v_elts = 0; Py_ssize_t __pyx_v_i; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_elt_method = 0; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; Py_ssize_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; Py_ssize_t __pyx_t_9; Py_ssize_t __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; int __pyx_t_14; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("TupleMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1148 * * cdef inline TupleMethod_deserialize(TupleMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * data_len = len(data) */ __pyx_t_1 = PyList_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1149 * cdef inline TupleMethod_deserialize(TupleMethod self, object data): * if not isinstance(data, list): * raise bad_type(data, list) # <<<<<<<<<<<<<< * data_len = len(data) * if data_len != len(self.elt_methods): */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyList_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1149, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1148 * * cdef inline TupleMethod_deserialize(TupleMethod self, object data): * if not isinstance(data, list): # <<<<<<<<<<<<<< * raise bad_type(data, list) * data_len = len(data) */ } /* "apischema/deserialization/methods.pyx":1150 * if not isinstance(data, list): * raise bad_type(data, list) * data_len = len(data) # <<<<<<<<<<<<<< * if data_len != len(self.elt_methods): * if data_len < len(self.elt_methods): */ __pyx_t_7 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1150, __pyx_L1_error) __pyx_v_data_len = __pyx_t_7; /* "apischema/deserialization/methods.pyx":1151 * raise bad_type(data, list) * data_len = len(data) * if data_len != len(self.elt_methods): # <<<<<<<<<<<<<< * if data_len < len(self.elt_methods): * raise ValidationError(format_error(self.min_len_error, data)) */ __pyx_t_3 = __pyx_v_self->elt_methods; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1151, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (__pyx_v_data_len != __pyx_t_7); if (__pyx_t_2) { /* "apischema/deserialization/methods.pyx":1152 * data_len = len(data) * if data_len != len(self.elt_methods): * if data_len < len(self.elt_methods): # <<<<<<<<<<<<<< * raise ValidationError(format_error(self.min_len_error, data)) * elif data_len > len(self.elt_methods): */ __pyx_t_3 = __pyx_v_self->elt_methods; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1152, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (__pyx_v_data_len < __pyx_t_7); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1153 * if data_len != len(self.elt_methods): * if data_len < len(self.elt_methods): * raise ValidationError(format_error(self.min_len_error, data)) # <<<<<<<<<<<<<< * elif data_len > len(self.elt_methods): * raise ValidationError(format_error(self.max_len_error, data)) */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __pyx_v_self->min_len_error; __Pyx_INCREF(__pyx_t_5); __pyx_t_8 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_t_5, __pyx_v_data, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1153, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1152 * data_len = len(data) * if data_len != len(self.elt_methods): * if data_len < len(self.elt_methods): # <<<<<<<<<<<<<< * raise ValidationError(format_error(self.min_len_error, data)) * elif data_len > len(self.elt_methods): */ } /* "apischema/deserialization/methods.pyx":1154 * if data_len < len(self.elt_methods): * raise ValidationError(format_error(self.min_len_error, data)) * elif data_len > len(self.elt_methods): # <<<<<<<<<<<<<< * raise ValidationError(format_error(self.max_len_error, data)) * else: */ __pyx_t_3 = __pyx_v_self->elt_methods; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1154, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (__pyx_v_data_len > __pyx_t_7); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1155 * raise ValidationError(format_error(self.min_len_error, data)) * elif data_len > len(self.elt_methods): * raise ValidationError(format_error(self.max_len_error, data)) # <<<<<<<<<<<<<< * else: * raise NotImplementedError */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __pyx_v_self->max_len_error; __Pyx_INCREF(__pyx_t_8); __pyx_t_5 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_t_8, __pyx_v_data, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1155, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1154 * if data_len < len(self.elt_methods): * raise ValidationError(format_error(self.min_len_error, data)) * elif data_len > len(self.elt_methods): # <<<<<<<<<<<<<< * raise ValidationError(format_error(self.max_len_error, data)) * else: */ } /* "apischema/deserialization/methods.pyx":1157 * raise ValidationError(format_error(self.max_len_error, data)) * else: * raise NotImplementedError # <<<<<<<<<<<<<< * elt_errors:object= None * elts:list= [None] * len(self.elt_methods) */ /*else*/ { __Pyx_Raise(__pyx_builtin_NotImplementedError, 0, 0, 0); __PYX_ERR(0, 1157, __pyx_L1_error) } /* "apischema/deserialization/methods.pyx":1151 * raise bad_type(data, list) * data_len = len(data) * if data_len != len(self.elt_methods): # <<<<<<<<<<<<<< * if data_len < len(self.elt_methods): * raise ValidationError(format_error(self.min_len_error, data)) */ } /* "apischema/deserialization/methods.pyx":1158 * else: * raise NotImplementedError * elt_errors:object= None # <<<<<<<<<<<<<< * elts:list= [None] * len(self.elt_methods) * for i in range(len(self.elt_methods)): */ __Pyx_INCREF(Py_None); __pyx_v_elt_errors = Py_None; /* "apischema/deserialization/methods.pyx":1159 * raise NotImplementedError * elt_errors:object= None * elts:list= [None] * len(self.elt_methods) # <<<<<<<<<<<<<< * for i in range(len(self.elt_methods)): * elt_method: DeserializationMethod = self.elt_methods[i] */ __pyx_t_3 = __pyx_v_self->elt_methods; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1159, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyList_New(1 * ((__pyx_t_7<0) ? 0:__pyx_t_7)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < __pyx_t_7; __pyx_temp++) { __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, __pyx_temp, Py_None)) __PYX_ERR(0, 1159, __pyx_L1_error); } } __pyx_v_elts = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1160 * elt_errors:object= None * elts:list= [None] * len(self.elt_methods) * for i in range(len(self.elt_methods)): # <<<<<<<<<<<<<< * elt_method: DeserializationMethod = self.elt_methods[i] * try: */ __pyx_t_3 = __pyx_v_self->elt_methods; __Pyx_INCREF(__pyx_t_3); if (unlikely(__pyx_t_3 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1160, __pyx_L1_error) } __pyx_t_7 = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1160, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_9 = __pyx_t_7; for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; /* "apischema/deserialization/methods.pyx":1161 * elts:list= [None] * len(self.elt_methods) * for i in range(len(self.elt_methods)): * elt_method: DeserializationMethod = self.elt_methods[i] # <<<<<<<<<<<<<< * try: * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) */ if (unlikely(__pyx_v_self->elt_methods == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1161, __pyx_L1_error) } __pyx_t_3 = __Pyx_GetItemInt_Tuple(__pyx_v_self->elt_methods, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 1161, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_elt_method, ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_3)); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1162 * for i in range(len(self.elt_methods)): * elt_method: DeserializationMethod = self.elt_methods[i] * try: # <<<<<<<<<<<<<< * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { /* "apischema/deserialization/methods.pyx":1163 * elt_method: DeserializationMethod = self.elt_methods[i] * try: * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) # <<<<<<<<<<<<<< * except ValidationError as err: * set_child_error(elt_errors, i, err) */ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_data, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1163, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(__pyx_v_elt_method, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1163, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely((__Pyx_SetItemInt(__pyx_v_elts, __pyx_v_i, __pyx_t_4, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0))) __PYX_ERR(0, 1163, __pyx_L8_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1162 * for i in range(len(self.elt_methods)): * elt_method: DeserializationMethod = self.elt_methods[i] * try: # <<<<<<<<<<<<<< * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L15_try_end; __pyx_L8_error:; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; /* "apischema/deserialization/methods.pyx":1164 * try: * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) * except ValidationError as err: # <<<<<<<<<<<<<< * set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_3, &__pyx_t_5); __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1164, __pyx_L10_except_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_14 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_ErrRestore(__pyx_t_4, __pyx_t_3, __pyx_t_5); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_5 = 0; if (__pyx_t_14) { __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_3, &__pyx_t_4) < 0) __PYX_ERR(0, 1164, __pyx_L10_except_error) __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_v_err = __pyx_t_3; /*try:*/ { /* "apischema/deserialization/methods.pyx":1165 * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) * except ValidationError as err: * set_child_error(elt_errors, i, err) # <<<<<<<<<<<<<< * validate_constraints(data, self.constraints, elt_errors) * return tuple(elts) */ __pyx_t_8 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1165, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_15 = __pyx_f_9apischema_15deserialization_7methods_set_child_error(__pyx_v_elt_errors, __pyx_t_8, __pyx_v_err, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1165, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; } /* "apischema/deserialization/methods.pyx":1164 * try: * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) * except ValidationError as err: # <<<<<<<<<<<<<< * set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L22; } __pyx_L21_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_14 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L10_except_error; } __pyx_L22:; } __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L9_exception_handled; } goto __pyx_L10_except_error; /* "apischema/deserialization/methods.pyx":1162 * for i in range(len(self.elt_methods)): * elt_method: DeserializationMethod = self.elt_methods[i] * try: # <<<<<<<<<<<<<< * elts[i] = DeserializationMethod_deserialize(elt_method, data[i]) * except ValidationError as err: */ __pyx_L10_except_error:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); goto __pyx_L1_error; __pyx_L9_exception_handled:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); __pyx_L15_try_end:; } } /* "apischema/deserialization/methods.pyx":1166 * except ValidationError as err: * set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) # <<<<<<<<<<<<<< * return tuple(elts) * */ __pyx_t_4 = __pyx_v_self->constraints; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_validate_constraints(__pyx_v_data, ((PyObject*)__pyx_t_4), __pyx_v_elt_errors, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1167 * set_child_error(elt_errors, i, err) * validate_constraints(data, self.constraints, elt_errors) * return tuple(elts) # <<<<<<<<<<<<<< * * cdef inline OptionalMethod_deserialize(OptionalMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = PyList_AsTuple(__pyx_v_elts); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1147 * return self.cls(DeserializationMethod_deserialize(self.method, data)) * * cdef inline TupleMethod_deserialize(TupleMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, list): * raise bad_type(data, list) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_15); __Pyx_AddTraceback("apischema.deserialization.methods.TupleMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_elt_errors); __Pyx_XDECREF(__pyx_v_elts); __Pyx_XDECREF((PyObject *)__pyx_v_elt_method); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1169 * return tuple(elts) * * cdef inline OptionalMethod_deserialize(OptionalMethod self, object data): # <<<<<<<<<<<<<< * if data is None: * return None */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_OptionalMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; int __pyx_t_17; char const *__pyx_t_18; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; PyObject *__pyx_t_24 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("OptionalMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1170 * * cdef inline OptionalMethod_deserialize(OptionalMethod self, object data): * if data is None: # <<<<<<<<<<<<<< * return None * try: */ __pyx_t_1 = (__pyx_v_data == Py_None); if (__pyx_t_1) { /* "apischema/deserialization/methods.pyx":1171 * cdef inline OptionalMethod_deserialize(OptionalMethod self, object data): * if data is None: * return None # <<<<<<<<<<<<<< * try: * return DeserializationMethod_deserialize(self.value_method, data) */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1170 * * cdef inline OptionalMethod_deserialize(OptionalMethod self, object data): * if data is None: # <<<<<<<<<<<<<< * return None * try: */ } /* "apischema/deserialization/methods.pyx":1172 * if data is None: * return None * try: # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { /* "apischema/deserialization/methods.pyx":1173 * return None * try: * return DeserializationMethod_deserialize(self.value_method, data) # <<<<<<<<<<<<<< * except ValidationError as err: * if self.coercer is not None and self.coercer(NoneType, data) is None: */ __Pyx_XDECREF(__pyx_r); __pyx_t_5 = ((PyObject *)__pyx_v_self->value_method); __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5), __pyx_v_data); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1173, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L8_try_return; /* "apischema/deserialization/methods.pyx":1172 * if data is None: * return None * try: # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: */ } __pyx_L4_error:; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "apischema/deserialization/methods.pyx":1174 * try: * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: # <<<<<<<<<<<<<< * if self.coercer is not None and self.coercer(NoneType, data) is None: * return None */ __Pyx_ErrFetch(&__pyx_t_6, &__pyx_t_5, &__pyx_t_7); __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1174, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_6, __pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_ErrRestore(__pyx_t_6, __pyx_t_5, __pyx_t_7); __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_7 = 0; if (__pyx_t_9) { __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 1174, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_v_err = __pyx_t_5; /*try:*/ { /* "apischema/deserialization/methods.pyx":1175 * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: * if self.coercer is not None and self.coercer(NoneType, data) is None: # <<<<<<<<<<<<<< * return None * else: */ __pyx_t_10 = (__pyx_v_self->coercer != Py_None); if (__pyx_t_10) { } else { __pyx_t_1 = __pyx_t_10; goto __pyx_L18_bool_binop_done; } __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_NoneType); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1175, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_v_self->coercer); __pyx_t_12 = __pyx_v_self->coercer; __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_12))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_t_11, __pyx_v_data}; __pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1175, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __pyx_t_10 = (__pyx_t_8 == Py_None); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_1 = __pyx_t_10; __pyx_L18_bool_binop_done:; if (likely(__pyx_t_1)) { /* "apischema/deserialization/methods.pyx":1176 * except ValidationError as err: * if self.coercer is not None and self.coercer(NoneType, data) is None: * return None # <<<<<<<<<<<<<< * else: * raise merge_errors(err, bad_type(data, NoneType)) */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_return; /* "apischema/deserialization/methods.pyx":1175 * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: * if self.coercer is not None and self.coercer(NoneType, data) is None: # <<<<<<<<<<<<<< * return None * else: */ } /* "apischema/deserialization/methods.pyx":1178 * return None * else: * raise merge_errors(err, bad_type(data, NoneType)) # <<<<<<<<<<<<<< * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): */ /*else*/ { __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1178, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1178, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_NoneType); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1178, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_16 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_13))) { __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13); if (likely(__pyx_t_16)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13); __Pyx_INCREF(__pyx_t_16); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_13, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_16, __pyx_v_data, __pyx_t_15}; __pyx_t_11 = __Pyx_PyObject_FastCall(__pyx_t_13, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1178, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; } __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_err, __pyx_t_11}; __pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1178, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __PYX_ERR(0, 1178, __pyx_L15_error) } } /* "apischema/deserialization/methods.pyx":1174 * try: * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: # <<<<<<<<<<<<<< * if self.coercer is not None and self.coercer(NoneType, data) is None: * return None */ /*finally:*/ { __pyx_L15_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __Pyx_XGOTREF(__pyx_t_24); __pyx_t_9 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_XGIVEREF(__pyx_t_24); __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24); } __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21); __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18; goto __pyx_L6_except_error; } __pyx_L14_return: { __pyx_t_24 = __pyx_r; __pyx_r = 0; __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; __pyx_r = __pyx_t_24; __pyx_t_24 = 0; goto __pyx_L7_except_return; } } } goto __pyx_L6_except_error; /* "apischema/deserialization/methods.pyx":1172 * if data is None: * return None * try: # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(self.value_method, data) * except ValidationError as err: */ __pyx_L6_except_error:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L1_error; __pyx_L8_try_return:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L0; __pyx_L7_except_return:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":1169 * return tuple(elts) * * cdef inline OptionalMethod_deserialize(OptionalMethod self, object data): # <<<<<<<<<<<<<< * if data is None: * return None */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_15); __Pyx_XDECREF(__pyx_t_16); __Pyx_AddTraceback("apischema.deserialization.methods.OptionalMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "apischema/deserialization/methods.pyx":1187 * raise bad_type(data, *self.method_by_cls) from None * except ValidationError as err: * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) # <<<<<<<<<<<<<< * raise merge_errors(err, bad_type(data, *other_classes)) * */ static PyObject *__pyx_pf_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_genexpr(PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("genexpr", 0); __pyx_cur_scope = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *)__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr(__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 1187, __pyx_L1_error) } else { __Pyx_GOTREF((PyObject *)__pyx_cur_scope); } __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *) __pyx_self; __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope); __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope); __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0); { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_2generator, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_UnionByTypeMethod_deserialize_lo, __pyx_n_s_apischema_deserialization_method); if (unlikely(!gen)) __PYX_ERR(0, 1187, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod_deserialize.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF((PyObject *)__pyx_cur_scope); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *__pyx_cur_scope = ((struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("genexpr", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L7_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1187, __pyx_L1_error) __pyx_t_2 = 0; if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1187, __pyx_L1_error) } if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 1187, __pyx_L1_error) } __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 1, ((PyObject *)NULL), (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_5; __pyx_t_5 = 0; while (1) { __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4); if (unlikely(__pyx_t_6 == 0)) break; if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_cls); __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_cls, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_data)) { __Pyx_RaiseClosureNameError("data"); __PYX_ERR(0, 1187, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), __pyx_cur_scope->__pyx_outer_scope->__pyx_v_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = (__pyx_cur_scope->__pyx_v_cls != __pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { __Pyx_INCREF(__pyx_cur_scope->__pyx_v_cls); __pyx_r = __pyx_cur_scope->__pyx_v_cls; __Pyx_XGIVEREF(__pyx_t_1); __pyx_cur_scope->__pyx_t_0 = __pyx_t_1; __pyx_cur_scope->__pyx_t_1 = __pyx_t_2; __pyx_cur_scope->__pyx_t_2 = __pyx_t_3; __pyx_cur_scope->__pyx_t_3 = __pyx_t_4; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L7_resume_from_yield:; __pyx_t_1 = __pyx_cur_scope->__pyx_t_0; __pyx_cur_scope->__pyx_t_0 = 0; __Pyx_XGOTREF(__pyx_t_1); __pyx_t_2 = __pyx_cur_scope->__pyx_t_1; __pyx_t_3 = __pyx_cur_scope->__pyx_t_2; __pyx_t_4 = __pyx_cur_scope->__pyx_t_3; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1187, __pyx_L1_error) } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1180 * raise merge_errors(err, bad_type(data, NoneType)) * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): # <<<<<<<<<<<<<< * try: * method:DeserializationMethod= self.method_by_cls[type(data)] */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v_self, PyObject *__pyx_v_data) { struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *__pyx_cur_scope; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_method = 0; PyObject *__pyx_v_err = NULL; PyObject *__pyx_v_other_classes = NULL; PyObject *__pyx_gb_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_2generator = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_t_15; char const *__pyx_t_16; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("UnionByTypeMethod_deserialize", 0); __pyx_cur_scope = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *)__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 1180, __pyx_L1_error) } else { __Pyx_GOTREF((PyObject *)__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_data = __pyx_v_data; __Pyx_INCREF(__pyx_cur_scope->__pyx_v_data); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_data); /* "apischema/deserialization/methods.pyx":1181 * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): * try: # <<<<<<<<<<<<<< * method:DeserializationMethod= self.method_by_cls[type(data)] * return DeserializationMethod_deserialize(method, data) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "apischema/deserialization/methods.pyx":1182 * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): * try: * method:DeserializationMethod= self.method_by_cls[type(data)] # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(method, data) * except KeyError: */ if (unlikely(__pyx_v_self->method_by_cls == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1182, __pyx_L3_error) } __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7cpython_4type_type), __pyx_cur_scope->__pyx_v_data); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1182, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_self->method_by_cls, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1182, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 1182, __pyx_L3_error) __pyx_v_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1183 * try: * method:DeserializationMethod= self.method_by_cls[type(data)] * return DeserializationMethod_deserialize(method, data) # <<<<<<<<<<<<<< * except KeyError: * raise bad_type(data, *self.method_by_cls) from None */ __Pyx_XDECREF(__pyx_r); __pyx_t_5 = __pyx_cur_scope->__pyx_v_data; __Pyx_INCREF(__pyx_t_5); __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(__pyx_v_method, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1183, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L7_try_return; /* "apischema/deserialization/methods.pyx":1181 * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): * try: # <<<<<<<<<<<<<< * method:DeserializationMethod= self.method_by_cls[type(data)] * return DeserializationMethod_deserialize(method, data) */ } __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "apischema/deserialization/methods.pyx":1184 * method:DeserializationMethod= self.method_by_cls[type(data)] * return DeserializationMethod_deserialize(method, data) * except KeyError: # <<<<<<<<<<<<<< * raise bad_type(data, *self.method_by_cls) from None * except ValidationError as err: */ __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_6) { __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_7) < 0) __PYX_ERR(0, 1184, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_7); /* "apischema/deserialization/methods.pyx":1185 * return DeserializationMethod_deserialize(method, data) * except KeyError: * raise bad_type(data, *self.method_by_cls) from None # <<<<<<<<<<<<<< * except ValidationError as err: * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1185, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1185, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_cur_scope->__pyx_v_data); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_cur_scope->__pyx_v_data)) __PYX_ERR(0, 1185, __pyx_L5_except_error); __pyx_t_10 = PySequence_Tuple(__pyx_v_self->method_by_cls); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1185, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = PyNumber_Add(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1185, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1185, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_Raise(__pyx_t_10, 0, 0, Py_None); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __PYX_ERR(0, 1185, __pyx_L5_except_error) } /* "apischema/deserialization/methods.pyx":1186 * except KeyError: * raise bad_type(data, *self.method_by_cls) from None * except ValidationError as err: # <<<<<<<<<<<<<< * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) * raise merge_errors(err, bad_type(data, *other_classes)) */ __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_5, &__pyx_t_4); __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1186, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_6 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_7, __pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_ErrRestore(__pyx_t_7, __pyx_t_5, __pyx_t_4); __pyx_t_7 = 0; __pyx_t_5 = 0; __pyx_t_4 = 0; if (__pyx_t_6) { __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_7) < 0) __PYX_ERR(0, 1186, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_v_err = __pyx_t_5; /*try:*/ { /* "apischema/deserialization/methods.pyx":1187 * raise bad_type(data, *self.method_by_cls) from None * except ValidationError as err: * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) # <<<<<<<<<<<<<< * raise merge_errors(err, bad_type(data, *other_classes)) * */ __pyx_t_10 = __pyx_pf_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_genexpr(((PyObject*)__pyx_cur_scope), __pyx_v_self->method_by_cls); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1187, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_10); __pyx_v_other_classes = __pyx_t_10; __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1188 * except ValidationError as err: * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) * raise merge_errors(err, bad_type(data, *other_classes)) # <<<<<<<<<<<<<< * * cdef inline UnionMethod_deserialize(UnionMethod self, object data): */ __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_cur_scope->__pyx_v_data); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_cur_scope->__pyx_v_data)) __PYX_ERR(0, 1188, __pyx_L16_error); __pyx_t_12 = __Pyx_PySequence_Tuple(__pyx_v_other_classes); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_13 = PyNumber_Add(__pyx_t_9, __pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_13, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_11))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_11); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_11, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_err, __pyx_t_12}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_11, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1188, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __PYX_ERR(0, 1188, __pyx_L16_error) } /* "apischema/deserialization/methods.pyx":1186 * except KeyError: * raise bad_type(data, *self.method_by_cls) from None * except ValidationError as err: # <<<<<<<<<<<<<< * other_classes = (cls for cls in self.method_by_cls if cls is not type(data)) * raise merge_errors(err, bad_type(data, *other_classes)) */ /*finally:*/ { __pyx_L16_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __pyx_t_6 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22); } __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19); __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16; goto __pyx_L5_except_error; } } } goto __pyx_L5_except_error; /* "apischema/deserialization/methods.pyx":1181 * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): * try: # <<<<<<<<<<<<<< * method:DeserializationMethod= self.method_by_cls[type(data)] * return DeserializationMethod_deserialize(method, data) */ __pyx_L5_except_error:; __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":1180 * raise merge_errors(err, bad_type(data, NoneType)) * * cdef inline UnionByTypeMethod_deserialize(UnionByTypeMethod self, object data): # <<<<<<<<<<<<<< * try: * method:DeserializationMethod= self.method_by_cls[type(data)] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("apischema.deserialization.methods.UnionByTypeMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_method); __Pyx_XDECREF(__pyx_v_err); __Pyx_XDECREF(__pyx_v_other_classes); __Pyx_XDECREF(__pyx_gb_9apischema_15deserialization_7methods_29UnionByTypeMethod_deserialize_2generator); __Pyx_DECREF((PyObject *)__pyx_cur_scope); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1190 * raise merge_errors(err, bad_type(data, *other_classes)) * * cdef inline UnionMethod_deserialize(UnionMethod self, object data): # <<<<<<<<<<<<<< * error = None * for i in range(len(self.alt_methods)): */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_UnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_error = NULL; Py_ssize_t __pyx_v_i; struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_alt_method = 0; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_3; Py_ssize_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_t_11; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_t_15; char const *__pyx_t_16; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; int __pyx_t_23; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("UnionMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1191 * * cdef inline UnionMethod_deserialize(UnionMethod self, object data): * error = None # <<<<<<<<<<<<<< * for i in range(len(self.alt_methods)): * alt_method: DeserializationMethod = self.alt_methods[i] */ __Pyx_INCREF(Py_None); __pyx_v_error = Py_None; /* "apischema/deserialization/methods.pyx":1192 * cdef inline UnionMethod_deserialize(UnionMethod self, object data): * error = None * for i in range(len(self.alt_methods)): # <<<<<<<<<<<<<< * alt_method: DeserializationMethod = self.alt_methods[i] * try: */ __pyx_t_1 = __pyx_v_self->alt_methods; __Pyx_INCREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1192, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; /* "apischema/deserialization/methods.pyx":1193 * error = None * for i in range(len(self.alt_methods)): * alt_method: DeserializationMethod = self.alt_methods[i] # <<<<<<<<<<<<<< * try: * return DeserializationMethod_deserialize(alt_method, data) */ if (unlikely(__pyx_v_self->alt_methods == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1193, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_self->alt_methods, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 1193, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_alt_method, ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1)); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1194 * for i in range(len(self.alt_methods)): * alt_method: DeserializationMethod = self.alt_methods[i] * try: # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(alt_method, data) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { /* "apischema/deserialization/methods.pyx":1195 * alt_method: DeserializationMethod = self.alt_methods[i] * try: * return DeserializationMethod_deserialize(alt_method, data) # <<<<<<<<<<<<<< * except ValidationError as err: * error = merge_errors(error, err) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(__pyx_v_alt_method, __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1195, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L9_try_return; /* "apischema/deserialization/methods.pyx":1194 * for i in range(len(self.alt_methods)): * alt_method: DeserializationMethod = self.alt_methods[i] * try: # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(alt_method, data) * except ValidationError as err: */ } __pyx_L5_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1196 * try: * return DeserializationMethod_deserialize(alt_method, data) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * assert error is not None */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_8, &__pyx_t_9); __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1196, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_ErrRestore(__pyx_t_1, __pyx_t_8, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; if (__pyx_t_11) { __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_8, &__pyx_t_1) < 0) __PYX_ERR(0, 1196, __pyx_L7_except_error) __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_8); __pyx_v_err = __pyx_t_8; /*try:*/ { /* "apischema/deserialization/methods.pyx":1197 * return DeserializationMethod_deserialize(alt_method, data) * except ValidationError as err: * error = merge_errors(error, err) # <<<<<<<<<<<<<< * assert error is not None * raise error */ __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1197, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_error, __pyx_v_err}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1197, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF_SET(__pyx_v_error, __pyx_t_10); __pyx_t_10 = 0; } /* "apischema/deserialization/methods.pyx":1196 * try: * return DeserializationMethod_deserialize(alt_method, data) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * assert error is not None */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L19; } __pyx_L18_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __pyx_t_11 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22); } __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19); __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16; goto __pyx_L7_except_error; } __pyx_L19:; } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L6_exception_handled; } goto __pyx_L7_except_error; /* "apischema/deserialization/methods.pyx":1194 * for i in range(len(self.alt_methods)): * alt_method: DeserializationMethod = self.alt_methods[i] * try: # <<<<<<<<<<<<<< * return DeserializationMethod_deserialize(alt_method, data) * except ValidationError as err: */ __pyx_L7_except_error:; __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7); goto __pyx_L1_error; __pyx_L9_try_return:; __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7); goto __pyx_L0; __pyx_L6_exception_handled:; __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7); } } /* "apischema/deserialization/methods.pyx":1198 * except ValidationError as err: * error = merge_errors(error, err) * assert error is not None # <<<<<<<<<<<<<< * raise error * */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { __pyx_t_23 = (__pyx_v_error != Py_None); if (unlikely(!__pyx_t_23)) { __Pyx_Raise(__pyx_builtin_AssertionError, 0, 0, 0); __PYX_ERR(0, 1198, __pyx_L1_error) } } #else if ((1)); else __PYX_ERR(0, 1198, __pyx_L1_error) #endif /* "apischema/deserialization/methods.pyx":1199 * error = merge_errors(error, err) * assert error is not None * raise error # <<<<<<<<<<<<<< * * cdef inline ConversionMethod_deserialize(ConversionMethod self, object data): */ __Pyx_Raise(__pyx_v_error, 0, 0, 0); __PYX_ERR(0, 1199, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1190 * raise merge_errors(err, bad_type(data, *other_classes)) * * cdef inline UnionMethod_deserialize(UnionMethod self, object data): # <<<<<<<<<<<<<< * error = None * for i in range(len(self.alt_methods)): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("apischema.deserialization.methods.UnionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_error); __Pyx_XDECREF((PyObject *)__pyx_v_alt_method); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1201 * raise error * * cdef inline ConversionMethod_deserialize(ConversionMethod self, object data): # <<<<<<<<<<<<<< * return self.converter(DeserializationMethod_deserialize(self.method, data)) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConversionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ConversionMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1202 * * cdef inline ConversionMethod_deserialize(ConversionMethod self, object data): * return self.converter(DeserializationMethod_deserialize(self.method, data)) # <<<<<<<<<<<<<< * * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = ((PyObject *)__pyx_v_self->method); __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_2), __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_INCREF(__pyx_v_self->converter); __pyx_t_2 = __pyx_v_self->converter; __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1201 * raise error * * cdef inline ConversionMethod_deserialize(ConversionMethod self, object data): # <<<<<<<<<<<<<< * return self.converter(DeserializationMethod_deserialize(self.method, data)) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1204 * return self.converter(DeserializationMethod_deserialize(self.method, data)) * * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): # <<<<<<<<<<<<<< * value = DeserializationMethod_deserialize(self.method, data) * try: */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_value = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; int __pyx_t_13; char const *__pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ConversionWithValueErrorMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1205 * * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): * value = DeserializationMethod_deserialize(self.method, data) # <<<<<<<<<<<<<< * try: * return self.converter(value) */ __pyx_t_1 = ((PyObject *)__pyx_v_self->__pyx_base.method); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_value = __pyx_t_2; __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":1206 * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): * value = DeserializationMethod_deserialize(self.method, data) * try: # <<<<<<<<<<<<<< * return self.converter(value) * except ValueError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "apischema/deserialization/methods.pyx":1207 * value = DeserializationMethod_deserialize(self.method, data) * try: * return self.converter(value) # <<<<<<<<<<<<<< * except ValueError as err: * raise ValidationError(str(err)) */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->__pyx_base.converter); __pyx_t_1 = __pyx_v_self->__pyx_base.converter; __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_value}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1207, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L7_try_return; /* "apischema/deserialization/methods.pyx":1206 * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): * value = DeserializationMethod_deserialize(self.method, data) * try: # <<<<<<<<<<<<<< * return self.converter(value) * except ValueError as err: */ } __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "apischema/deserialization/methods.pyx":1208 * try: * return self.converter(value) * except ValueError as err: # <<<<<<<<<<<<<< * raise ValidationError(str(err)) * */ __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_8) { __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_6) < 0) __PYX_ERR(0, 1208, __pyx_L5_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_v_err = __pyx_t_1; /*try:*/ { /* "apischema/deserialization/methods.pyx":1209 * return self.converter(value) * except ValueError as err: * raise ValidationError(str(err)) # <<<<<<<<<<<<<< * * cdef inline ConversionUnionMethod_deserialize(ConversionUnionMethod self, object data): */ __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1209, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_v_err); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1209, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_12 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_10))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_11}; __pyx_t_9 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1209, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __PYX_ERR(0, 1209, __pyx_L14_error) } /* "apischema/deserialization/methods.pyx":1208 * try: * return self.converter(value) * except ValueError as err: # <<<<<<<<<<<<<< * raise ValidationError(str(err)) * */ /*finally:*/ { __pyx_L14_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_8 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; goto __pyx_L5_except_error; } } } goto __pyx_L5_except_error; /* "apischema/deserialization/methods.pyx":1206 * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): * value = DeserializationMethod_deserialize(self.method, data) * try: # <<<<<<<<<<<<<< * return self.converter(value) * except ValueError as err: */ __pyx_L5_except_error:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":1204 * return self.converter(DeserializationMethod_deserialize(self.method, data)) * * cdef inline ConversionWithValueErrorMethod_deserialize(ConversionWithValueErrorMethod self, object data): # <<<<<<<<<<<<<< * value = DeserializationMethod_deserialize(self.method, data) * try: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionWithValueErrorMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_value); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1211 * raise ValidationError(str(err)) * * cdef inline ConversionUnionMethod_deserialize(ConversionUnionMethod self, object data): # <<<<<<<<<<<<<< * error = None * for __i in range(len(self.alternatives)): */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_ConversionUnionMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_error = NULL; Py_ssize_t __pyx_v___i; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v_alternative = 0; PyObject *__pyx_v_value = NULL; PyObject *__pyx_v_err = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_3; Py_ssize_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_t_11; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_t_15; char const *__pyx_t_16; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; char const *__pyx_t_23; int __pyx_t_24; PyObject *__pyx_t_25 = NULL; PyObject *__pyx_t_26 = NULL; PyObject *__pyx_t_27 = NULL; char const *__pyx_t_28; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ConversionUnionMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1212 * * cdef inline ConversionUnionMethod_deserialize(ConversionUnionMethod self, object data): * error = None # <<<<<<<<<<<<<< * for __i in range(len(self.alternatives)): * alternative: ConversionAlternative = self.alternatives[__i] */ __Pyx_INCREF(Py_None); __pyx_v_error = Py_None; /* "apischema/deserialization/methods.pyx":1213 * cdef inline ConversionUnionMethod_deserialize(ConversionUnionMethod self, object data): * error = None * for __i in range(len(self.alternatives)): # <<<<<<<<<<<<<< * alternative: ConversionAlternative = self.alternatives[__i] * try: */ __pyx_t_1 = __pyx_v_self->alternatives; __Pyx_INCREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1213, __pyx_L1_error) } __pyx_t_2 = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __pyx_t_2; for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v___i = __pyx_t_4; /* "apischema/deserialization/methods.pyx":1214 * error = None * for __i in range(len(self.alternatives)): * alternative: ConversionAlternative = self.alternatives[__i] # <<<<<<<<<<<<<< * try: * value = DeserializationMethod_deserialize(alternative.method, data) */ if (unlikely(__pyx_v_self->alternatives == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1214, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_self->alternatives, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative))))) __PYX_ERR(0, 1214, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_alternative, ((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_t_1)); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1215 * for __i in range(len(self.alternatives)): * alternative: ConversionAlternative = self.alternatives[__i] * try: # <<<<<<<<<<<<<< * value = DeserializationMethod_deserialize(alternative.method, data) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { /* "apischema/deserialization/methods.pyx":1216 * alternative: ConversionAlternative = self.alternatives[__i] * try: * value = DeserializationMethod_deserialize(alternative.method, data) # <<<<<<<<<<<<<< * except ValidationError as err: * error = merge_errors(error, err) */ __pyx_t_1 = ((PyObject *)__pyx_v_alternative->method); __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1), __pyx_v_data); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1216, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_8); __pyx_t_8 = 0; /* "apischema/deserialization/methods.pyx":1215 * for __i in range(len(self.alternatives)): * alternative: ConversionAlternative = self.alternatives[__i] * try: # <<<<<<<<<<<<<< * value = DeserializationMethod_deserialize(alternative.method, data) * except ValidationError as err: */ } __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L12_try_end; __pyx_L5_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; /* "apischema/deserialization/methods.pyx":1217 * try: * value = DeserializationMethod_deserialize(alternative.method, data) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * continue */ __Pyx_ErrFetch(&__pyx_t_8, &__pyx_t_1, &__pyx_t_9); __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1217, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_8, __pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_ErrRestore(__pyx_t_8, __pyx_t_1, __pyx_t_9); __pyx_t_8 = 0; __pyx_t_1 = 0; __pyx_t_9 = 0; if (__pyx_t_11) { __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_1, &__pyx_t_8) < 0) __PYX_ERR(0, 1217, __pyx_L7_except_error) __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_v_err = __pyx_t_1; /*try:*/ { /* "apischema/deserialization/methods.pyx":1218 * value = DeserializationMethod_deserialize(alternative.method, data) * except ValidationError as err: * error = merge_errors(error, err) # <<<<<<<<<<<<<< * continue * try: */ __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1218, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_error, __pyx_v_err}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1218, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF_SET(__pyx_v_error, __pyx_t_10); __pyx_t_10 = 0; /* "apischema/deserialization/methods.pyx":1219 * except ValidationError as err: * error = merge_errors(error, err) * continue # <<<<<<<<<<<<<< * try: * return alternative.converter(value) */ goto __pyx_L15_continue; } /* "apischema/deserialization/methods.pyx":1217 * try: * value = DeserializationMethod_deserialize(alternative.method, data) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * continue */ /*finally:*/ { __pyx_L18_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __pyx_t_11 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22); } __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19); __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16; goto __pyx_L7_except_error; } __pyx_L15_continue: { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L13_except_continue; } } __pyx_L13_except_continue:; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L11_try_continue; } goto __pyx_L7_except_error; /* "apischema/deserialization/methods.pyx":1215 * for __i in range(len(self.alternatives)): * alternative: ConversionAlternative = self.alternatives[__i] * try: # <<<<<<<<<<<<<< * value = DeserializationMethod_deserialize(alternative.method, data) * except ValidationError as err: */ __pyx_L7_except_error:; __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7); goto __pyx_L1_error; __pyx_L11_try_continue:; __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7); goto __pyx_L3_continue; __pyx_L12_try_end:; } /* "apischema/deserialization/methods.pyx":1220 * error = merge_errors(error, err) * continue * try: # <<<<<<<<<<<<<< * return alternative.converter(value) * except ValidationError as err: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_6, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "apischema/deserialization/methods.pyx":1221 * continue * try: * return alternative.converter(value) # <<<<<<<<<<<<<< * except ValidationError as err: * error = merge_errors(error, err) */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_alternative->converter); __pyx_t_1 = __pyx_v_alternative->converter; __pyx_t_9 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_value}; __pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1221, __pyx_L24_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L28_try_return; /* "apischema/deserialization/methods.pyx":1220 * error = merge_errors(error, err) * continue * try: # <<<<<<<<<<<<<< * return alternative.converter(value) * except ValidationError as err: */ } __pyx_L24_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; /* "apischema/deserialization/methods.pyx":1222 * try: * return alternative.converter(value) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * except ValueError as err: */ __Pyx_ErrFetch(&__pyx_t_8, &__pyx_t_1, &__pyx_t_9); __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1222, __pyx_L26_except_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_15 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_8, __pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_ErrRestore(__pyx_t_8, __pyx_t_1, __pyx_t_9); __pyx_t_8 = 0; __pyx_t_1 = 0; __pyx_t_9 = 0; if (__pyx_t_15) { __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_1, &__pyx_t_8) < 0) __PYX_ERR(0, 1222, __pyx_L26_except_error) __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_v_err = __pyx_t_1; /*try:*/ { /* "apischema/deserialization/methods.pyx":1223 * return alternative.converter(value) * except ValidationError as err: * error = merge_errors(error, err) # <<<<<<<<<<<<<< * except ValueError as err: * if not alternative.value_error: */ __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1223, __pyx_L37_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_error, __pyx_v_err}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1223, __pyx_L37_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF_SET(__pyx_v_error, __pyx_t_10); __pyx_t_10 = 0; } /* "apischema/deserialization/methods.pyx":1222 * try: * return alternative.converter(value) * except ValidationError as err: # <<<<<<<<<<<<<< * error = merge_errors(error, err) * except ValueError as err: */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L38; } __pyx_L37_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_22 = 0; __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_19, &__pyx_t_18, &__pyx_t_17); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_22, &__pyx_t_21, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_22, &__pyx_t_21, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_17); __pyx_t_15 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_23 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ExceptionReset(__pyx_t_19, __pyx_t_18, __pyx_t_17); } __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_22, __pyx_t_21, __pyx_t_20); __pyx_t_22 = 0; __pyx_t_21 = 0; __pyx_t_20 = 0; __pyx_t_19 = 0; __pyx_t_18 = 0; __pyx_t_17 = 0; __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_23; goto __pyx_L26_except_error; } __pyx_L38:; } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L25_exception_handled; } /* "apischema/deserialization/methods.pyx":1224 * except ValidationError as err: * error = merge_errors(error, err) * except ValueError as err: # <<<<<<<<<<<<<< * if not alternative.value_error: * raise */ __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_11) { __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_1, &__pyx_t_9) < 0) __PYX_ERR(0, 1224, __pyx_L26_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_v_err = __pyx_t_1; /*try:*/ { /* "apischema/deserialization/methods.pyx":1225 * error = merge_errors(error, err) * except ValueError as err: * if not alternative.value_error: # <<<<<<<<<<<<<< * raise * error = merge_errors(error, ValidationError(str(err))) */ __pyx_t_24 = (!__pyx_v_alternative->value_error); if (unlikely(__pyx_t_24)) { /* "apischema/deserialization/methods.pyx":1226 * except ValueError as err: * if not alternative.value_error: * raise # <<<<<<<<<<<<<< * error = merge_errors(error, ValidationError(str(err))) * assert error is not None */ __Pyx_GIVEREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ErrRestoreWithState(__pyx_t_8, __pyx_t_1, __pyx_t_9); __pyx_t_8 = 0; __pyx_t_1 = 0; __pyx_t_9 = 0; __PYX_ERR(0, 1226, __pyx_L48_error) /* "apischema/deserialization/methods.pyx":1225 * error = merge_errors(error, err) * except ValueError as err: * if not alternative.value_error: # <<<<<<<<<<<<<< * raise * error = merge_errors(error, ValidationError(str(err))) */ } /* "apischema/deserialization/methods.pyx":1227 * if not alternative.value_error: * raise * error = merge_errors(error, ValidationError(str(err))) # <<<<<<<<<<<<<< * assert error is not None * raise error */ __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1227, __pyx_L48_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GetModuleGlobalName(__pyx_t_25, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 1227, __pyx_L48_error) __Pyx_GOTREF(__pyx_t_25); __pyx_t_26 = __Pyx_PyObject_Unicode(__pyx_v_err); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 1227, __pyx_L48_error) __Pyx_GOTREF(__pyx_t_26); __pyx_t_27 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_25))) { __pyx_t_27 = PyMethod_GET_SELF(__pyx_t_25); if (likely(__pyx_t_27)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_25); __Pyx_INCREF(__pyx_t_27); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_25, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_27, __pyx_t_26}; __pyx_t_13 = __Pyx_PyObject_FastCall(__pyx_t_25, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_27); __pyx_t_27 = 0; __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0; if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1227, __pyx_L48_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; } __pyx_t_25 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_25 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_25)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_25); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_25, __pyx_v_error, __pyx_t_13}; __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_14, 2+__pyx_t_14); __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1227, __pyx_L48_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF_SET(__pyx_v_error, __pyx_t_10); __pyx_t_10 = 0; } /* "apischema/deserialization/methods.pyx":1224 * except ValidationError as err: * error = merge_errors(error, err) * except ValueError as err: # <<<<<<<<<<<<<< * if not alternative.value_error: * raise */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; goto __pyx_L49; } __pyx_L48_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_XDECREF(__pyx_t_26); __pyx_t_26 = 0; __Pyx_XDECREF(__pyx_t_27); __pyx_t_27 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __pyx_t_11 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_28 = __pyx_filename; { __Pyx_DECREF(__pyx_v_err); __pyx_v_err = 0; } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22); } __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19); __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_28; goto __pyx_L26_except_error; } __pyx_L49:; } __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L25_exception_handled; } goto __pyx_L26_except_error; /* "apischema/deserialization/methods.pyx":1220 * error = merge_errors(error, err) * continue * try: # <<<<<<<<<<<<<< * return alternative.converter(value) * except ValidationError as err: */ __pyx_L26_except_error:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_6, __pyx_t_5); goto __pyx_L1_error; __pyx_L28_try_return:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_6, __pyx_t_5); goto __pyx_L0; __pyx_L25_exception_handled:; __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_6, __pyx_t_5); } __pyx_L3_continue:; } /* "apischema/deserialization/methods.pyx":1228 * raise * error = merge_errors(error, ValidationError(str(err))) * assert error is not None # <<<<<<<<<<<<<< * raise error * */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { __pyx_t_24 = (__pyx_v_error != Py_None); if (unlikely(!__pyx_t_24)) { __Pyx_Raise(__pyx_builtin_AssertionError, 0, 0, 0); __PYX_ERR(0, 1228, __pyx_L1_error) } } #else if ((1)); else __PYX_ERR(0, 1228, __pyx_L1_error) #endif /* "apischema/deserialization/methods.pyx":1229 * error = merge_errors(error, ValidationError(str(err))) * assert error is not None * raise error # <<<<<<<<<<<<<< * * cdef inline DiscriminatorMethod_deserialize(DiscriminatorMethod self, object data): */ __Pyx_Raise(__pyx_v_error, 0, 0, 0); __PYX_ERR(0, 1229, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1211 * raise ValidationError(str(err)) * * cdef inline ConversionUnionMethod_deserialize(ConversionUnionMethod self, object data): # <<<<<<<<<<<<<< * error = None * for __i in range(len(self.alternatives)): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_25); __Pyx_XDECREF(__pyx_t_26); __Pyx_XDECREF(__pyx_t_27); __Pyx_AddTraceback("apischema.deserialization.methods.ConversionUnionMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_error); __Pyx_XDECREF((PyObject *)__pyx_v_alternative); __Pyx_XDECREF(__pyx_v_value); __Pyx_XDECREF(__pyx_v_err); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1231 * raise error * * cdef inline DiscriminatorMethod_deserialize(DiscriminatorMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_DiscriminatorMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v_self, PyObject *__pyx_v_data) { struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_method = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; int __pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("DiscriminatorMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1232 * * cdef inline DiscriminatorMethod_deserialize(DiscriminatorMethod self, object data): * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * if self.alias not in data: */ __pyx_t_1 = PyDict_Check(__pyx_v_data); __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1233 * cdef inline DiscriminatorMethod_deserialize(DiscriminatorMethod self, object data): * if not isinstance(data, dict): * raise bad_type(data, dict) # <<<<<<<<<<<<<< * if self.alias not in data: * raise ValidationError([], {self.alias: ValidationError(self.missing)}) */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_data, ((PyObject *)(&PyDict_Type))}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1233, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1232 * * cdef inline DiscriminatorMethod_deserialize(DiscriminatorMethod self, object data): * if not isinstance(data, dict): # <<<<<<<<<<<<<< * raise bad_type(data, dict) * if self.alias not in data: */ } /* "apischema/deserialization/methods.pyx":1234 * if not isinstance(data, dict): * raise bad_type(data, dict) * if self.alias not in data: # <<<<<<<<<<<<<< * raise ValidationError([], {self.alias: ValidationError(self.missing)}) * try: */ __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_self->alias, __pyx_v_data, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 1234, __pyx_L1_error) if (unlikely(__pyx_t_2)) { /* "apischema/deserialization/methods.pyx":1235 * raise bad_type(data, dict) * if self.alias not in data: * raise ValidationError([], {self.alias: ValidationError(self.missing)}) # <<<<<<<<<<<<<< * try: * method:DeserializationMethod= self.mapping[data[self.alias]] */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_self->missing}; __pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } if (PyDict_SetItem(__pyx_t_7, __pyx_v_self->alias, __pyx_t_8) < 0) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_t_5, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 1235, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":1234 * if not isinstance(data, dict): * raise bad_type(data, dict) * if self.alias not in data: # <<<<<<<<<<<<<< * raise ValidationError([], {self.alias: ValidationError(self.missing)}) * try: */ } /* "apischema/deserialization/methods.pyx":1236 * if self.alias not in data: * raise ValidationError([], {self.alias: ValidationError(self.missing)}) * try: # <<<<<<<<<<<<<< * method:DeserializationMethod= self.mapping[data[self.alias]] * except (TypeError, KeyError): */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { /* "apischema/deserialization/methods.pyx":1237 * raise ValidationError([], {self.alias: ValidationError(self.missing)}) * try: * method:DeserializationMethod= self.mapping[data[self.alias]] # <<<<<<<<<<<<<< * except (TypeError, KeyError): * raise ValidationError( */ if (unlikely(__pyx_v_self->mapping == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1237, __pyx_L5_error) } __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_v_data, __pyx_v_self->alias); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1237, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_self->mapping, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1237, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(0, 1237, __pyx_L5_error) __pyx_v_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_4); __pyx_t_4 = 0; /* "apischema/deserialization/methods.pyx":1236 * if self.alias not in data: * raise ValidationError([], {self.alias: ValidationError(self.missing)}) * try: # <<<<<<<<<<<<<< * method:DeserializationMethod= self.mapping[data[self.alias]] * except (TypeError, KeyError): */ } /* "apischema/deserialization/methods.pyx":1248 * ) * else: * return DeserializationMethod_deserialize(method, Discriminated(self.alias, data)) # <<<<<<<<<<<<<< * * cdef inline NoConstructor_construct(NoConstructor self, dict fields): */ /*else:*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1248, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_self->alias); __Pyx_GIVEREF(__pyx_v_self->alias); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->alias)) __PYX_ERR(0, 1248, __pyx_L7_except_error); __Pyx_INCREF(__pyx_v_data); __Pyx_GIVEREF(__pyx_v_data); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_data)) __PYX_ERR(0, 1248, __pyx_L7_except_error); __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Discriminated), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1248, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(__pyx_v_method, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1248, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L8_except_return; } __pyx_L5_error:; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; /* "apischema/deserialization/methods.pyx":1238 * try: * method:DeserializationMethod= self.mapping[data[self.alias]] * except (TypeError, KeyError): # <<<<<<<<<<<<<< * raise ValidationError( * [], */ __pyx_t_14 = __Pyx_PyErr_ExceptionMatches2(__pyx_builtin_TypeError, __pyx_builtin_KeyError); if (__pyx_t_14) { __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_7) < 0) __PYX_ERR(0, 1238, __pyx_L7_except_error) __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_7); /* "apischema/deserialization/methods.pyx":1239 * method:DeserializationMethod= self.mapping[data[self.alias]] * except (TypeError, KeyError): * raise ValidationError( # <<<<<<<<<<<<<< * [], * { */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1239, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_8); /* "apischema/deserialization/methods.pyx":1240 * except (TypeError, KeyError): * raise ValidationError( * [], # <<<<<<<<<<<<<< * { * self.alias: ValidationError( */ __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1240, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_9); /* "apischema/deserialization/methods.pyx":1242 * [], * { * self.alias: ValidationError( # <<<<<<<<<<<<<< * format_error(self.error, data[self.alias]) * ) */ __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1242, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 1242, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_16); /* "apischema/deserialization/methods.pyx":1243 * { * self.alias: ValidationError( * format_error(self.error, data[self.alias]) # <<<<<<<<<<<<<< * ) * }, */ __pyx_t_17 = __pyx_v_self->error; __Pyx_INCREF(__pyx_t_17); __pyx_t_18 = __Pyx_PyObject_Dict_GetItem(__pyx_v_data, __pyx_v_self->alias); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1243, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_19 = __pyx_f_9apischema_15deserialization_7methods_format_error(__pyx_t_17, __pyx_t_18, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1243, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_19); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; __pyx_t_18 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_16))) { __pyx_t_18 = PyMethod_GET_SELF(__pyx_t_16); if (likely(__pyx_t_18)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_16); __Pyx_INCREF(__pyx_t_18); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_16, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_18, __pyx_t_19}; __pyx_t_15 = __Pyx_PyObject_FastCall(__pyx_t_16, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0; __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1242, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; } if (PyDict_SetItem(__pyx_t_10, __pyx_v_self->alias, __pyx_t_15) < 0) __PYX_ERR(0, 1242, __pyx_L7_except_error) __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_8))) { __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_15)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_15); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[3] = {__pyx_t_15, __pyx_t_9, __pyx_t_10}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_6, 2+__pyx_t_6); __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1239, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 1239, __pyx_L7_except_error) } goto __pyx_L7_except_error; /* "apischema/deserialization/methods.pyx":1236 * if self.alias not in data: * raise ValidationError([], {self.alias: ValidationError(self.missing)}) * try: # <<<<<<<<<<<<<< * method:DeserializationMethod= self.mapping[data[self.alias]] * except (TypeError, KeyError): */ __pyx_L7_except_error:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); goto __pyx_L1_error; __pyx_L8_except_return:; __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); goto __pyx_L0; } /* "apischema/deserialization/methods.pyx":1231 * raise error * * cdef inline DiscriminatorMethod_deserialize(DiscriminatorMethod self, object data): # <<<<<<<<<<<<<< * if not isinstance(data, dict): * raise bad_type(data, dict) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_15); __Pyx_XDECREF(__pyx_t_16); __Pyx_XDECREF(__pyx_t_17); __Pyx_XDECREF(__pyx_t_18); __Pyx_XDECREF(__pyx_t_19); __Pyx_AddTraceback("apischema.deserialization.methods.DiscriminatorMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_method); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1250 * return DeserializationMethod_deserialize(method, Discriminated(self.alias, data)) * * cdef inline NoConstructor_construct(NoConstructor self, dict fields): # <<<<<<<<<<<<<< * return fields * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_NoConstructor_construct(CYTHON_UNUSED struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("NoConstructor_construct", 1); /* "apischema/deserialization/methods.pyx":1251 * * cdef inline NoConstructor_construct(NoConstructor self, dict fields): * return fields # <<<<<<<<<<<<<< * * cdef inline RawConstructor_construct(RawConstructor self, dict fields): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_fields); __pyx_r = __pyx_v_fields; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1250 * return DeserializationMethod_deserialize(method, Discriminated(self.alias, data)) * * cdef inline NoConstructor_construct(NoConstructor self, dict fields): # <<<<<<<<<<<<<< * return fields * */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1253 * return fields * * cdef inline RawConstructor_construct(RawConstructor self, dict fields): # <<<<<<<<<<<<<< * return PyObject_Call(self.cls, (), fields) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_RawConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("RawConstructor_construct", 1); /* "apischema/deserialization/methods.pyx":1254 * * cdef inline RawConstructor_construct(RawConstructor self, dict fields): * return PyObject_Call(self.cls, (), fields) # <<<<<<<<<<<<<< * * cdef inline RawConstructorCopy_construct(RawConstructorCopy self, dict fields): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_v_self->__pyx_base.cls; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_v_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1253 * return fields * * cdef inline RawConstructor_construct(RawConstructor self, dict fields): # <<<<<<<<<<<<<< * return PyObject_Call(self.cls, (), fields) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructor_construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1256 * return PyObject_Call(self.cls, (), fields) * * cdef inline RawConstructorCopy_construct(RawConstructorCopy self, dict fields): # <<<<<<<<<<<<<< * return self.cls(**fields) * */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_RawConstructorCopy_construct(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("RawConstructorCopy_construct", 1); /* "apischema/deserialization/methods.pyx":1257 * * cdef inline RawConstructorCopy_construct(RawConstructorCopy self, dict fields): * return self.cls(**fields) # <<<<<<<<<<<<<< * * cdef inline FieldsConstructor_construct(FieldsConstructor self, object fields): */ __Pyx_XDECREF(__pyx_r); if (unlikely(__pyx_v_fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType"); __PYX_ERR(0, 1257, __pyx_L1_error) } __pyx_t_1 = PyDict_Copy(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_self->__pyx_base.cls, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1256 * return PyObject_Call(self.cls, (), fields) * * cdef inline RawConstructorCopy_construct(RawConstructorCopy self, dict fields): # <<<<<<<<<<<<<< * return self.cls(**fields) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.RawConstructorCopy_construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1259 * return self.cls(**fields) * * cdef inline FieldsConstructor_construct(FieldsConstructor self, object fields): # <<<<<<<<<<<<<< * obj = object.__new__(self.cls) * obj_dict:dict= obj.__dict__ */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_FieldsConstructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v_self, PyObject *__pyx_v_fields) { PyObject *__pyx_v_obj = NULL; PyObject *__pyx_v_obj_dict = 0; Py_ssize_t __pyx_v___i; struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v_default_field = 0; struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v_factory_field = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("FieldsConstructor_construct", 1); /* "apischema/deserialization/methods.pyx":1260 * * cdef inline FieldsConstructor_construct(FieldsConstructor self, object fields): * obj = object.__new__(self.cls) # <<<<<<<<<<<<<< * obj_dict:dict= obj.__dict__ * obj_dict.update(fields) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_object, __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_self->__pyx_base.cls}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_v_obj = __pyx_t_1; __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1261 * cdef inline FieldsConstructor_construct(FieldsConstructor self, object fields): * obj = object.__new__(self.cls) * obj_dict:dict= obj.__dict__ # <<<<<<<<<<<<<< * obj_dict.update(fields) * if len(fields) != self.nb_fields: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_n_s_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(0, 1261, __pyx_L1_error) __pyx_v_obj_dict = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1262 * obj = object.__new__(self.cls) * obj_dict:dict= obj.__dict__ * obj_dict.update(fields) # <<<<<<<<<<<<<< * if len(fields) != self.nb_fields: * for __i in range(len(self.default_fields)): */ __pyx_t_1 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyDict_Type_update, __pyx_v_obj_dict, __pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1263 * obj_dict:dict= obj.__dict__ * obj_dict.update(fields) * if len(fields) != self.nb_fields: # <<<<<<<<<<<<<< * for __i in range(len(self.default_fields)): * default_field: DefaultField = self.default_fields[__i] */ __pyx_t_5 = PyObject_Length(__pyx_v_fields); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1263, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 != __pyx_v_self->nb_fields); if (__pyx_t_6) { /* "apischema/deserialization/methods.pyx":1264 * obj_dict.update(fields) * if len(fields) != self.nb_fields: * for __i in range(len(self.default_fields)): # <<<<<<<<<<<<<< * default_field: DefaultField = self.default_fields[__i] * if default_field.name not in obj_dict: */ __pyx_t_1 = __pyx_v_self->default_fields; __Pyx_INCREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1264, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1264, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __pyx_t_5; for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v___i = __pyx_t_8; /* "apischema/deserialization/methods.pyx":1265 * if len(fields) != self.nb_fields: * for __i in range(len(self.default_fields)): * default_field: DefaultField = self.default_fields[__i] # <<<<<<<<<<<<<< * if default_field.name not in obj_dict: * obj_dict[default_field.name] = default_field.default_value */ if (unlikely(__pyx_v_self->default_fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1265, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_self->default_fields, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DefaultField))))) __PYX_ERR(0, 1265, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_default_field, ((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_t_1)); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1266 * for __i in range(len(self.default_fields)): * default_field: DefaultField = self.default_fields[__i] * if default_field.name not in obj_dict: # <<<<<<<<<<<<<< * obj_dict[default_field.name] = default_field.default_value * for __i in range(len(self.factory_fields)): */ if (unlikely(__pyx_v_obj_dict == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 1266, __pyx_L1_error) } __pyx_t_6 = (__Pyx_PyDict_ContainsTF(__pyx_v_default_field->name, __pyx_v_obj_dict, Py_NE)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1266, __pyx_L1_error) if (__pyx_t_6) { /* "apischema/deserialization/methods.pyx":1267 * default_field: DefaultField = self.default_fields[__i] * if default_field.name not in obj_dict: * obj_dict[default_field.name] = default_field.default_value # <<<<<<<<<<<<<< * for __i in range(len(self.factory_fields)): * factory_field: FactoryField = self.factory_fields[__i] */ __pyx_t_1 = __pyx_v_default_field->default_value; __Pyx_INCREF(__pyx_t_1); if (unlikely(__pyx_v_obj_dict == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1267, __pyx_L1_error) } if (unlikely((PyDict_SetItem(__pyx_v_obj_dict, __pyx_v_default_field->name, __pyx_t_1) < 0))) __PYX_ERR(0, 1267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1266 * for __i in range(len(self.default_fields)): * default_field: DefaultField = self.default_fields[__i] * if default_field.name not in obj_dict: # <<<<<<<<<<<<<< * obj_dict[default_field.name] = default_field.default_value * for __i in range(len(self.factory_fields)): */ } } /* "apischema/deserialization/methods.pyx":1268 * if default_field.name not in obj_dict: * obj_dict[default_field.name] = default_field.default_value * for __i in range(len(self.factory_fields)): # <<<<<<<<<<<<<< * factory_field: FactoryField = self.factory_fields[__i] * if factory_field.name not in obj_dict: */ __pyx_t_1 = __pyx_v_self->factory_fields; __Pyx_INCREF(__pyx_t_1); if (unlikely(__pyx_t_1 == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 1268, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1268, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __pyx_t_5; for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v___i = __pyx_t_8; /* "apischema/deserialization/methods.pyx":1269 * obj_dict[default_field.name] = default_field.default_value * for __i in range(len(self.factory_fields)): * factory_field: FactoryField = self.factory_fields[__i] # <<<<<<<<<<<<<< * if factory_field.name not in obj_dict: * obj_dict[factory_field.name] = factory_field.factory() */ if (unlikely(__pyx_v_self->factory_fields == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1269, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_self->factory_fields, __pyx_v___i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_FactoryField))))) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_factory_field, ((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_t_1)); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1270 * for __i in range(len(self.factory_fields)): * factory_field: FactoryField = self.factory_fields[__i] * if factory_field.name not in obj_dict: # <<<<<<<<<<<<<< * obj_dict[factory_field.name] = factory_field.factory() * return obj */ if (unlikely(__pyx_v_obj_dict == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); __PYX_ERR(0, 1270, __pyx_L1_error) } __pyx_t_6 = (__Pyx_PyDict_ContainsTF(__pyx_v_factory_field->name, __pyx_v_obj_dict, Py_NE)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1270, __pyx_L1_error) if (__pyx_t_6) { /* "apischema/deserialization/methods.pyx":1271 * factory_field: FactoryField = self.factory_fields[__i] * if factory_field.name not in obj_dict: * obj_dict[factory_field.name] = factory_field.factory() # <<<<<<<<<<<<<< * return obj * */ __Pyx_INCREF(__pyx_v_factory_field->factory); __pyx_t_2 = __pyx_v_factory_field->factory; __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } if (unlikely(__pyx_v_obj_dict == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 1271, __pyx_L1_error) } if (unlikely((PyDict_SetItem(__pyx_v_obj_dict, __pyx_v_factory_field->name, __pyx_t_1) < 0))) __PYX_ERR(0, 1271, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "apischema/deserialization/methods.pyx":1270 * for __i in range(len(self.factory_fields)): * factory_field: FactoryField = self.factory_fields[__i] * if factory_field.name not in obj_dict: # <<<<<<<<<<<<<< * obj_dict[factory_field.name] = factory_field.factory() * return obj */ } } /* "apischema/deserialization/methods.pyx":1263 * obj_dict:dict= obj.__dict__ * obj_dict.update(fields) * if len(fields) != self.nb_fields: # <<<<<<<<<<<<<< * for __i in range(len(self.default_fields)): * default_field: DefaultField = self.default_fields[__i] */ } /* "apischema/deserialization/methods.pyx":1272 * if factory_field.name not in obj_dict: * obj_dict[factory_field.name] = factory_field.factory() * return obj # <<<<<<<<<<<<<< * * cdef inline Constraint_validate(Constraint self, object data): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_obj); __pyx_r = __pyx_v_obj; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1259 * return self.cls(**fields) * * cdef inline FieldsConstructor_construct(FieldsConstructor self, object fields): # <<<<<<<<<<<<<< * obj = object.__new__(self.cls) * obj_dict:dict= obj.__dict__ */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("apischema.deserialization.methods.FieldsConstructor_construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_obj); __Pyx_XDECREF(__pyx_v_obj_dict); __Pyx_XDECREF((PyObject *)__pyx_v_default_field); __Pyx_XDECREF((PyObject *)__pyx_v_factory_field); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1274 * return obj * * cdef inline Constraint_validate(Constraint self, object data): # <<<<<<<<<<<<<< * cdef int _dispatch = self._dispatch * if _dispatch == 0: */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_Constraint_validate(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v_self, PyObject *__pyx_v_data) { int __pyx_v__dispatch; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("Constraint_validate", 1); /* "apischema/deserialization/methods.pyx":1275 * * cdef inline Constraint_validate(Constraint self, object data): * cdef int _dispatch = self._dispatch # <<<<<<<<<<<<<< * if _dispatch == 0: * return MinimumConstraint_validate(self, data) */ __pyx_t_1 = __pyx_v_self->_dispatch; __pyx_v__dispatch = __pyx_t_1; /* "apischema/deserialization/methods.pyx":1276 * cdef inline Constraint_validate(Constraint self, object data): * cdef int _dispatch = self._dispatch * if _dispatch == 0: # <<<<<<<<<<<<<< * return MinimumConstraint_validate(self, data) * elif _dispatch == 1: */ switch (__pyx_v__dispatch) { case 0: /* "apischema/deserialization/methods.pyx":1277 * cdef int _dispatch = self._dispatch * if _dispatch == 0: * return MinimumConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 1: * return MaximumConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MinimumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1276 * cdef inline Constraint_validate(Constraint self, object data): * cdef int _dispatch = self._dispatch * if _dispatch == 0: # <<<<<<<<<<<<<< * return MinimumConstraint_validate(self, data) * elif _dispatch == 1: */ break; case 1: /* "apischema/deserialization/methods.pyx":1279 * return MinimumConstraint_validate(self, data) * elif _dispatch == 1: * return MaximumConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 2: * return ExclusiveMinimumConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MaximumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1278 * if _dispatch == 0: * return MinimumConstraint_validate(self, data) * elif _dispatch == 1: # <<<<<<<<<<<<<< * return MaximumConstraint_validate(self, data) * elif _dispatch == 2: */ break; case 2: /* "apischema/deserialization/methods.pyx":1281 * return MaximumConstraint_validate(self, data) * elif _dispatch == 2: * return ExclusiveMinimumConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 3: * return ExclusiveMaximumConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1280 * elif _dispatch == 1: * return MaximumConstraint_validate(self, data) * elif _dispatch == 2: # <<<<<<<<<<<<<< * return ExclusiveMinimumConstraint_validate(self, data) * elif _dispatch == 3: */ break; case 3: /* "apischema/deserialization/methods.pyx":1283 * return ExclusiveMinimumConstraint_validate(self, data) * elif _dispatch == 3: * return ExclusiveMaximumConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 4: * return MultipleOfConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1282 * elif _dispatch == 2: * return ExclusiveMinimumConstraint_validate(self, data) * elif _dispatch == 3: # <<<<<<<<<<<<<< * return ExclusiveMaximumConstraint_validate(self, data) * elif _dispatch == 4: */ break; case 4: /* "apischema/deserialization/methods.pyx":1285 * return ExclusiveMaximumConstraint_validate(self, data) * elif _dispatch == 4: * return MultipleOfConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 5: * return MinLengthConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MultipleOfConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1284 * elif _dispatch == 3: * return ExclusiveMaximumConstraint_validate(self, data) * elif _dispatch == 4: # <<<<<<<<<<<<<< * return MultipleOfConstraint_validate(self, data) * elif _dispatch == 5: */ break; case 5: /* "apischema/deserialization/methods.pyx":1287 * return MultipleOfConstraint_validate(self, data) * elif _dispatch == 5: * return MinLengthConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 6: * return MaxLengthConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MinLengthConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1286 * elif _dispatch == 4: * return MultipleOfConstraint_validate(self, data) * elif _dispatch == 5: # <<<<<<<<<<<<<< * return MinLengthConstraint_validate(self, data) * elif _dispatch == 6: */ break; case 6: /* "apischema/deserialization/methods.pyx":1289 * return MinLengthConstraint_validate(self, data) * elif _dispatch == 6: * return MaxLengthConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 7: * return PatternConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MaxLengthConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1288 * elif _dispatch == 5: * return MinLengthConstraint_validate(self, data) * elif _dispatch == 6: # <<<<<<<<<<<<<< * return MaxLengthConstraint_validate(self, data) * elif _dispatch == 7: */ break; case 7: /* "apischema/deserialization/methods.pyx":1291 * return MaxLengthConstraint_validate(self, data) * elif _dispatch == 7: * return PatternConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 8: * return MinItemsConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_PatternConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1290 * elif _dispatch == 6: * return MaxLengthConstraint_validate(self, data) * elif _dispatch == 7: # <<<<<<<<<<<<<< * return PatternConstraint_validate(self, data) * elif _dispatch == 8: */ break; case 8: /* "apischema/deserialization/methods.pyx":1293 * return PatternConstraint_validate(self, data) * elif _dispatch == 8: * return MinItemsConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 9: * return MaxItemsConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MinItemsConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1292 * elif _dispatch == 7: * return PatternConstraint_validate(self, data) * elif _dispatch == 8: # <<<<<<<<<<<<<< * return MinItemsConstraint_validate(self, data) * elif _dispatch == 9: */ break; case 9: /* "apischema/deserialization/methods.pyx":1295 * return MinItemsConstraint_validate(self, data) * elif _dispatch == 9: * return MaxItemsConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 10: * return UniqueItemsConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MaxItemsConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1294 * elif _dispatch == 8: * return MinItemsConstraint_validate(self, data) * elif _dispatch == 9: # <<<<<<<<<<<<<< * return MaxItemsConstraint_validate(self, data) * elif _dispatch == 10: */ break; case 10: /* "apischema/deserialization/methods.pyx":1297 * return MaxItemsConstraint_validate(self, data) * elif _dispatch == 10: * return UniqueItemsConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 11: * return MinPropertiesConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_UniqueItemsConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1296 * elif _dispatch == 9: * return MaxItemsConstraint_validate(self, data) * elif _dispatch == 10: # <<<<<<<<<<<<<< * return UniqueItemsConstraint_validate(self, data) * elif _dispatch == 11: */ break; case 11: /* "apischema/deserialization/methods.pyx":1299 * return UniqueItemsConstraint_validate(self, data) * elif _dispatch == 11: * return MinPropertiesConstraint_validate(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 12: * return MaxPropertiesConstraint_validate(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MinPropertiesConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1298 * elif _dispatch == 10: * return UniqueItemsConstraint_validate(self, data) * elif _dispatch == 11: # <<<<<<<<<<<<<< * return MinPropertiesConstraint_validate(self, data) * elif _dispatch == 12: */ break; case 12: /* "apischema/deserialization/methods.pyx":1301 * return MinPropertiesConstraint_validate(self, data) * elif _dispatch == 12: * return MaxPropertiesConstraint_validate(self, data) # <<<<<<<<<<<<<< * * cdef inline DeserializationMethod_deserialize(DeserializationMethod self, object data): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MaxPropertiesConstraint_validate(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1300 * elif _dispatch == 11: * return MinPropertiesConstraint_validate(self, data) * elif _dispatch == 12: # <<<<<<<<<<<<<< * return MaxPropertiesConstraint_validate(self, data) * */ break; default: break; } /* "apischema/deserialization/methods.pyx":1274 * return obj * * cdef inline Constraint_validate(Constraint self, object data): # <<<<<<<<<<<<<< * cdef int _dispatch = self._dispatch * if _dispatch == 0: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.Constraint_validate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1303 * return MaxPropertiesConstraint_validate(self, data) * * cdef inline DeserializationMethod_deserialize(DeserializationMethod self, object data): # <<<<<<<<<<<<<< * cdef int _dispatch = self._dispatch * if _dispatch == 0: */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_DeserializationMethod_deserialize(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v_self, PyObject *__pyx_v_data) { int __pyx_v__dispatch; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("DeserializationMethod_deserialize", 1); /* "apischema/deserialization/methods.pyx":1304 * * cdef inline DeserializationMethod_deserialize(DeserializationMethod self, object data): * cdef int _dispatch = self._dispatch # <<<<<<<<<<<<<< * if _dispatch == 0: * return RecMethod_deserialize(self, data) */ __pyx_t_1 = __pyx_v_self->_dispatch; __pyx_v__dispatch = __pyx_t_1; /* "apischema/deserialization/methods.pyx":1305 * cdef inline DeserializationMethod_deserialize(DeserializationMethod self, object data): * cdef int _dispatch = self._dispatch * if _dispatch == 0: # <<<<<<<<<<<<<< * return RecMethod_deserialize(self, data) * elif _dispatch == 1: */ switch (__pyx_v__dispatch) { case 0: /* "apischema/deserialization/methods.pyx":1306 * cdef int _dispatch = self._dispatch * if _dispatch == 0: * return RecMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 1: * return ValidatorMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_RecMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1305 * cdef inline DeserializationMethod_deserialize(DeserializationMethod self, object data): * cdef int _dispatch = self._dispatch * if _dispatch == 0: # <<<<<<<<<<<<<< * return RecMethod_deserialize(self, data) * elif _dispatch == 1: */ break; case 1: /* "apischema/deserialization/methods.pyx":1308 * return RecMethod_deserialize(self, data) * elif _dispatch == 1: * return ValidatorMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 2: * return CoercerMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ValidatorMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1307 * if _dispatch == 0: * return RecMethod_deserialize(self, data) * elif _dispatch == 1: # <<<<<<<<<<<<<< * return ValidatorMethod_deserialize(self, data) * elif _dispatch == 2: */ break; case 2: /* "apischema/deserialization/methods.pyx":1310 * return ValidatorMethod_deserialize(self, data) * elif _dispatch == 2: * return CoercerMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 3: * return TypeCheckMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_CoercerMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1309 * elif _dispatch == 1: * return ValidatorMethod_deserialize(self, data) * elif _dispatch == 2: # <<<<<<<<<<<<<< * return CoercerMethod_deserialize(self, data) * elif _dispatch == 3: */ break; case 3: /* "apischema/deserialization/methods.pyx":1312 * return CoercerMethod_deserialize(self, data) * elif _dispatch == 3: * return TypeCheckMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 4: * return AnyMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_TypeCheckMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1311 * elif _dispatch == 2: * return CoercerMethod_deserialize(self, data) * elif _dispatch == 3: # <<<<<<<<<<<<<< * return TypeCheckMethod_deserialize(self, data) * elif _dispatch == 4: */ break; case 4: /* "apischema/deserialization/methods.pyx":1314 * return TypeCheckMethod_deserialize(self, data) * elif _dispatch == 4: * return AnyMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 5: * return ListCheckOnlyMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_AnyMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1313 * elif _dispatch == 3: * return TypeCheckMethod_deserialize(self, data) * elif _dispatch == 4: # <<<<<<<<<<<<<< * return AnyMethod_deserialize(self, data) * elif _dispatch == 5: */ break; case 5: /* "apischema/deserialization/methods.pyx":1316 * return AnyMethod_deserialize(self, data) * elif _dispatch == 5: * return ListCheckOnlyMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 6: * return ListMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ListCheckOnlyMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1315 * elif _dispatch == 4: * return AnyMethod_deserialize(self, data) * elif _dispatch == 5: # <<<<<<<<<<<<<< * return ListCheckOnlyMethod_deserialize(self, data) * elif _dispatch == 6: */ break; case 6: /* "apischema/deserialization/methods.pyx":1318 * return ListCheckOnlyMethod_deserialize(self, data) * elif _dispatch == 6: * return ListMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 7: * return SetMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ListMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1317 * elif _dispatch == 5: * return ListCheckOnlyMethod_deserialize(self, data) * elif _dispatch == 6: # <<<<<<<<<<<<<< * return ListMethod_deserialize(self, data) * elif _dispatch == 7: */ break; case 7: /* "apischema/deserialization/methods.pyx":1320 * return ListMethod_deserialize(self, data) * elif _dispatch == 7: * return SetMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 8: * return FrozenSetMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_SetMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1319 * elif _dispatch == 6: * return ListMethod_deserialize(self, data) * elif _dispatch == 7: # <<<<<<<<<<<<<< * return SetMethod_deserialize(self, data) * elif _dispatch == 8: */ break; case 8: /* "apischema/deserialization/methods.pyx":1322 * return SetMethod_deserialize(self, data) * elif _dispatch == 8: * return FrozenSetMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 9: * return VariadicTupleMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_FrozenSetMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1321 * elif _dispatch == 7: * return SetMethod_deserialize(self, data) * elif _dispatch == 8: # <<<<<<<<<<<<<< * return FrozenSetMethod_deserialize(self, data) * elif _dispatch == 9: */ break; case 9: /* "apischema/deserialization/methods.pyx":1324 * return FrozenSetMethod_deserialize(self, data) * elif _dispatch == 9: * return VariadicTupleMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 10: * return LiteralMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_VariadicTupleMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1323 * elif _dispatch == 8: * return FrozenSetMethod_deserialize(self, data) * elif _dispatch == 9: # <<<<<<<<<<<<<< * return VariadicTupleMethod_deserialize(self, data) * elif _dispatch == 10: */ break; case 10: /* "apischema/deserialization/methods.pyx":1326 * return VariadicTupleMethod_deserialize(self, data) * elif _dispatch == 10: * return LiteralMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 11: * return MappingCheckOnly_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_LiteralMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1325 * elif _dispatch == 9: * return VariadicTupleMethod_deserialize(self, data) * elif _dispatch == 10: # <<<<<<<<<<<<<< * return LiteralMethod_deserialize(self, data) * elif _dispatch == 11: */ break; case 11: /* "apischema/deserialization/methods.pyx":1328 * return LiteralMethod_deserialize(self, data) * elif _dispatch == 11: * return MappingCheckOnly_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 12: * return MappingMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MappingCheckOnly_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1327 * elif _dispatch == 10: * return LiteralMethod_deserialize(self, data) * elif _dispatch == 11: # <<<<<<<<<<<<<< * return MappingCheckOnly_deserialize(self, data) * elif _dispatch == 12: */ break; case 12: /* "apischema/deserialization/methods.pyx":1330 * return MappingCheckOnly_deserialize(self, data) * elif _dispatch == 12: * return MappingMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 13: * return SimpleObjectMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_MappingMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1329 * elif _dispatch == 11: * return MappingCheckOnly_deserialize(self, data) * elif _dispatch == 12: # <<<<<<<<<<<<<< * return MappingMethod_deserialize(self, data) * elif _dispatch == 13: */ break; case 13: /* "apischema/deserialization/methods.pyx":1332 * return MappingMethod_deserialize(self, data) * elif _dispatch == 13: * return SimpleObjectMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 14: * return ObjectMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_SimpleObjectMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1331 * elif _dispatch == 12: * return MappingMethod_deserialize(self, data) * elif _dispatch == 13: # <<<<<<<<<<<<<< * return SimpleObjectMethod_deserialize(self, data) * elif _dispatch == 14: */ break; case 14: /* "apischema/deserialization/methods.pyx":1334 * return SimpleObjectMethod_deserialize(self, data) * elif _dispatch == 14: * return ObjectMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 15: * return NoneMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ObjectMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1333 * elif _dispatch == 13: * return SimpleObjectMethod_deserialize(self, data) * elif _dispatch == 14: # <<<<<<<<<<<<<< * return ObjectMethod_deserialize(self, data) * elif _dispatch == 15: */ break; case 15: /* "apischema/deserialization/methods.pyx":1336 * return ObjectMethod_deserialize(self, data) * elif _dispatch == 15: * return NoneMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 16: * return IntMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_NoneMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1335 * elif _dispatch == 14: * return ObjectMethod_deserialize(self, data) * elif _dispatch == 15: # <<<<<<<<<<<<<< * return NoneMethod_deserialize(self, data) * elif _dispatch == 16: */ break; case 16: /* "apischema/deserialization/methods.pyx":1338 * return NoneMethod_deserialize(self, data) * elif _dispatch == 16: * return IntMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 17: * return ConstrainedIntMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_IntMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1337 * elif _dispatch == 15: * return NoneMethod_deserialize(self, data) * elif _dispatch == 16: # <<<<<<<<<<<<<< * return IntMethod_deserialize(self, data) * elif _dispatch == 17: */ break; case 17: /* "apischema/deserialization/methods.pyx":1340 * return IntMethod_deserialize(self, data) * elif _dispatch == 17: * return ConstrainedIntMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 18: * return FloatMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ConstrainedIntMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1339 * elif _dispatch == 16: * return IntMethod_deserialize(self, data) * elif _dispatch == 17: # <<<<<<<<<<<<<< * return ConstrainedIntMethod_deserialize(self, data) * elif _dispatch == 18: */ break; case 18: /* "apischema/deserialization/methods.pyx":1342 * return ConstrainedIntMethod_deserialize(self, data) * elif _dispatch == 18: * return FloatMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 19: * return ConstrainedFloatMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_FloatMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1341 * elif _dispatch == 17: * return ConstrainedIntMethod_deserialize(self, data) * elif _dispatch == 18: # <<<<<<<<<<<<<< * return FloatMethod_deserialize(self, data) * elif _dispatch == 19: */ break; case 19: /* "apischema/deserialization/methods.pyx":1344 * return FloatMethod_deserialize(self, data) * elif _dispatch == 19: * return ConstrainedFloatMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 20: * return StrMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ConstrainedFloatMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1343 * elif _dispatch == 18: * return FloatMethod_deserialize(self, data) * elif _dispatch == 19: # <<<<<<<<<<<<<< * return ConstrainedFloatMethod_deserialize(self, data) * elif _dispatch == 20: */ break; case 20: /* "apischema/deserialization/methods.pyx":1346 * return ConstrainedFloatMethod_deserialize(self, data) * elif _dispatch == 20: * return StrMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 21: * return ConstrainedStrMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_StrMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1345 * elif _dispatch == 19: * return ConstrainedFloatMethod_deserialize(self, data) * elif _dispatch == 20: # <<<<<<<<<<<<<< * return StrMethod_deserialize(self, data) * elif _dispatch == 21: */ break; case 21: /* "apischema/deserialization/methods.pyx":1348 * return StrMethod_deserialize(self, data) * elif _dispatch == 21: * return ConstrainedStrMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 22: * return BoolMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ConstrainedStrMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1347 * elif _dispatch == 20: * return StrMethod_deserialize(self, data) * elif _dispatch == 21: # <<<<<<<<<<<<<< * return ConstrainedStrMethod_deserialize(self, data) * elif _dispatch == 22: */ break; case 22: /* "apischema/deserialization/methods.pyx":1350 * return ConstrainedStrMethod_deserialize(self, data) * elif _dispatch == 22: * return BoolMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 23: * return SubprimitiveMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_BoolMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1349 * elif _dispatch == 21: * return ConstrainedStrMethod_deserialize(self, data) * elif _dispatch == 22: # <<<<<<<<<<<<<< * return BoolMethod_deserialize(self, data) * elif _dispatch == 23: */ break; case 23: /* "apischema/deserialization/methods.pyx":1352 * return BoolMethod_deserialize(self, data) * elif _dispatch == 23: * return SubprimitiveMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 24: * return TupleMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_SubprimitiveMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1351 * elif _dispatch == 22: * return BoolMethod_deserialize(self, data) * elif _dispatch == 23: # <<<<<<<<<<<<<< * return SubprimitiveMethod_deserialize(self, data) * elif _dispatch == 24: */ break; case 24: /* "apischema/deserialization/methods.pyx":1354 * return SubprimitiveMethod_deserialize(self, data) * elif _dispatch == 24: * return TupleMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 25: * return OptionalMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_TupleMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1353 * elif _dispatch == 23: * return SubprimitiveMethod_deserialize(self, data) * elif _dispatch == 24: # <<<<<<<<<<<<<< * return TupleMethod_deserialize(self, data) * elif _dispatch == 25: */ break; case 25: /* "apischema/deserialization/methods.pyx":1356 * return TupleMethod_deserialize(self, data) * elif _dispatch == 25: * return OptionalMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 26: * return UnionByTypeMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_OptionalMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1355 * elif _dispatch == 24: * return TupleMethod_deserialize(self, data) * elif _dispatch == 25: # <<<<<<<<<<<<<< * return OptionalMethod_deserialize(self, data) * elif _dispatch == 26: */ break; case 26: /* "apischema/deserialization/methods.pyx":1358 * return OptionalMethod_deserialize(self, data) * elif _dispatch == 26: * return UnionByTypeMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 27: * return UnionMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1357 * elif _dispatch == 25: * return OptionalMethod_deserialize(self, data) * elif _dispatch == 26: # <<<<<<<<<<<<<< * return UnionByTypeMethod_deserialize(self, data) * elif _dispatch == 27: */ break; case 27: /* "apischema/deserialization/methods.pyx":1360 * return UnionByTypeMethod_deserialize(self, data) * elif _dispatch == 27: * return UnionMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 28: * return ConversionMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_UnionMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1359 * elif _dispatch == 26: * return UnionByTypeMethod_deserialize(self, data) * elif _dispatch == 27: # <<<<<<<<<<<<<< * return UnionMethod_deserialize(self, data) * elif _dispatch == 28: */ break; case 28: /* "apischema/deserialization/methods.pyx":1362 * return UnionMethod_deserialize(self, data) * elif _dispatch == 28: * return ConversionMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 29: * return ConversionWithValueErrorMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ConversionMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1361 * elif _dispatch == 27: * return UnionMethod_deserialize(self, data) * elif _dispatch == 28: # <<<<<<<<<<<<<< * return ConversionMethod_deserialize(self, data) * elif _dispatch == 29: */ break; case 29: /* "apischema/deserialization/methods.pyx":1364 * return ConversionMethod_deserialize(self, data) * elif _dispatch == 29: * return ConversionWithValueErrorMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 30: * return ConversionUnionMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1363 * elif _dispatch == 28: * return ConversionMethod_deserialize(self, data) * elif _dispatch == 29: # <<<<<<<<<<<<<< * return ConversionWithValueErrorMethod_deserialize(self, data) * elif _dispatch == 30: */ break; case 30: /* "apischema/deserialization/methods.pyx":1366 * return ConversionWithValueErrorMethod_deserialize(self, data) * elif _dispatch == 30: * return ConversionUnionMethod_deserialize(self, data) # <<<<<<<<<<<<<< * elif _dispatch == 31: * return DiscriminatorMethod_deserialize(self, data) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_ConversionUnionMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1365 * elif _dispatch == 29: * return ConversionWithValueErrorMethod_deserialize(self, data) * elif _dispatch == 30: # <<<<<<<<<<<<<< * return ConversionUnionMethod_deserialize(self, data) * elif _dispatch == 31: */ break; case 31: /* "apischema/deserialization/methods.pyx":1368 * return ConversionUnionMethod_deserialize(self, data) * elif _dispatch == 31: * return DiscriminatorMethod_deserialize(self, data) # <<<<<<<<<<<<<< * * cdef inline Constructor_construct(Constructor self, dict fields): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_DiscriminatorMethod_deserialize(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v_self), __pyx_v_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1367 * elif _dispatch == 30: * return ConversionUnionMethod_deserialize(self, data) * elif _dispatch == 31: # <<<<<<<<<<<<<< * return DiscriminatorMethod_deserialize(self, data) * */ break; default: break; } /* "apischema/deserialization/methods.pyx":1303 * return MaxPropertiesConstraint_validate(self, data) * * cdef inline DeserializationMethod_deserialize(DeserializationMethod self, object data): # <<<<<<<<<<<<<< * cdef int _dispatch = self._dispatch * if _dispatch == 0: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.DeserializationMethod_deserialize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "apischema/deserialization/methods.pyx":1370 * return DiscriminatorMethod_deserialize(self, data) * * cdef inline Constructor_construct(Constructor self, dict fields): # <<<<<<<<<<<<<< * cdef int _dispatch = self._dispatch * if _dispatch == 0: */ static CYTHON_INLINE PyObject *__pyx_f_9apischema_15deserialization_7methods_Constructor_construct(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v_self, PyObject *__pyx_v_fields) { int __pyx_v__dispatch; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("Constructor_construct", 1); /* "apischema/deserialization/methods.pyx":1371 * * cdef inline Constructor_construct(Constructor self, dict fields): * cdef int _dispatch = self._dispatch # <<<<<<<<<<<<<< * if _dispatch == 0: * return NoConstructor_construct(self, fields) */ __pyx_t_1 = __pyx_v_self->_dispatch; __pyx_v__dispatch = __pyx_t_1; /* "apischema/deserialization/methods.pyx":1372 * cdef inline Constructor_construct(Constructor self, dict fields): * cdef int _dispatch = self._dispatch * if _dispatch == 0: # <<<<<<<<<<<<<< * return NoConstructor_construct(self, fields) * elif _dispatch == 1: */ switch (__pyx_v__dispatch) { case 0: /* "apischema/deserialization/methods.pyx":1373 * cdef int _dispatch = self._dispatch * if _dispatch == 0: * return NoConstructor_construct(self, fields) # <<<<<<<<<<<<<< * elif _dispatch == 1: * return RawConstructor_construct(self, fields) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_NoConstructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)__pyx_v_self), __pyx_v_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1372 * cdef inline Constructor_construct(Constructor self, dict fields): * cdef int _dispatch = self._dispatch * if _dispatch == 0: # <<<<<<<<<<<<<< * return NoConstructor_construct(self, fields) * elif _dispatch == 1: */ break; case 1: /* "apischema/deserialization/methods.pyx":1375 * return NoConstructor_construct(self, fields) * elif _dispatch == 1: * return RawConstructor_construct(self, fields) # <<<<<<<<<<<<<< * elif _dispatch == 2: * return RawConstructorCopy_construct(self, fields) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_RawConstructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)__pyx_v_self), __pyx_v_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1374 * if _dispatch == 0: * return NoConstructor_construct(self, fields) * elif _dispatch == 1: # <<<<<<<<<<<<<< * return RawConstructor_construct(self, fields) * elif _dispatch == 2: */ break; case 2: /* "apischema/deserialization/methods.pyx":1377 * return RawConstructor_construct(self, fields) * elif _dispatch == 2: * return RawConstructorCopy_construct(self, fields) # <<<<<<<<<<<<<< * elif _dispatch == 3: * return FieldsConstructor_construct(self, fields) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_RawConstructorCopy_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)__pyx_v_self), __pyx_v_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1376 * elif _dispatch == 1: * return RawConstructor_construct(self, fields) * elif _dispatch == 2: # <<<<<<<<<<<<<< * return RawConstructorCopy_construct(self, fields) * elif _dispatch == 3: */ break; case 3: /* "apischema/deserialization/methods.pyx":1379 * return RawConstructorCopy_construct(self, fields) * elif _dispatch == 3: * return FieldsConstructor_construct(self, fields) # <<<<<<<<<<<<<< * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_f_9apischema_15deserialization_7methods_FieldsConstructor_construct(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v_self), __pyx_v_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "apischema/deserialization/methods.pyx":1378 * elif _dispatch == 2: * return RawConstructorCopy_construct(self, fields) * elif _dispatch == 3: # <<<<<<<<<<<<<< * return FieldsConstructor_construct(self, fields) * */ break; default: break; } /* "apischema/deserialization/methods.pyx":1370 * return DiscriminatorMethod_deserialize(self, data) * * cdef inline Constructor_construct(Constructor self, dict fields): # <<<<<<<<<<<<<< * cdef int _dispatch = self._dispatch * if _dispatch == 0: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("apischema.deserialization.methods.Constructor_construct", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_Constraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13__pyx_unpickle_Constraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_13__pyx_unpickle_Constraint = {"__pyx_unpickle_Constraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13__pyx_unpickle_Constraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_13__pyx_unpickle_Constraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_Constraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Constraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Constraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_Constraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Constraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Constraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_12__pyx_unpickle_Constraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_12__pyx_unpickle_Constraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Constraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x440e33a, 0xdd66781, 0x527db43): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__2, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x440e33a, 0xdd66781, 0x527db43): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum * __pyx_result = Constraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x440e33a, 0xdd66781, 0x527db43): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = Constraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x440e33a, 0xdd66781, 0x527db43): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum * __pyx_result = Constraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum * __pyx_result = Constraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = Constraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum * __pyx_result = Constraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_Constraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Constraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Constraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->_dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->error); __Pyx_DECREF(__pyx_v___pyx_result->error); __pyx_v___pyx_result->error = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Constraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MinimumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15__pyx_unpickle_MinimumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_15__pyx_unpickle_MinimumConstraint = {"__pyx_unpickle_MinimumConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15__pyx_unpickle_MinimumConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_15__pyx_unpickle_MinimumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MinimumConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinimumConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinimumConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MinimumConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinimumConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinimumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_14__pyx_unpickle_MinimumConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_14__pyx_unpickle_MinimumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinimumConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x14d2112, 0x93303ea, 0xfe8a25a): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__4, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x14d2112, 0x93303ea, 0xfe8a25a): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum * __pyx_result = MinimumConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x14d2112, 0x93303ea, 0xfe8a25a): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x14d2112, 0x93303ea, 0xfe8a25a): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum * __pyx_result = MinimumConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum * __pyx_result = MinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinimumConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14d2112, 0x93303ea, 0xfe8a25a) = (_dispatch, error, minimum))" % __pyx_checksum * __pyx_result = MinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MinimumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinimumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinimumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinimumConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->minimum = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinimumConstraint__set_state(MinimumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.minimum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinimumConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MaximumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17__pyx_unpickle_MaximumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_17__pyx_unpickle_MaximumConstraint = {"__pyx_unpickle_MaximumConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17__pyx_unpickle_MaximumConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_17__pyx_unpickle_MaximumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MaximumConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaximumConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaximumConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MaximumConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaximumConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaximumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_16__pyx_unpickle_MaximumConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_16__pyx_unpickle_MaximumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaximumConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x4c9e1f1, 0xf205fce, 0x604efde): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__5, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x4c9e1f1, 0xf205fce, 0x604efde): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum * __pyx_result = MaximumConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x4c9e1f1, 0xf205fce, 0x604efde): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x4c9e1f1, 0xf205fce, 0x604efde): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum * __pyx_result = MaximumConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum * __pyx_result = MaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaximumConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4c9e1f1, 0xf205fce, 0x604efde) = (_dispatch, error, maximum))" % __pyx_checksum * __pyx_result = MaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MaximumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaximumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaximumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaximumConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->maximum = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaximumConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ExclusiveMinimumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19__pyx_unpickle_ExclusiveMinimumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_19__pyx_unpickle_ExclusiveMinimumConstraint = {"__pyx_unpickle_ExclusiveMinimumConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19__pyx_unpickle_ExclusiveMinimumConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_19__pyx_unpickle_ExclusiveMinimumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ExclusiveMinimumConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ExclusiveMinimumConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ExclusiveMinimumConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ExclusiveMinimumConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ExclusiveMinimumConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ExclusiveMinimumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_18__pyx_unpickle_ExclusiveMinimumConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_18__pyx_unpickle_ExclusiveMinimumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ExclusiveMinimumConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd7c880b, 0x5efd07d, 0x694fdb2): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__6, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xd7c880b, 0x5efd07d, 0x694fdb2): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum * __pyx_result = ExclusiveMinimumConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xd7c880b, 0x5efd07d, 0x694fdb2): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ExclusiveMinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd7c880b, 0x5efd07d, 0x694fdb2): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum * __pyx_result = ExclusiveMinimumConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum * __pyx_result = ExclusiveMinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ExclusiveMinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMinimumConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd7c880b, 0x5efd07d, 0x694fdb2) = (_dispatch, error, exc_min))" % __pyx_checksum * __pyx_result = ExclusiveMinimumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ExclusiveMinimumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ExclusiveMinimumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMinimumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ExclusiveMinimumConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->exc_min = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ExclusiveMinimumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ExclusiveMinimumConstraint__set_state(ExclusiveMinimumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_min = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ExclusiveMinimumConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ExclusiveMaximumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21__pyx_unpickle_ExclusiveMaximumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_21__pyx_unpickle_ExclusiveMaximumConstraint = {"__pyx_unpickle_ExclusiveMaximumConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21__pyx_unpickle_ExclusiveMaximumConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_21__pyx_unpickle_ExclusiveMaximumConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ExclusiveMaximumConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ExclusiveMaximumConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ExclusiveMaximumConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ExclusiveMaximumConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ExclusiveMaximumConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ExclusiveMaximumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_20__pyx_unpickle_ExclusiveMaximumConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_20__pyx_unpickle_ExclusiveMaximumConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ExclusiveMaximumConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__7, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum * __pyx_result = ExclusiveMaximumConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ExclusiveMaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum * __pyx_result = ExclusiveMaximumConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum * __pyx_result = ExclusiveMaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ExclusiveMaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMaximumConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc42ab7d, 0x7f3ceaa, 0x7a92bc0) = (_dispatch, error, exc_max))" % __pyx_checksum * __pyx_result = ExclusiveMaximumConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ExclusiveMaximumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ExclusiveMaximumConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ExclusiveMaximumConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ExclusiveMaximumConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->exc_max = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ExclusiveMaximumConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MultipleOfConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23__pyx_unpickle_MultipleOfConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_23__pyx_unpickle_MultipleOfConstraint = {"__pyx_unpickle_MultipleOfConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23__pyx_unpickle_MultipleOfConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_23__pyx_unpickle_MultipleOfConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MultipleOfConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MultipleOfConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MultipleOfConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MultipleOfConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MultipleOfConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MultipleOfConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_22__pyx_unpickle_MultipleOfConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_22__pyx_unpickle_MultipleOfConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MultipleOfConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb71a7f6, 0xfdcba4d, 0x3034e41): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__8, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xb71a7f6, 0xfdcba4d, 0x3034e41): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum * __pyx_result = MultipleOfConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xb71a7f6, 0xfdcba4d, 0x3034e41): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MultipleOfConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb71a7f6, 0xfdcba4d, 0x3034e41): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum * __pyx_result = MultipleOfConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum * __pyx_result = MultipleOfConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MultipleOfConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MultipleOfConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb71a7f6, 0xfdcba4d, 0x3034e41) = (_dispatch, error, mult_of))" % __pyx_checksum * __pyx_result = MultipleOfConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MultipleOfConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MultipleOfConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MultipleOfConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MultipleOfConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->mult_of = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MultipleOfConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MultipleOfConstraint__set_state(MultipleOfConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.mult_of = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MultipleOfConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MinLengthConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_25__pyx_unpickle_MinLengthConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_25__pyx_unpickle_MinLengthConstraint = {"__pyx_unpickle_MinLengthConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_25__pyx_unpickle_MinLengthConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_25__pyx_unpickle_MinLengthConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MinLengthConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinLengthConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinLengthConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MinLengthConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinLengthConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinLengthConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_24__pyx_unpickle_MinLengthConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_24__pyx_unpickle_MinLengthConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinLengthConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd9fa45e, 0xdbd9a42, 0x5305afa): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__9, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xd9fa45e, 0xdbd9a42, 0x5305afa): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum * __pyx_result = MinLengthConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xd9fa45e, 0xdbd9a42, 0x5305afa): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MinLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd9fa45e, 0xdbd9a42, 0x5305afa): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum * __pyx_result = MinLengthConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum * __pyx_result = MinLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MinLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinLengthConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd9fa45e, 0xdbd9a42, 0x5305afa) = (_dispatch, error, min_len))" % __pyx_checksum * __pyx_result = MinLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MinLengthConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinLengthConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinLengthConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinLengthConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->min_len = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinLengthConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MaxLengthConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_27__pyx_unpickle_MaxLengthConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_27__pyx_unpickle_MaxLengthConstraint = {"__pyx_unpickle_MaxLengthConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_27__pyx_unpickle_MaxLengthConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_27__pyx_unpickle_MaxLengthConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MaxLengthConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxLengthConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxLengthConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MaxLengthConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxLengthConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxLengthConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_26__pyx_unpickle_MaxLengthConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_26__pyx_unpickle_MaxLengthConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaxLengthConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd0a67b9, 0xbdca40d, 0x86ba199): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__10, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xd0a67b9, 0xbdca40d, 0x86ba199): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum * __pyx_result = MaxLengthConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xd0a67b9, 0xbdca40d, 0x86ba199): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MaxLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd0a67b9, 0xbdca40d, 0x86ba199): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum * __pyx_result = MaxLengthConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum * __pyx_result = MaxLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MaxLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxLengthConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd0a67b9, 0xbdca40d, 0x86ba199) = (_dispatch, error, max_len))" % __pyx_checksum * __pyx_result = MaxLengthConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MaxLengthConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxLengthConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxLengthConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaxLengthConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->max_len = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MaxLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxLengthConstraint__set_state(MaxLengthConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxLengthConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_PatternConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_29__pyx_unpickle_PatternConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_29__pyx_unpickle_PatternConstraint = {"__pyx_unpickle_PatternConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_29__pyx_unpickle_PatternConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_29__pyx_unpickle_PatternConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_PatternConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PatternConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PatternConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_PatternConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PatternConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_PatternConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_28__pyx_unpickle_PatternConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_28__pyx_unpickle_PatternConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_PatternConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x3e9c5ea, 0x36507cf, 0x83f5779): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__11, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x3e9c5ea, 0x36507cf, 0x83f5779): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum * __pyx_result = PatternConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x3e9c5ea, 0x36507cf, 0x83f5779): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = PatternConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x3e9c5ea, 0x36507cf, 0x83f5779): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum * __pyx_result = PatternConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum * __pyx_result = PatternConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = PatternConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3e9c5ea, 0x36507cf, 0x83f5779) = (_dispatch, error, pattern))" % __pyx_checksum * __pyx_result = PatternConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_PatternConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_PatternConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_PatternConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->pattern); __Pyx_DECREF(__pyx_v___pyx_result->pattern); __pyx_v___pyx_result->pattern = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_PatternConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MinItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_31__pyx_unpickle_MinItemsConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_31__pyx_unpickle_MinItemsConstraint = {"__pyx_unpickle_MinItemsConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_31__pyx_unpickle_MinItemsConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_31__pyx_unpickle_MinItemsConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MinItemsConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinItemsConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinItemsConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MinItemsConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinItemsConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinItemsConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_30__pyx_unpickle_MinItemsConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_30__pyx_unpickle_MinItemsConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinItemsConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x2f68ba5, 0x44a7a4d, 0x97ef1b1): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__12, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x2f68ba5, 0x44a7a4d, 0x97ef1b1): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum * __pyx_result = MinItemsConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x2f68ba5, 0x44a7a4d, 0x97ef1b1): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MinItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x2f68ba5, 0x44a7a4d, 0x97ef1b1): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum * __pyx_result = MinItemsConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum * __pyx_result = MinItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MinItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinItemsConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x2f68ba5, 0x44a7a4d, 0x97ef1b1) = (_dispatch, error, min_items))" % __pyx_checksum * __pyx_result = MinItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MinItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinItemsConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinItemsConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinItemsConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->min_items = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MinItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinItemsConstraint__set_state(MinItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinItemsConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MaxItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_33__pyx_unpickle_MaxItemsConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_33__pyx_unpickle_MaxItemsConstraint = {"__pyx_unpickle_MaxItemsConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_33__pyx_unpickle_MaxItemsConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_33__pyx_unpickle_MaxItemsConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MaxItemsConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxItemsConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxItemsConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MaxItemsConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxItemsConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxItemsConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_32__pyx_unpickle_MaxItemsConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_32__pyx_unpickle_MaxItemsConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaxItemsConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x77412f8, 0xefe2054, 0x1da8bbc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__13, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x77412f8, 0xefe2054, 0x1da8bbc): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum * __pyx_result = MaxItemsConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x77412f8, 0xefe2054, 0x1da8bbc): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MaxItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x77412f8, 0xefe2054, 0x1da8bbc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum * __pyx_result = MaxItemsConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum * __pyx_result = MaxItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MaxItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxItemsConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x77412f8, 0xefe2054, 0x1da8bbc) = (_dispatch, error, max_items))" % __pyx_checksum * __pyx_result = MaxItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MaxItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxItemsConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxItemsConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaxItemsConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->max_items = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxItemsConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_UniqueItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_35__pyx_unpickle_UniqueItemsConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_35__pyx_unpickle_UniqueItemsConstraint = {"__pyx_unpickle_UniqueItemsConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_35__pyx_unpickle_UniqueItemsConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_35__pyx_unpickle_UniqueItemsConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_UniqueItemsConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UniqueItemsConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UniqueItemsConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_UniqueItemsConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UniqueItemsConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UniqueItemsConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_34__pyx_unpickle_UniqueItemsConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_34__pyx_unpickle_UniqueItemsConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_UniqueItemsConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xfeeb80b, 0x81f049b, 0x0a0bd34): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__14, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xfeeb80b, 0x81f049b, 0x0a0bd34): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum * __pyx_result = UniqueItemsConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xfeeb80b, 0x81f049b, 0x0a0bd34): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = UniqueItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xfeeb80b, 0x81f049b, 0x0a0bd34): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum * __pyx_result = UniqueItemsConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum * __pyx_result = UniqueItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = UniqueItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UniqueItemsConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xfeeb80b, 0x81f049b, 0x0a0bd34) = (_dispatch, error, unique))" % __pyx_checksum * __pyx_result = UniqueItemsConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_UniqueItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UniqueItemsConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UniqueItemsConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_UniqueItemsConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->unique = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_UniqueItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UniqueItemsConstraint__set_state(UniqueItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.unique = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UniqueItemsConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MinPropertiesConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_37__pyx_unpickle_MinPropertiesConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_37__pyx_unpickle_MinPropertiesConstraint = {"__pyx_unpickle_MinPropertiesConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_37__pyx_unpickle_MinPropertiesConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_37__pyx_unpickle_MinPropertiesConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MinPropertiesConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinPropertiesConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinPropertiesConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MinPropertiesConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MinPropertiesConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinPropertiesConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_36__pyx_unpickle_MinPropertiesConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_36__pyx_unpickle_MinPropertiesConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinPropertiesConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x3931fcc, 0x2fd7a22, 0xd19b6c9): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__15, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x3931fcc, 0x2fd7a22, 0xd19b6c9): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum * __pyx_result = MinPropertiesConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x3931fcc, 0x2fd7a22, 0xd19b6c9): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MinPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x3931fcc, 0x2fd7a22, 0xd19b6c9): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum * __pyx_result = MinPropertiesConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum * __pyx_result = MinPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MinPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinPropertiesConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x3931fcc, 0x2fd7a22, 0xd19b6c9) = (_dispatch, error, min_properties))" % __pyx_checksum * __pyx_result = MinPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MinPropertiesConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinPropertiesConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MinPropertiesConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MinPropertiesConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->min_properties = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MinPropertiesConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MaxPropertiesConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_39__pyx_unpickle_MaxPropertiesConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_39__pyx_unpickle_MaxPropertiesConstraint = {"__pyx_unpickle_MaxPropertiesConstraint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_39__pyx_unpickle_MaxPropertiesConstraint, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_39__pyx_unpickle_MaxPropertiesConstraint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MaxPropertiesConstraint (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxPropertiesConstraint", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxPropertiesConstraint", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MaxPropertiesConstraint") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MaxPropertiesConstraint", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxPropertiesConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_38__pyx_unpickle_MaxPropertiesConstraint(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_38__pyx_unpickle_MaxPropertiesConstraint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaxPropertiesConstraint", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x187e4a5, 0x6c23252, 0xefe7471): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__16, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x187e4a5, 0x6c23252, 0xefe7471): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum * __pyx_result = MaxPropertiesConstraint.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x187e4a5, 0x6c23252, 0xefe7471): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MaxPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x187e4a5, 0x6c23252, 0xefe7471): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum * __pyx_result = MaxPropertiesConstraint.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum * __pyx_result = MaxPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MaxPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxPropertiesConstraint__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x187e4a5, 0x6c23252, 0xefe7471) = (_dispatch, error, max_properties))" % __pyx_checksum * __pyx_result = MaxPropertiesConstraint.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MaxPropertiesConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxPropertiesConstraint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MaxPropertiesConstraint__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MaxPropertiesConstraint__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.error); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.error); __pyx_v___pyx_result->__pyx_base.error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->max_properties = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 3); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MaxPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxPropertiesConstraint__set_state(MaxPropertiesConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MaxPropertiesConstraint__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_DeserializationMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_41__pyx_unpickle_DeserializationMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_41__pyx_unpickle_DeserializationMethod = {"__pyx_unpickle_DeserializationMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_41__pyx_unpickle_DeserializationMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_41__pyx_unpickle_DeserializationMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_DeserializationMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DeserializationMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DeserializationMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_DeserializationMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DeserializationMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DeserializationMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_40__pyx_unpickle_DeserializationMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_40__pyx_unpickle_DeserializationMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_DeserializationMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__17, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = DeserializationMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = DeserializationMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = DeserializationMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = DeserializationMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = DeserializationMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DeserializationMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = DeserializationMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_DeserializationMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DeserializationMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DeserializationMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_DeserializationMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->_dispatch = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 1); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DeserializationMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_RecMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_43__pyx_unpickle_RecMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_43__pyx_unpickle_RecMethod = {"__pyx_unpickle_RecMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_43__pyx_unpickle_RecMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_43__pyx_unpickle_RecMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_RecMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RecMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RecMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_RecMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RecMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RecMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_42__pyx_unpickle_RecMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_42__pyx_unpickle_RecMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_RecMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x412ebe0, 0x61b7593, 0x64c25a2): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__18, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x412ebe0, 0x61b7593, 0x64c25a2): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum * __pyx_result = RecMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x412ebe0, 0x61b7593, 0x64c25a2): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = RecMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x412ebe0, 0x61b7593, 0x64c25a2): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum * __pyx_result = RecMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RecMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum * __pyx_result = RecMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = RecMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RecMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x412ebe0, 0x61b7593, 0x64c25a2) = (_dispatch, lazy, method))" % __pyx_checksum * __pyx_result = RecMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_RecMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RecMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RecMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_RecMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->lazy); __Pyx_DECREF(__pyx_v___pyx_result->lazy); __pyx_v___pyx_result->lazy = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->method); __Pyx_DECREF(__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_RecMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RecMethod__set_state(RecMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.lazy = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RecMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ValidatorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_45__pyx_unpickle_ValidatorMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_45__pyx_unpickle_ValidatorMethod = {"__pyx_unpickle_ValidatorMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_45__pyx_unpickle_ValidatorMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_45__pyx_unpickle_ValidatorMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ValidatorMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ValidatorMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ValidatorMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ValidatorMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ValidatorMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ValidatorMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_44__pyx_unpickle_ValidatorMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_44__pyx_unpickle_ValidatorMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ValidatorMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x05cb144, 0x0fd2cf8, 0xb0f2d60): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__19, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x05cb144, 0x0fd2cf8, 0xb0f2d60): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum * __pyx_result = ValidatorMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x05cb144, 0x0fd2cf8, 0xb0f2d60): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ValidatorMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x05cb144, 0x0fd2cf8, 0xb0f2d60): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum * __pyx_result = ValidatorMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum * __pyx_result = ValidatorMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ValidatorMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ValidatorMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x05cb144, 0x0fd2cf8, 0xb0f2d60) = (_dispatch, aliaser, method, validators))" % __pyx_checksum * __pyx_result = ValidatorMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ValidatorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ValidatorMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ValidatorMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ValidatorMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] # <<<<<<<<<<<<<< * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->aliaser); __Pyx_DECREF(__pyx_v___pyx_result->aliaser); __pyx_v___pyx_result->aliaser = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->validators); __Pyx_DECREF(__pyx_v___pyx_result->validators); __pyx_v___pyx_result->validators = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 4); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ValidatorMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_CoercerMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_47__pyx_unpickle_CoercerMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_47__pyx_unpickle_CoercerMethod = {"__pyx_unpickle_CoercerMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_47__pyx_unpickle_CoercerMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_47__pyx_unpickle_CoercerMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_CoercerMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_CoercerMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_CoercerMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_CoercerMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_CoercerMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_CoercerMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_46__pyx_unpickle_CoercerMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_46__pyx_unpickle_CoercerMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_CoercerMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x10936af, 0x1e4e258, 0xf94bd36): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__20, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x10936af, 0x1e4e258, 0xf94bd36): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum * __pyx_result = CoercerMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x10936af, 0x1e4e258, 0xf94bd36): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = CoercerMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x10936af, 0x1e4e258, 0xf94bd36): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum * __pyx_result = CoercerMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum * __pyx_result = CoercerMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = CoercerMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_CoercerMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x10936af, 0x1e4e258, 0xf94bd36) = (_dispatch, cls, coercer, method))" % __pyx_checksum * __pyx_result = CoercerMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_CoercerMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_CoercerMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_CoercerMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_CoercerMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] # <<<<<<<<<<<<<< * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7cpython_4type_type))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->cls); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->cls); __pyx_v___pyx_result->cls = ((PyTypeObject *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->coercer); __Pyx_DECREF(__pyx_v___pyx_result->coercer); __pyx_v___pyx_result->coercer = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 4); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ } /* "(tree fragment)":11 * __pyx_unpickle_CoercerMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_CoercerMethod__set_state(CoercerMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.coercer = __pyx_state[2]; __pyx_result.method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_CoercerMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_TypeCheckMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_49__pyx_unpickle_TypeCheckMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_49__pyx_unpickle_TypeCheckMethod = {"__pyx_unpickle_TypeCheckMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_49__pyx_unpickle_TypeCheckMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_49__pyx_unpickle_TypeCheckMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_TypeCheckMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_TypeCheckMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_TypeCheckMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_TypeCheckMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_TypeCheckMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_TypeCheckMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_48__pyx_unpickle_TypeCheckMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_48__pyx_unpickle_TypeCheckMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_TypeCheckMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xec01d0d, 0xe559150, 0x29257f8): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__21, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xec01d0d, 0xe559150, 0x29257f8): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum * __pyx_result = TypeCheckMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xec01d0d, 0xe559150, 0x29257f8): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = TypeCheckMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xec01d0d, 0xe559150, 0x29257f8): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum * __pyx_result = TypeCheckMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum * __pyx_result = TypeCheckMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = TypeCheckMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TypeCheckMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xec01d0d, 0xe559150, 0x29257f8) = (_dispatch, expected, fallback))" % __pyx_checksum * __pyx_result = TypeCheckMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_TypeCheckMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_TypeCheckMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TypeCheckMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_TypeCheckMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->expected); __Pyx_DECREF(__pyx_v___pyx_result->expected); __pyx_v___pyx_result->expected = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->fallback); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->fallback); __pyx_v___pyx_result->fallback = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_TypeCheckMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_AnyMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_51__pyx_unpickle_AnyMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_51__pyx_unpickle_AnyMethod = {"__pyx_unpickle_AnyMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_51__pyx_unpickle_AnyMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_51__pyx_unpickle_AnyMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_AnyMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_AnyMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_AnyMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_AnyMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_AnyMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_AnyMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_50__pyx_unpickle_AnyMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_50__pyx_unpickle_AnyMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_AnyMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__22, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = AnyMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = AnyMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = AnyMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = AnyMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = AnyMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AnyMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = AnyMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_AnyMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_AnyMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AnyMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_AnyMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_AnyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_AnyMethod__set_state(AnyMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_AnyMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ListCheckOnlyMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_53__pyx_unpickle_ListCheckOnlyMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_53__pyx_unpickle_ListCheckOnlyMethod = {"__pyx_unpickle_ListCheckOnlyMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_53__pyx_unpickle_ListCheckOnlyMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_53__pyx_unpickle_ListCheckOnlyMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ListCheckOnlyMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ListCheckOnlyMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ListCheckOnlyMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ListCheckOnlyMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ListCheckOnlyMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ListCheckOnlyMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_52__pyx_unpickle_ListCheckOnlyMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_52__pyx_unpickle_ListCheckOnlyMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ListCheckOnlyMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__23, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListCheckOnlyMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ListCheckOnlyMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListCheckOnlyMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListCheckOnlyMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ListCheckOnlyMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListCheckOnlyMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListCheckOnlyMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ListCheckOnlyMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ListCheckOnlyMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListCheckOnlyMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ListCheckOnlyMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->value_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->value_method); __pyx_v___pyx_result->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ListCheckOnlyMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ListMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_55__pyx_unpickle_ListMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_55__pyx_unpickle_ListMethod = {"__pyx_unpickle_ListMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_55__pyx_unpickle_ListMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_55__pyx_unpickle_ListMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ListMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ListMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ListMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ListMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ListMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ListMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_54__pyx_unpickle_ListMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_54__pyx_unpickle_ListMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ListMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__23, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ListMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ListMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = ListMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ListMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ListMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ListMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ListMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->value_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->value_method); __pyx_v___pyx_result->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ListMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ListMethod__set_state(ListMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ListMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_SetMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_57__pyx_unpickle_SetMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_57__pyx_unpickle_SetMethod = {"__pyx_unpickle_SetMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_57__pyx_unpickle_SetMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_57__pyx_unpickle_SetMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_SetMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SetMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SetMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_SetMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SetMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SetMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_56__pyx_unpickle_SetMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_56__pyx_unpickle_SetMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_SetMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__23, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = SetMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = SetMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20ce6dc, 0xb5e106b, 0xe655191): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = SetMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SetMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = SetMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = SetMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SetMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20ce6dc, 0xb5e106b, 0xe655191) = (_dispatch, constraints, value_method))" % __pyx_checksum * __pyx_result = SetMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_SetMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SetMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SetMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_SetMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->value_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->value_method); __pyx_v___pyx_result->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SetMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_FrozenSetMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_59__pyx_unpickle_FrozenSetMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_59__pyx_unpickle_FrozenSetMethod = {"__pyx_unpickle_FrozenSetMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_59__pyx_unpickle_FrozenSetMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_59__pyx_unpickle_FrozenSetMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_FrozenSetMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FrozenSetMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FrozenSetMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_FrozenSetMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FrozenSetMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FrozenSetMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_58__pyx_unpickle_FrozenSetMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_58__pyx_unpickle_FrozenSetMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FrozenSetMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__24, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = FrozenSetMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = FrozenSetMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = FrozenSetMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = FrozenSetMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = FrozenSetMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FrozenSetMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = FrozenSetMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_FrozenSetMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FrozenSetMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FrozenSetMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FrozenSetMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_FrozenSetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FrozenSetMethod__set_state(FrozenSetMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FrozenSetMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_VariadicTupleMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_61__pyx_unpickle_VariadicTupleMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_61__pyx_unpickle_VariadicTupleMethod = {"__pyx_unpickle_VariadicTupleMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_61__pyx_unpickle_VariadicTupleMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_61__pyx_unpickle_VariadicTupleMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_VariadicTupleMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VariadicTupleMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VariadicTupleMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_VariadicTupleMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VariadicTupleMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_VariadicTupleMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_60__pyx_unpickle_VariadicTupleMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_60__pyx_unpickle_VariadicTupleMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_VariadicTupleMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__24, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = VariadicTupleMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = VariadicTupleMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xb3817b2, 0xee5bb75, 0xaafb1dc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = VariadicTupleMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = VariadicTupleMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = VariadicTupleMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_VariadicTupleMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xb3817b2, 0xee5bb75, 0xaafb1dc) = (_dispatch, method))" % __pyx_checksum * __pyx_result = VariadicTupleMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_VariadicTupleMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_VariadicTupleMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_VariadicTupleMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_VariadicTupleMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_VariadicTupleMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_LiteralMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_63__pyx_unpickle_LiteralMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_63__pyx_unpickle_LiteralMethod = {"__pyx_unpickle_LiteralMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_63__pyx_unpickle_LiteralMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_63__pyx_unpickle_LiteralMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_LiteralMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_LiteralMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_LiteralMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_LiteralMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_LiteralMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_LiteralMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_62__pyx_unpickle_LiteralMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_62__pyx_unpickle_LiteralMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_LiteralMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x82e9a7c, 0x0430998, 0x7217703): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__25, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x82e9a7c, 0x0430998, 0x7217703): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum * __pyx_result = LiteralMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x82e9a7c, 0x0430998, 0x7217703): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = LiteralMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x82e9a7c, 0x0430998, 0x7217703): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum * __pyx_result = LiteralMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum * __pyx_result = LiteralMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = LiteralMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_LiteralMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x82e9a7c, 0x0430998, 0x7217703) = (_dispatch, coercer, error, types, value_map))" % __pyx_checksum * __pyx_result = LiteralMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_LiteralMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_LiteralMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_LiteralMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_LiteralMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] # <<<<<<<<<<<<<< * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->coercer); __Pyx_DECREF(__pyx_v___pyx_result->coercer); __pyx_v___pyx_result->coercer = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->error); __Pyx_DECREF(__pyx_v___pyx_result->error); __pyx_v___pyx_result->error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->types); __Pyx_DECREF(__pyx_v___pyx_result->types); __pyx_v___pyx_result->types = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->value_map); __Pyx_DECREF(__pyx_v___pyx_result->value_map); __pyx_v___pyx_result->value_map = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 5); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ } /* "(tree fragment)":11 * __pyx_unpickle_LiteralMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_LiteralMethod__set_state(LiteralMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.types = __pyx_state[3]; __pyx_result.value_map = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_LiteralMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MappingCheckOnly(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_65__pyx_unpickle_MappingCheckOnly(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_65__pyx_unpickle_MappingCheckOnly = {"__pyx_unpickle_MappingCheckOnly", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_65__pyx_unpickle_MappingCheckOnly, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_65__pyx_unpickle_MappingCheckOnly(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MappingCheckOnly (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MappingCheckOnly", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MappingCheckOnly", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MappingCheckOnly") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MappingCheckOnly", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MappingCheckOnly", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_64__pyx_unpickle_MappingCheckOnly(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_64__pyx_unpickle_MappingCheckOnly(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MappingCheckOnly", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__26, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingCheckOnly.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MappingCheckOnly.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingCheckOnly.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingCheckOnly.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MappingCheckOnly.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingCheckOnly__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingCheckOnly.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MappingCheckOnly(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MappingCheckOnly", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingCheckOnly__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MappingCheckOnly__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] # <<<<<<<<<<<<<< * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->key_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->key_method); __pyx_v___pyx_result->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->value_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->value_method); __pyx_v___pyx_result->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 4); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MappingCheckOnly__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_MappingMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_67__pyx_unpickle_MappingMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_67__pyx_unpickle_MappingMethod = {"__pyx_unpickle_MappingMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_67__pyx_unpickle_MappingMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_67__pyx_unpickle_MappingMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_MappingMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MappingMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MappingMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_MappingMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_MappingMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MappingMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_66__pyx_unpickle_MappingMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_66__pyx_unpickle_MappingMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MappingMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__26, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = MappingMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x1bb7c22, 0x20f6b09, 0x7264445): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = MappingMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x1bb7c22, 0x20f6b09, 0x7264445) = (_dispatch, constraints, key_method, value_method))" % __pyx_checksum * __pyx_result = MappingMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_MappingMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MappingMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_MappingMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_MappingMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] # <<<<<<<<<<<<<< * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->key_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->key_method); __pyx_v___pyx_result->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->value_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->value_method); __pyx_v___pyx_result->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 4); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ } /* "(tree fragment)":11 * __pyx_unpickle_MappingMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MappingMethod__set_state(MappingMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_MappingMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_Field(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_69__pyx_unpickle_Field(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_69__pyx_unpickle_Field = {"__pyx_unpickle_Field", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_69__pyx_unpickle_Field, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_69__pyx_unpickle_Field(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_Field (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Field", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Field", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_Field") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Field", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Field", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_68__pyx_unpickle_Field(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_68__pyx_unpickle_Field(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Field", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x8d79089, 0xabfd759, 0xd993b5e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__27, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x8d79089, 0xabfd759, 0xd993b5e): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum * __pyx_result = Field.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x8d79089, 0xabfd759, 0xd993b5e): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = Field.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x8d79089, 0xabfd759, 0xd993b5e): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum * __pyx_result = Field.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Field), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum * __pyx_result = Field.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = Field.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Field__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x8d79089, 0xabfd759, 0xd993b5e) = (alias, fall_back_on_default, method, name, required, required_by))" % __pyx_checksum * __pyx_result = Field.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_Field(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Field", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Field__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Field *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Field__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] # <<<<<<<<<<<<<< * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[6]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->alias); __Pyx_DECREF(__pyx_v___pyx_result->alias); __pyx_v___pyx_result->alias = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->fall_back_on_default = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->required = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->required_by); __Pyx_DECREF(__pyx_v___pyx_result->required_by); __pyx_v___pyx_result->required_by = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[6]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 6); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[6]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[6]) */ } /* "(tree fragment)":11 * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Field__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_FlattenedField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_71__pyx_unpickle_FlattenedField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_71__pyx_unpickle_FlattenedField = {"__pyx_unpickle_FlattenedField", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_71__pyx_unpickle_FlattenedField, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_71__pyx_unpickle_FlattenedField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_FlattenedField (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FlattenedField", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FlattenedField", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_FlattenedField") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FlattenedField", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FlattenedField", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_70__pyx_unpickle_FlattenedField(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_70__pyx_unpickle_FlattenedField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FlattenedField", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd032e13, 0x2d518b7, 0xcf766cb): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__28, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xd032e13, 0x2d518b7, 0xcf766cb): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = FlattenedField.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xd032e13, 0x2d518b7, 0xcf766cb): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = FlattenedField.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xd032e13, 0x2d518b7, 0xcf766cb): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = FlattenedField.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = FlattenedField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = FlattenedField.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FlattenedField__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xd032e13, 0x2d518b7, 0xcf766cb) = (aliases, fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = FlattenedField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_FlattenedField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FlattenedField", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FlattenedField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FlattenedField__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] # <<<<<<<<<<<<<< * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->aliases); __Pyx_DECREF(__pyx_v___pyx_result->aliases); __pyx_v___pyx_result->aliases = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->fall_back_on_default = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 4); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ } /* "(tree fragment)":11 * __pyx_unpickle_FlattenedField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FlattenedField__set_state(FlattenedField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.aliases = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FlattenedField__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_PatternField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_73__pyx_unpickle_PatternField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_73__pyx_unpickle_PatternField = {"__pyx_unpickle_PatternField", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_73__pyx_unpickle_PatternField, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_73__pyx_unpickle_PatternField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_PatternField (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PatternField", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PatternField", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_PatternField") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PatternField", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_PatternField", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_72__pyx_unpickle_PatternField(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_72__pyx_unpickle_PatternField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_PatternField", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x385fee3, 0xa22eb65, 0xb38b346): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__29, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x385fee3, 0xa22eb65, 0xb38b346): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum * __pyx_result = PatternField.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x385fee3, 0xa22eb65, 0xb38b346): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = PatternField.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x385fee3, 0xa22eb65, 0xb38b346): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum * __pyx_result = PatternField.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternField), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum * __pyx_result = PatternField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = PatternField.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternField__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x385fee3, 0xa22eb65, 0xb38b346) = (fall_back_on_default, method, name, pattern))" % __pyx_checksum * __pyx_result = PatternField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_PatternField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_PatternField", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_PatternField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_PatternField__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] # <<<<<<<<<<<<<< * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->fall_back_on_default = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->pattern); __Pyx_DECREF(__pyx_v___pyx_result->pattern); __pyx_v___pyx_result->pattern = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 4); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[4]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[4]) */ } /* "(tree fragment)":11 * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_PatternField__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_AdditionalField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_75__pyx_unpickle_AdditionalField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_75__pyx_unpickle_AdditionalField = {"__pyx_unpickle_AdditionalField", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_75__pyx_unpickle_AdditionalField, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_75__pyx_unpickle_AdditionalField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_AdditionalField (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_AdditionalField", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_AdditionalField", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_AdditionalField") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_AdditionalField", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_AdditionalField", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_74__pyx_unpickle_AdditionalField(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_74__pyx_unpickle_AdditionalField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_AdditionalField", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x7fc4b55, 0x7ba738f, 0x92179fc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__30, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x7fc4b55, 0x7ba738f, 0x92179fc): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = AdditionalField.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x7fc4b55, 0x7ba738f, 0x92179fc): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = AdditionalField.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x7fc4b55, 0x7ba738f, 0x92179fc): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = AdditionalField.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = AdditionalField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = AdditionalField.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AdditionalField__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x7fc4b55, 0x7ba738f, 0x92179fc) = (fall_back_on_default, method, name))" % __pyx_checksum * __pyx_result = AdditionalField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_AdditionalField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_AdditionalField", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_AdditionalField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_AdditionalField__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->fall_back_on_default = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 3); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_AdditionalField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_AdditionalField__set_state(AdditionalField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_AdditionalField__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_Constructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_77__pyx_unpickle_Constructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_77__pyx_unpickle_Constructor = {"__pyx_unpickle_Constructor", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_77__pyx_unpickle_Constructor, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_77__pyx_unpickle_Constructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_Constructor (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Constructor", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Constructor", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_Constructor") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Constructor", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Constructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_76__pyx_unpickle_Constructor(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_76__pyx_unpickle_Constructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Constructor", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__31, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = Constructor.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = Constructor.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = Constructor.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = Constructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = Constructor.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constructor__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = Constructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_Constructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Constructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Constructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Constructor__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->_dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->cls); __Pyx_DECREF(__pyx_v___pyx_result->cls); __pyx_v___pyx_result->cls = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Constructor__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_NoConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_79__pyx_unpickle_NoConstructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_79__pyx_unpickle_NoConstructor = {"__pyx_unpickle_NoConstructor", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_79__pyx_unpickle_NoConstructor, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_79__pyx_unpickle_NoConstructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_NoConstructor (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_NoConstructor", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_NoConstructor", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_NoConstructor") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_NoConstructor", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_NoConstructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_78__pyx_unpickle_NoConstructor(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_78__pyx_unpickle_NoConstructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_NoConstructor", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__31, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = NoConstructor.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = NoConstructor.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = NoConstructor.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = NoConstructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = NoConstructor.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoConstructor__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = NoConstructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_NoConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_NoConstructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoConstructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_NoConstructor__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.cls); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.cls); __pyx_v___pyx_result->__pyx_base.cls = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_NoConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_NoConstructor__set_state(NoConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_NoConstructor__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_RawConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_81__pyx_unpickle_RawConstructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_81__pyx_unpickle_RawConstructor = {"__pyx_unpickle_RawConstructor", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_81__pyx_unpickle_RawConstructor, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_81__pyx_unpickle_RawConstructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_RawConstructor (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RawConstructor", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RawConstructor", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_RawConstructor") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RawConstructor", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RawConstructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_80__pyx_unpickle_RawConstructor(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_80__pyx_unpickle_RawConstructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_RawConstructor", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__31, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructor.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = RawConstructor.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructor.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = RawConstructor.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructor__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_RawConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RawConstructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_RawConstructor__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.cls); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.cls); __pyx_v___pyx_result->__pyx_base.cls = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RawConstructor__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_RawConstructorCopy(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_83__pyx_unpickle_RawConstructorCopy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_83__pyx_unpickle_RawConstructorCopy = {"__pyx_unpickle_RawConstructorCopy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_83__pyx_unpickle_RawConstructorCopy, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_83__pyx_unpickle_RawConstructorCopy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_RawConstructorCopy (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RawConstructorCopy", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RawConstructorCopy", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_RawConstructorCopy") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_RawConstructorCopy", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RawConstructorCopy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_82__pyx_unpickle_RawConstructorCopy(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_82__pyx_unpickle_RawConstructorCopy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_RawConstructorCopy", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__31, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructorCopy.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = RawConstructorCopy.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x67ee66e, 0xa47be25, 0x686e94b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructorCopy.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructorCopy.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = RawConstructorCopy.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructorCopy__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x67ee66e, 0xa47be25, 0x686e94b) = (_dispatch, cls))" % __pyx_checksum * __pyx_result = RawConstructorCopy.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_RawConstructorCopy(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RawConstructorCopy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_RawConstructorCopy__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_RawConstructorCopy__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.cls); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.cls); __pyx_v___pyx_result->__pyx_base.cls = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_RawConstructorCopy__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RawConstructorCopy__set_state(RawConstructorCopy __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_RawConstructorCopy__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_DefaultField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_85__pyx_unpickle_DefaultField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_85__pyx_unpickle_DefaultField = {"__pyx_unpickle_DefaultField", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_85__pyx_unpickle_DefaultField, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_85__pyx_unpickle_DefaultField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_DefaultField (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DefaultField", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DefaultField", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_DefaultField") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DefaultField", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DefaultField", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_84__pyx_unpickle_DefaultField(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_84__pyx_unpickle_DefaultField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_DefaultField", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25bbacb, 0x84e6619, 0x90f00a8): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__32, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x25bbacb, 0x84e6619, 0x90f00a8): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum * __pyx_result = DefaultField.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x25bbacb, 0x84e6619, 0x90f00a8): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = DefaultField.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25bbacb, 0x84e6619, 0x90f00a8): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum * __pyx_result = DefaultField.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DefaultField), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum * __pyx_result = DefaultField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = DefaultField.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DefaultField__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25bbacb, 0x84e6619, 0x90f00a8) = (default_value, name))" % __pyx_checksum * __pyx_result = DefaultField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_DefaultField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DefaultField", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DefaultField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_DefaultField__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->default_value); __Pyx_DECREF(__pyx_v___pyx_result->default_value); __pyx_v___pyx_result->default_value = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 2); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DefaultField__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_FactoryField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_87__pyx_unpickle_FactoryField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_87__pyx_unpickle_FactoryField = {"__pyx_unpickle_FactoryField", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_87__pyx_unpickle_FactoryField, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_87__pyx_unpickle_FactoryField(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_FactoryField (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FactoryField", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FactoryField", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_FactoryField") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FactoryField", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FactoryField", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_86__pyx_unpickle_FactoryField(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_86__pyx_unpickle_FactoryField(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FactoryField", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x9430622, 0x7001cd6, 0x1cf0d00): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__33, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x9430622, 0x7001cd6, 0x1cf0d00): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum * __pyx_result = FactoryField.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x9430622, 0x7001cd6, 0x1cf0d00): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = FactoryField.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x9430622, 0x7001cd6, 0x1cf0d00): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum * __pyx_result = FactoryField.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FactoryField), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum * __pyx_result = FactoryField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = FactoryField.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FactoryField__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x9430622, 0x7001cd6, 0x1cf0d00) = (factory, name))" % __pyx_checksum * __pyx_result = FactoryField.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_FactoryField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FactoryField", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FactoryField__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FactoryField__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->factory); __Pyx_DECREF(__pyx_v___pyx_result->factory); __pyx_v___pyx_result->factory = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->name); __Pyx_DECREF(__pyx_v___pyx_result->name); __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 2); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_FactoryField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FactoryField__set_state(FactoryField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.factory = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FactoryField__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_FieldsConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_89__pyx_unpickle_FieldsConstructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_89__pyx_unpickle_FieldsConstructor = {"__pyx_unpickle_FieldsConstructor", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_89__pyx_unpickle_FieldsConstructor, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_89__pyx_unpickle_FieldsConstructor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_FieldsConstructor (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FieldsConstructor", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FieldsConstructor", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_FieldsConstructor") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FieldsConstructor", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FieldsConstructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_88__pyx_unpickle_FieldsConstructor(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_88__pyx_unpickle_FieldsConstructor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FieldsConstructor", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x53da5a9, 0xf0c77c8, 0xc863e14): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__34, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x53da5a9, 0xf0c77c8, 0xc863e14): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum * __pyx_result = FieldsConstructor.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x53da5a9, 0xf0c77c8, 0xc863e14): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = FieldsConstructor.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x53da5a9, 0xf0c77c8, 0xc863e14): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum * __pyx_result = FieldsConstructor.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum * __pyx_result = FieldsConstructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = FieldsConstructor.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FieldsConstructor__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x53da5a9, 0xf0c77c8, 0xc863e14) = (_dispatch, cls, default_fields, factory_fields, nb_fields))" % __pyx_checksum * __pyx_result = FieldsConstructor.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_FieldsConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FieldsConstructor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FieldsConstructor__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; long __pyx_t_3; int __pyx_t_4; Py_ssize_t __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FieldsConstructor__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] # <<<<<<<<<<<<<< * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.cls); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.cls); __pyx_v___pyx_result->__pyx_base.cls = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->default_fields); __Pyx_DECREF(__pyx_v___pyx_result->default_fields); __pyx_v___pyx_result->default_fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->factory_fields); __Pyx_DECREF(__pyx_v___pyx_result->factory_fields); __pyx_v___pyx_result->factory_fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_long(__pyx_t_1); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->nb_fields = __pyx_t_3; /* "(tree fragment)":13 * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_6 = (__pyx_t_5 > 5); if (__pyx_t_6) { } else { __pyx_t_4 = __pyx_t_6; goto __pyx_L4_bool_binop_done; } __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = __pyx_t_6; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) # <<<<<<<<<<<<<< */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ } /* "(tree fragment)":11 * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FieldsConstructor__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_SimpleObjectMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_91__pyx_unpickle_SimpleObjectMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_91__pyx_unpickle_SimpleObjectMethod = {"__pyx_unpickle_SimpleObjectMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_91__pyx_unpickle_SimpleObjectMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_91__pyx_unpickle_SimpleObjectMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_SimpleObjectMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SimpleObjectMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SimpleObjectMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_SimpleObjectMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SimpleObjectMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SimpleObjectMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_90__pyx_unpickle_SimpleObjectMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_90__pyx_unpickle_SimpleObjectMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_SimpleObjectMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xa2095a2, 0xcb7e720, 0x678400a): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__35, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xa2095a2, 0xcb7e720, 0x678400a): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum * __pyx_result = SimpleObjectMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xa2095a2, 0xcb7e720, 0x678400a): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = SimpleObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xa2095a2, 0xcb7e720, 0x678400a): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum * __pyx_result = SimpleObjectMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum * __pyx_result = SimpleObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = SimpleObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SimpleObjectMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xa2095a2, 0xcb7e720, 0x678400a) = (_dispatch, all_aliases, constructor, fields, missing, typed_dict, unexpected))" % __pyx_checksum * __pyx_result = SimpleObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_SimpleObjectMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SimpleObjectMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] * if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SimpleObjectMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_SimpleObjectMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] # <<<<<<<<<<<<<< * if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[7]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->all_aliases); __Pyx_DECREF(__pyx_v___pyx_result->all_aliases); __pyx_v___pyx_result->all_aliases = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_Constructor))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->constructor); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->constructor); __pyx_v___pyx_result->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->fields); __Pyx_DECREF(__pyx_v___pyx_result->fields); __pyx_v___pyx_result->fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->missing); __Pyx_DECREF(__pyx_v___pyx_result->missing); __pyx_v___pyx_result->missing = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->typed_dict = __pyx_t_3; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->unexpected); __Pyx_DECREF(__pyx_v___pyx_result->unexpected); __pyx_v___pyx_result->unexpected = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] * if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[7]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 7); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] * if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[7]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 7, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] * if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[7]) */ } /* "(tree fragment)":11 * __pyx_unpickle_SimpleObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SimpleObjectMethod__set_state(SimpleObjectMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.all_aliases = __pyx_state[1]; __pyx_result.constructor = __pyx_state[2]; __pyx_result.fields = __pyx_state[3]; __pyx_result.missing = __pyx_state[4]; __pyx_result.typed_dict = __pyx_state[5]; __pyx_result.unexpected = __pyx_state[6] * if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SimpleObjectMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ObjectMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_93__pyx_unpickle_ObjectMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_93__pyx_unpickle_ObjectMethod = {"__pyx_unpickle_ObjectMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_93__pyx_unpickle_ObjectMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_93__pyx_unpickle_ObjectMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ObjectMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ObjectMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ObjectMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ObjectMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ObjectMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ObjectMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_92__pyx_unpickle_ObjectMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_92__pyx_unpickle_ObjectMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ObjectMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xc6140ed, 0x5f23e2d, 0x962608b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__36, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xc6140ed, 0x5f23e2d, 0x962608b): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum * __pyx_result = ObjectMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xc6140ed, 0x5f23e2d, 0x962608b): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xc6140ed, 0x5f23e2d, 0x962608b): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum * __pyx_result = ObjectMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum * __pyx_result = ObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ObjectMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc6140ed, 0x5f23e2d, 0x962608b) = (_dispatch, additional_field, additional_properties, aggregate_fields, aliaser, all_aliases, constraints, constructor, fields, flattened_fields, init_defaults, missing, pattern_fields, post_init_modified, typed_dict, unexpected, validators))" % __pyx_checksum * __pyx_result = ObjectMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ObjectMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ObjectMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ObjectMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ObjectMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] # <<<<<<<<<<<<<< * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[17]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->additional_field); __Pyx_DECREF(__pyx_v___pyx_result->additional_field); __pyx_v___pyx_result->additional_field = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->additional_properties = __pyx_t_3; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->aggregate_fields = __pyx_t_3; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->aliaser); __Pyx_DECREF(__pyx_v___pyx_result->aliaser); __pyx_v___pyx_result->aliaser = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->all_aliases); __Pyx_DECREF(__pyx_v___pyx_result->all_aliases); __pyx_v___pyx_result->all_aliases = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 7, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_Constructor))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->constructor); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->constructor); __pyx_v___pyx_result->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 8, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->fields); __Pyx_DECREF(__pyx_v___pyx_result->fields); __pyx_v___pyx_result->fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 9, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->flattened_fields); __Pyx_DECREF(__pyx_v___pyx_result->flattened_fields); __pyx_v___pyx_result->flattened_fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 10, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->init_defaults); __Pyx_DECREF(__pyx_v___pyx_result->init_defaults); __pyx_v___pyx_result->init_defaults = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 11, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->missing); __Pyx_DECREF(__pyx_v___pyx_result->missing); __pyx_v___pyx_result->missing = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 12, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->pattern_fields); __Pyx_DECREF(__pyx_v___pyx_result->pattern_fields); __pyx_v___pyx_result->pattern_fields = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 13, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->post_init_modified); __Pyx_DECREF(__pyx_v___pyx_result->post_init_modified); __pyx_v___pyx_result->post_init_modified = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 14, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->typed_dict = __pyx_t_3; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 15, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->unexpected); __Pyx_DECREF(__pyx_v___pyx_result->unexpected); __pyx_v___pyx_result->unexpected = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 16, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->validators); __Pyx_DECREF(__pyx_v___pyx_result->validators); __pyx_v___pyx_result->validators = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[17]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 17); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[17]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 17, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[17]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ObjectMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_NoneMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_95__pyx_unpickle_NoneMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_95__pyx_unpickle_NoneMethod = {"__pyx_unpickle_NoneMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_95__pyx_unpickle_NoneMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_95__pyx_unpickle_NoneMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_NoneMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_NoneMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_NoneMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_NoneMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_NoneMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_NoneMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_94__pyx_unpickle_NoneMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_94__pyx_unpickle_NoneMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_NoneMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__17, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = NoneMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = NoneMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = NoneMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = NoneMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = NoneMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoneMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = NoneMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_NoneMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_NoneMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_NoneMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_NoneMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 1); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_NoneMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_NoneMethod__set_state(NoneMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_NoneMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_IntMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_97__pyx_unpickle_IntMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_97__pyx_unpickle_IntMethod = {"__pyx_unpickle_IntMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_97__pyx_unpickle_IntMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_97__pyx_unpickle_IntMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_IntMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_IntMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_IntMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_IntMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_IntMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_IntMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_96__pyx_unpickle_IntMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_96__pyx_unpickle_IntMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_IntMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__17, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = IntMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = IntMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = IntMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_IntMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = IntMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = IntMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_IntMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = IntMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_IntMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_IntMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_IntMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_IntMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 1); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_IntMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_FloatMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_99__pyx_unpickle_FloatMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_99__pyx_unpickle_FloatMethod = {"__pyx_unpickle_FloatMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_99__pyx_unpickle_FloatMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_99__pyx_unpickle_FloatMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_FloatMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FloatMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FloatMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_FloatMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FloatMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FloatMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_98__pyx_unpickle_FloatMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_98__pyx_unpickle_FloatMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FloatMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__17, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = FloatMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = FloatMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = FloatMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = FloatMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = FloatMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FloatMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = FloatMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_FloatMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FloatMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_FloatMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_FloatMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 1); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_FloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FloatMethod__set_state(FloatMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_FloatMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_StrMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_101__pyx_unpickle_StrMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_101__pyx_unpickle_StrMethod = {"__pyx_unpickle_StrMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_101__pyx_unpickle_StrMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_101__pyx_unpickle_StrMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_StrMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_StrMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_StrMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_StrMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_StrMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_StrMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_100__pyx_unpickle_StrMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_100__pyx_unpickle_StrMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_StrMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__17, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = StrMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = StrMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = StrMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_StrMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = StrMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = StrMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_StrMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = StrMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_StrMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_StrMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_StrMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_StrMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 1); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_StrMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_BoolMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_103__pyx_unpickle_BoolMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_103__pyx_unpickle_BoolMethod = {"__pyx_unpickle_BoolMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_103__pyx_unpickle_BoolMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_103__pyx_unpickle_BoolMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_BoolMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_BoolMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_BoolMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_BoolMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_BoolMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_BoolMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_102__pyx_unpickle_BoolMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_102__pyx_unpickle_BoolMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_BoolMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__17, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = BoolMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = BoolMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xdda983d, 0xf75540b, 0x05289b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = BoolMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = BoolMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = BoolMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_BoolMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xdda983d, 0xf75540b, 0x05289b3) = (_dispatch))" % __pyx_checksum * __pyx_result = BoolMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_BoolMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_BoolMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_BoolMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_BoolMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] # <<<<<<<<<<<<<< * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 1); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[1]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[1]) */ } /* "(tree fragment)":11 * __pyx_unpickle_BoolMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_BoolMethod__set_state(BoolMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_BoolMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedIntMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_105__pyx_unpickle_ConstrainedIntMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_105__pyx_unpickle_ConstrainedIntMethod = {"__pyx_unpickle_ConstrainedIntMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_105__pyx_unpickle_ConstrainedIntMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_105__pyx_unpickle_ConstrainedIntMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedIntMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedIntMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedIntMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConstrainedIntMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedIntMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedIntMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_104__pyx_unpickle_ConstrainedIntMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_104__pyx_unpickle_ConstrainedIntMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedIntMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__22, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedIntMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConstrainedIntMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedIntMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedIntMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConstrainedIntMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedIntMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedIntMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedIntMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedIntMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedIntMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedIntMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base.__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedIntMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedFloatMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_107__pyx_unpickle_ConstrainedFloatMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_107__pyx_unpickle_ConstrainedFloatMethod = {"__pyx_unpickle_ConstrainedFloatMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_107__pyx_unpickle_ConstrainedFloatMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_107__pyx_unpickle_ConstrainedFloatMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedFloatMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedFloatMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedFloatMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConstrainedFloatMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedFloatMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedFloatMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_106__pyx_unpickle_ConstrainedFloatMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_106__pyx_unpickle_ConstrainedFloatMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedFloatMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__22, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedFloatMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConstrainedFloatMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedFloatMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedFloatMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConstrainedFloatMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedFloatMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedFloatMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedFloatMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedFloatMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedFloatMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedFloatMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base.__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedFloatMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedFloatMethod__set_state(ConstrainedFloatMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedFloatMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedStrMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_109__pyx_unpickle_ConstrainedStrMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_109__pyx_unpickle_ConstrainedStrMethod = {"__pyx_unpickle_ConstrainedStrMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_109__pyx_unpickle_ConstrainedStrMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_109__pyx_unpickle_ConstrainedStrMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedStrMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedStrMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedStrMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConstrainedStrMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConstrainedStrMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedStrMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_108__pyx_unpickle_ConstrainedStrMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_108__pyx_unpickle_ConstrainedStrMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedStrMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__22, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedStrMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConstrainedStrMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x25cf511, 0x4676d01, 0x5539d84): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedStrMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedStrMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConstrainedStrMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedStrMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x25cf511, 0x4676d01, 0x5539d84) = (_dispatch, constraints))" % __pyx_checksum * __pyx_result = ConstrainedStrMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedStrMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedStrMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConstrainedStrMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConstrainedStrMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base.__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConstrainedStrMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_SubprimitiveMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_111__pyx_unpickle_SubprimitiveMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_111__pyx_unpickle_SubprimitiveMethod = {"__pyx_unpickle_SubprimitiveMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_111__pyx_unpickle_SubprimitiveMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_111__pyx_unpickle_SubprimitiveMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_SubprimitiveMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SubprimitiveMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SubprimitiveMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_SubprimitiveMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_SubprimitiveMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SubprimitiveMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_110__pyx_unpickle_SubprimitiveMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_110__pyx_unpickle_SubprimitiveMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_SubprimitiveMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x83f4d57, 0x580f4c9, 0xa61373f): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__37, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x83f4d57, 0x580f4c9, 0xa61373f): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum * __pyx_result = SubprimitiveMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x83f4d57, 0x580f4c9, 0xa61373f): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = SubprimitiveMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x83f4d57, 0x580f4c9, 0xa61373f): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum * __pyx_result = SubprimitiveMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum * __pyx_result = SubprimitiveMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = SubprimitiveMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SubprimitiveMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x83f4d57, 0x580f4c9, 0xa61373f) = (_dispatch, cls, method))" % __pyx_checksum * __pyx_result = SubprimitiveMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_SubprimitiveMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SubprimitiveMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_SubprimitiveMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_SubprimitiveMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7cpython_4type_type))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->cls); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->cls); __pyx_v___pyx_result->cls = ((PyTypeObject *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_SubprimitiveMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SubprimitiveMethod__set_state(SubprimitiveMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_SubprimitiveMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_TupleMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_113__pyx_unpickle_TupleMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_113__pyx_unpickle_TupleMethod = {"__pyx_unpickle_TupleMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_113__pyx_unpickle_TupleMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_113__pyx_unpickle_TupleMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_TupleMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_TupleMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_TupleMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_TupleMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_TupleMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_TupleMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_112__pyx_unpickle_TupleMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_112__pyx_unpickle_TupleMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_TupleMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x93436a4, 0x8fc5d7e, 0x719dc0a): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__38, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x93436a4, 0x8fc5d7e, 0x719dc0a): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum * __pyx_result = TupleMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x93436a4, 0x8fc5d7e, 0x719dc0a): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = TupleMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x93436a4, 0x8fc5d7e, 0x719dc0a): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum * __pyx_result = TupleMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum * __pyx_result = TupleMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = TupleMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TupleMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x93436a4, 0x8fc5d7e, 0x719dc0a) = (_dispatch, constraints, elt_methods, max_len_error, min_len_error))" % __pyx_checksum * __pyx_result = TupleMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_TupleMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_TupleMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_TupleMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_TupleMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] # <<<<<<<<<<<<<< * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->constraints); __Pyx_DECREF(__pyx_v___pyx_result->constraints); __pyx_v___pyx_result->constraints = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->elt_methods); __Pyx_DECREF(__pyx_v___pyx_result->elt_methods); __pyx_v___pyx_result->elt_methods = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->max_len_error); __Pyx_DECREF(__pyx_v___pyx_result->max_len_error); __pyx_v___pyx_result->max_len_error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->min_len_error); __Pyx_DECREF(__pyx_v___pyx_result->min_len_error); __pyx_v___pyx_result->min_len_error = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 5); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ } /* "(tree fragment)":11 * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_TupleMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_OptionalMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_115__pyx_unpickle_OptionalMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_115__pyx_unpickle_OptionalMethod = {"__pyx_unpickle_OptionalMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_115__pyx_unpickle_OptionalMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_115__pyx_unpickle_OptionalMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_OptionalMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_OptionalMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_OptionalMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_OptionalMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_OptionalMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_OptionalMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_114__pyx_unpickle_OptionalMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_114__pyx_unpickle_OptionalMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_OptionalMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xe39a796, 0xe310bb2, 0xe76e409): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__39, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xe39a796, 0xe310bb2, 0xe76e409): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum * __pyx_result = OptionalMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xe39a796, 0xe310bb2, 0xe76e409): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = OptionalMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xe39a796, 0xe310bb2, 0xe76e409): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum * __pyx_result = OptionalMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum * __pyx_result = OptionalMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = OptionalMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_OptionalMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xe39a796, 0xe310bb2, 0xe76e409) = (_dispatch, coercer, value_method))" % __pyx_checksum * __pyx_result = OptionalMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_OptionalMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_OptionalMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_OptionalMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_OptionalMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->coercer); __Pyx_DECREF(__pyx_v___pyx_result->coercer); __pyx_v___pyx_result->coercer = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->value_method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->value_method); __pyx_v___pyx_result->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_OptionalMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_OptionalMethod__set_state(OptionalMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.coercer = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_OptionalMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_UnionByTypeMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_117__pyx_unpickle_UnionByTypeMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_117__pyx_unpickle_UnionByTypeMethod = {"__pyx_unpickle_UnionByTypeMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_117__pyx_unpickle_UnionByTypeMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_117__pyx_unpickle_UnionByTypeMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_UnionByTypeMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UnionByTypeMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UnionByTypeMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_UnionByTypeMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UnionByTypeMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UnionByTypeMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_116__pyx_unpickle_UnionByTypeMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_116__pyx_unpickle_UnionByTypeMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_UnionByTypeMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20dc369, 0x118f27f, 0x551d0b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__40, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x20dc369, 0x118f27f, 0x551d0b3): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum * __pyx_result = UnionByTypeMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x20dc369, 0x118f27f, 0x551d0b3): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = UnionByTypeMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x20dc369, 0x118f27f, 0x551d0b3): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum * __pyx_result = UnionByTypeMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum * __pyx_result = UnionByTypeMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = UnionByTypeMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionByTypeMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x20dc369, 0x118f27f, 0x551d0b3) = (_dispatch, method_by_cls))" % __pyx_checksum * __pyx_result = UnionByTypeMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_UnionByTypeMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UnionByTypeMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionByTypeMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_UnionByTypeMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->method_by_cls); __Pyx_DECREF(__pyx_v___pyx_result->method_by_cls); __pyx_v___pyx_result->method_by_cls = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UnionByTypeMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_UnionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_119__pyx_unpickle_UnionMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_119__pyx_unpickle_UnionMethod = {"__pyx_unpickle_UnionMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_119__pyx_unpickle_UnionMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_119__pyx_unpickle_UnionMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_UnionMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UnionMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UnionMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_UnionMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_UnionMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UnionMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_118__pyx_unpickle_UnionMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_118__pyx_unpickle_UnionMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_UnionMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x5692acc, 0x1017ccb, 0x7bbe5aa): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__41, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x5692acc, 0x1017ccb, 0x7bbe5aa): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum * __pyx_result = UnionMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x5692acc, 0x1017ccb, 0x7bbe5aa): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = UnionMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x5692acc, 0x1017ccb, 0x7bbe5aa): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum * __pyx_result = UnionMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum * __pyx_result = UnionMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = UnionMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x5692acc, 0x1017ccb, 0x7bbe5aa) = (_dispatch, alt_methods))" % __pyx_checksum * __pyx_result = UnionMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_UnionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UnionMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_UnionMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_UnionMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->alt_methods); __Pyx_DECREF(__pyx_v___pyx_result->alt_methods); __pyx_v___pyx_result->alt_methods = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_UnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UnionMethod__set_state(UnionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alt_methods = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_UnionMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConversionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_121__pyx_unpickle_ConversionMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_121__pyx_unpickle_ConversionMethod = {"__pyx_unpickle_ConversionMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_121__pyx_unpickle_ConversionMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_121__pyx_unpickle_ConversionMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConversionMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_120__pyx_unpickle_ConversionMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_120__pyx_unpickle_ConversionMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__42, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConversionMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConversionMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConversionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->converter); __Pyx_DECREF(__pyx_v___pyx_result->converter); __pyx_v___pyx_result->converter = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConversionWithValueErrorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_123__pyx_unpickle_ConversionWithValueErrorMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_123__pyx_unpickle_ConversionWithValueErrorMethod = {"__pyx_unpickle_ConversionWithValueErrorMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_123__pyx_unpickle_ConversionWithValueErrorMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_123__pyx_unpickle_ConversionWithValueErrorMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionWithValueErrorMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionWithValueErrorMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionWithValueErrorMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConversionWithValueErrorMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionWithValueErrorMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionWithValueErrorMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_122__pyx_unpickle_ConversionWithValueErrorMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_122__pyx_unpickle_ConversionWithValueErrorMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionWithValueErrorMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__42, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionWithValueErrorMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConversionWithValueErrorMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x14e1717, 0xbefbe08, 0xf60e9e9): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionWithValueErrorMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionWithValueErrorMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConversionWithValueErrorMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionWithValueErrorMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x14e1717, 0xbefbe08, 0xf60e9e9) = (_dispatch, converter, method))" % __pyx_checksum * __pyx_result = ConversionWithValueErrorMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConversionWithValueErrorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionWithValueErrorMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionWithValueErrorMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionWithValueErrorMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base.__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.converter); __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.converter); __pyx_v___pyx_result->__pyx_base.converter = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->__pyx_base.method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->__pyx_base.method); __pyx_v___pyx_result->__pyx_base.method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 3); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConversionWithValueErrorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionWithValueErrorMethod__set_state(ConversionWithValueErrorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionWithValueErrorMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConversionAlternative(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_125__pyx_unpickle_ConversionAlternative(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_125__pyx_unpickle_ConversionAlternative = {"__pyx_unpickle_ConversionAlternative", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_125__pyx_unpickle_ConversionAlternative, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_125__pyx_unpickle_ConversionAlternative(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionAlternative (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionAlternative", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionAlternative", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConversionAlternative") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionAlternative", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionAlternative", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_124__pyx_unpickle_ConversionAlternative(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_124__pyx_unpickle_ConversionAlternative(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionAlternative", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x95bc8b8, 0xfd63fed, 0xfa59e26): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__43, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x95bc8b8, 0xfd63fed, 0xfa59e26): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum * __pyx_result = ConversionAlternative.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x95bc8b8, 0xfd63fed, 0xfa59e26): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConversionAlternative.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x95bc8b8, 0xfd63fed, 0xfa59e26): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum * __pyx_result = ConversionAlternative.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum * __pyx_result = ConversionAlternative.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConversionAlternative.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionAlternative__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x95bc8b8, 0xfd63fed, 0xfa59e26) = (converter, method, value_error))" % __pyx_checksum * __pyx_result = ConversionAlternative.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConversionAlternative(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionAlternative", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionAlternative__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionAlternative__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] # <<<<<<<<<<<<<< * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->converter); __Pyx_DECREF(__pyx_v___pyx_result->converter); __pyx_v___pyx_result->converter = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod))))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v___pyx_result->method); __Pyx_DECREF((PyObject *)__pyx_v___pyx_result->method); __pyx_v___pyx_result->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->value_error = __pyx_t_2; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 3); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[3]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[3]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionAlternative__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_ConversionUnionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_127__pyx_unpickle_ConversionUnionMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_127__pyx_unpickle_ConversionUnionMethod = {"__pyx_unpickle_ConversionUnionMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_127__pyx_unpickle_ConversionUnionMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_127__pyx_unpickle_ConversionUnionMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionUnionMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionUnionMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionUnionMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_ConversionUnionMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ConversionUnionMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionUnionMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_126__pyx_unpickle_ConversionUnionMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_126__pyx_unpickle_ConversionUnionMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionUnionMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x87f53f9, 0x01031c3, 0x40132a4): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__44, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x87f53f9, 0x01031c3, 0x40132a4): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum * __pyx_result = ConversionUnionMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x87f53f9, 0x01031c3, 0x40132a4): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = ConversionUnionMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x87f53f9, 0x01031c3, 0x40132a4): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum * __pyx_result = ConversionUnionMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum * __pyx_result = ConversionUnionMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = ConversionUnionMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionUnionMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x87f53f9, 0x01031c3, 0x40132a4) = (_dispatch, alternatives))" % __pyx_checksum * __pyx_result = ConversionUnionMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_ConversionUnionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionUnionMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_ConversionUnionMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_ConversionUnionMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->alternatives); __Pyx_DECREF(__pyx_v___pyx_result->alternatives); __pyx_v___pyx_result->alternatives = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 2); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_ConversionUnionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionUnionMethod__set_state(ConversionUnionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alternatives = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_ConversionUnionMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_Discriminated(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_129__pyx_unpickle_Discriminated(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_129__pyx_unpickle_Discriminated = {"__pyx_unpickle_Discriminated", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_129__pyx_unpickle_Discriminated, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_129__pyx_unpickle_Discriminated(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_Discriminated (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Discriminated", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Discriminated", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_Discriminated") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Discriminated", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Discriminated", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_128__pyx_unpickle_Discriminated(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_128__pyx_unpickle_Discriminated(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Discriminated", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xc52cfd1, 0x4238ed9, 0x66337da): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__45, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0xc52cfd1, 0x4238ed9, 0x66337da): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum * __pyx_result = Discriminated.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0xc52cfd1, 0x4238ed9, 0x66337da): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = Discriminated.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0xc52cfd1, 0x4238ed9, 0x66337da): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum * __pyx_result = Discriminated.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Discriminated), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum * __pyx_result = Discriminated.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = Discriminated.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Discriminated__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0xc52cfd1, 0x4238ed9, 0x66337da) = (data, discriminator))" % __pyx_checksum * __pyx_result = Discriminated.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_Discriminated(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Discriminated", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_Discriminated__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_Discriminated__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] # <<<<<<<<<<<<<< * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->data); __Pyx_DECREF(__pyx_v___pyx_result->data); __pyx_v___pyx_result->data = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->discriminator); __Pyx_DECREF(__pyx_v___pyx_result->discriminator); __pyx_v___pyx_result->discriminator = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_3 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_4 = (__pyx_t_3 > 2); if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "(tree fragment)":14 * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[2]) # <<<<<<<<<<<<<< */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_update); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_5 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[2]) */ } /* "(tree fragment)":11 * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_Discriminated__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __pyx_unpickle_DiscriminatorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* Python wrapper */ static PyObject *__pyx_pw_9apischema_15deserialization_7methods_131__pyx_unpickle_DiscriminatorMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_9apischema_15deserialization_7methods_131__pyx_unpickle_DiscriminatorMethod = {"__pyx_unpickle_DiscriminatorMethod", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_131__pyx_unpickle_DiscriminatorMethod, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9apischema_15deserialization_7methods_131__pyx_unpickle_DiscriminatorMethod(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ) { PyObject *__pyx_v___pyx_type = 0; long __pyx_v___pyx_checksum; PyObject *__pyx_v___pyx_state = 0; #if !CYTHON_METH_FASTCALL CYTHON_UNUSED Py_ssize_t __pyx_nargs; #endif CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject* values[3] = {0,0,0}; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__pyx_unpickle_DiscriminatorMethod (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_type)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_checksum)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DiscriminatorMethod", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DiscriminatorMethod", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__pyx_unpickle_DiscriminatorMethod") < 0)) __PYX_ERR(2, 1, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v___pyx_type = values[0]; __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error) __pyx_v___pyx_state = values[2]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_DiscriminatorMethod", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 1, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DiscriminatorMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9apischema_15deserialization_7methods_130__pyx_unpickle_DiscriminatorMethod(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9apischema_15deserialization_7methods_130__pyx_unpickle_DiscriminatorMethod(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_v___pyx_PickleError = 0; PyObject *__pyx_v___pyx_result = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_DiscriminatorMethod", 1); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x4930cad, 0x155dbee, 0x54fa86d): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum */ __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__46, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "(tree fragment)":5 * cdef object __pyx_result * if __pyx_checksum not in (0x4930cad, 0x155dbee, 0x54fa86d): * from pickle import PickleError as __pyx_PickleError # <<<<<<<<<<<<<< * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum * __pyx_result = DiscriminatorMethod.__new__(__pyx_type) */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_PickleError); __Pyx_GIVEREF(__pyx_n_s_PickleError); if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError)) __PYX_ERR(2, 5, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_1); __pyx_v___pyx_PickleError = __pyx_t_1; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":6 * if __pyx_checksum not in (0x4930cad, 0x155dbee, 0x54fa86d): * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum # <<<<<<<<<<<<<< * __pyx_result = DiscriminatorMethod.__new__(__pyx_type) * if __pyx_state is not None: */ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_v___pyx_PickleError, __pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(2, 6, __pyx_L1_error) /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x4930cad, 0x155dbee, 0x54fa86d): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum */ } /* "(tree fragment)":7 * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum * __pyx_result = DiscriminatorMethod.__new__(__pyx_type) # <<<<<<<<<<<<<< * if __pyx_state is not None: * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod), __pyx_n_s_new); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v___pyx_type}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v___pyx_result = __pyx_t_1; __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum * __pyx_result = DiscriminatorMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ __pyx_t_2 = (__pyx_v___pyx_state != Py_None); if (__pyx_t_2) { /* "(tree fragment)":9 * __pyx_result = DiscriminatorMethod.__new__(__pyx_type) * if __pyx_state is not None: * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) # <<<<<<<<<<<<<< * return __pyx_result * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): */ if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_v___pyx_state))) __PYX_ERR(2, 9, __pyx_L1_error) __pyx_t_1 = __pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DiscriminatorMethod__set_state(((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":8 * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x4930cad, 0x155dbee, 0x54fa86d) = (_dispatch, alias, error, mapping, missing))" % __pyx_checksum * __pyx_result = DiscriminatorMethod.__new__(__pyx_type) * if __pyx_state is not None: # <<<<<<<<<<<<<< * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result */ } /* "(tree fragment)":10 * if __pyx_state is not None: * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result # <<<<<<<<<<<<<< * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v___pyx_result); __pyx_r = __pyx_v___pyx_result; goto __pyx_L0; /* "(tree fragment)":1 * def __pyx_unpickle_DiscriminatorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DiscriminatorMethod", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v___pyx_PickleError); __Pyx_XDECREF(__pyx_v___pyx_result); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":11 * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ static PyObject *__pyx_f_9apischema_15deserialization_7methods___pyx_unpickle_DiscriminatorMethod__set_state(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_unpickle_DiscriminatorMethod__set_state", 1); /* "(tree fragment)":12 * return __pyx_result * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] # <<<<<<<<<<<<<< * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v___pyx_result->__pyx_base._dispatch = __pyx_t_2; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->alias); __Pyx_DECREF(__pyx_v___pyx_result->alias); __pyx_v___pyx_result->alias = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->error); __Pyx_DECREF(__pyx_v___pyx_result->error); __pyx_v___pyx_result->error = __pyx_t_1; __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->mapping); __Pyx_DECREF(__pyx_v___pyx_result->mapping); __pyx_v___pyx_result->mapping = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 12, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(2, 12, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v___pyx_result->missing); __Pyx_DECREF(__pyx_v___pyx_result->missing); __pyx_v___pyx_result->missing = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(2, 13, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_5 = (__pyx_t_4 > 5); if (__pyx_t_5) { } else { __pyx_t_3 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error) __pyx_t_3 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_3) { /* "(tree fragment)":14 * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): * __pyx_result.__dict__.update(__pyx_state[5]) # <<<<<<<<<<<<<< */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__pyx_v___pyx_state == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(2, 14, __pyx_L1_error) } __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "(tree fragment)":13 * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): # <<<<<<<<<<<<<< * __pyx_result.__dict__.update(__pyx_state[5]) */ } /* "(tree fragment)":11 * __pyx_unpickle_DiscriminatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DiscriminatorMethod__set_state(DiscriminatorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.alias = __pyx_state[1]; __pyx_result.error = __pyx_state[2]; __pyx_result.mapping = __pyx_state[3]; __pyx_result.missing = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("apischema.deserialization.methods.__pyx_unpickle_DiscriminatorMethod__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Constraint(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)o); p->error = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->error); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)o; if (p->error) { e = (*v)(p->error, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Constraint *)o; tmp = ((PyObject*)p->error); p->error = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_10Constraint_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_10Constraint_5error_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_Constraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10Constraint_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10Constraint_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_Constraint[] = { {(char *)"error", __pyx_getprop_9apischema_15deserialization_7methods_10Constraint_error, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_Constraint_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_Constraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_Constraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_10Constraint_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_Constraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_Constraint_spec = { "apischema.deserialization.methods.Constraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_Constraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_Constraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""Constraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Constraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_Constraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_Constraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_10Constraint_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_Constraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinimumConstraint __pyx_vtable_9apischema_15deserialization_7methods_MinimumConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinimumConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MinimumConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17MinimumConstraint_minimum(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7minimum_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MinimumConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MinimumConstraint[] = { {(char *)"minimum", __pyx_getprop_9apischema_15deserialization_7methods_17MinimumConstraint_minimum, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MinimumConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MinimumConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MinimumConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MinimumConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MinimumConstraint_spec = { "apischema.deserialization.methods.MinimumConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MinimumConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MinimumConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MinimumConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MinimumConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MinimumConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_17MinimumConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MinimumConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaximumConstraint __pyx_vtable_9apischema_15deserialization_7methods_MaximumConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaximumConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MaximumConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17MaximumConstraint_maximum(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7maximum_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MaximumConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MaximumConstraint[] = { {(char *)"maximum", __pyx_getprop_9apischema_15deserialization_7methods_17MaximumConstraint_maximum, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MaximumConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MaximumConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MaximumConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MaximumConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MaximumConstraint_spec = { "apischema.deserialization.methods.MaximumConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MaximumConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MaximumConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MaximumConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MaximumConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MaximumConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_17MaximumConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MaximumConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint __pyx_vtable_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_exc_min(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7exc_min_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint[] = { {(char *)"exc_min", __pyx_getprop_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_exc_min, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_spec = { "apischema.deserialization.methods.ExclusiveMinimumConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ExclusiveMinimumConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint __pyx_vtable_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_exc_max(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7exc_max_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint[] = { {(char *)"exc_max", __pyx_getprop_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_exc_max, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_spec = { "apischema.deserialization.methods.ExclusiveMaximumConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ExclusiveMaximumConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MultipleOfConstraint __pyx_vtable_9apischema_15deserialization_7methods_MultipleOfConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MultipleOfConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MultipleOfConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_20MultipleOfConstraint_mult_of(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7mult_of_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MultipleOfConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MultipleOfConstraint[] = { {(char *)"mult_of", __pyx_getprop_9apischema_15deserialization_7methods_20MultipleOfConstraint_mult_of, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MultipleOfConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MultipleOfConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MultipleOfConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint_spec = { "apischema.deserialization.methods.MultipleOfConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MultipleOfConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MultipleOfConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MultipleOfConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_20MultipleOfConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MultipleOfConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinLengthConstraint __pyx_vtable_9apischema_15deserialization_7methods_MinLengthConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinLengthConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MinLengthConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19MinLengthConstraint_min_len(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7min_len_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MinLengthConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MinLengthConstraint[] = { {(char *)"min_len", __pyx_getprop_9apischema_15deserialization_7methods_19MinLengthConstraint_min_len, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MinLengthConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MinLengthConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MinLengthConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint_spec = { "apischema.deserialization.methods.MinLengthConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MinLengthConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MinLengthConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MinLengthConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_19MinLengthConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MinLengthConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxLengthConstraint __pyx_vtable_9apischema_15deserialization_7methods_MaxLengthConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaxLengthConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MaxLengthConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19MaxLengthConstraint_max_len(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7max_len_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MaxLengthConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MaxLengthConstraint[] = { {(char *)"max_len", __pyx_getprop_9apischema_15deserialization_7methods_19MaxLengthConstraint_max_len, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MaxLengthConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MaxLengthConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MaxLengthConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint_spec = { "apischema.deserialization.methods.MaxLengthConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MaxLengthConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MaxLengthConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MaxLengthConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_19MaxLengthConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MaxLengthConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_PatternConstraint __pyx_vtable_9apischema_15deserialization_7methods_PatternConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_PatternConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_PatternConstraint; p->pattern = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternConstraint(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *p = (struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternConstraint) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->pattern); PyObject_GC_Track(o); __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_PatternConstraint(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *p = (struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)o; e = __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint(o, v, a); if (e) return e; if (p->pattern) { e = (*v)(p->pattern, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_PatternConstraint(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *p = (struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *)o; __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint(o); tmp = ((PyObject*)p->pattern); p->pattern = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17PatternConstraint_pattern(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7pattern_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_PatternConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_PatternConstraint[] = { {(char *)"pattern", __pyx_getprop_9apischema_15deserialization_7methods_17PatternConstraint_pattern, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_PatternConstraint_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternConstraint}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_PatternConstraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_PatternConstraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_PatternConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_PatternConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_PatternConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_PatternConstraint_spec = { "apischema.deserialization.methods.PatternConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_PatternConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_PatternConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""PatternConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternConstraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_PatternConstraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_PatternConstraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_PatternConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_PatternConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_17PatternConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_PatternConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinItemsConstraint __pyx_vtable_9apischema_15deserialization_7methods_MinItemsConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinItemsConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MinItemsConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18MinItemsConstraint_min_items(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_9min_items_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MinItemsConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MinItemsConstraint[] = { {(char *)"min_items", __pyx_getprop_9apischema_15deserialization_7methods_18MinItemsConstraint_min_items, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MinItemsConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MinItemsConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MinItemsConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint_spec = { "apischema.deserialization.methods.MinItemsConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MinItemsConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MinItemsConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MinItemsConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_18MinItemsConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MinItemsConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxItemsConstraint __pyx_vtable_9apischema_15deserialization_7methods_MaxItemsConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaxItemsConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MaxItemsConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18MaxItemsConstraint_max_items(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_9max_items_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MaxItemsConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MaxItemsConstraint[] = { {(char *)"max_items", __pyx_getprop_9apischema_15deserialization_7methods_18MaxItemsConstraint_max_items, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MaxItemsConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MaxItemsConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MaxItemsConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint_spec = { "apischema.deserialization.methods.MaxItemsConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MaxItemsConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MaxItemsConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MaxItemsConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_18MaxItemsConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MaxItemsConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UniqueItemsConstraint __pyx_vtable_9apischema_15deserialization_7methods_UniqueItemsConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_UniqueItemsConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_UniqueItemsConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_21UniqueItemsConstraint_unique(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_6unique_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_UniqueItemsConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_UniqueItemsConstraint[] = { {(char *)"unique", __pyx_getprop_9apischema_15deserialization_7methods_21UniqueItemsConstraint_unique, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_UniqueItemsConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_UniqueItemsConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_UniqueItemsConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint_spec = { "apischema.deserialization.methods.UniqueItemsConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""UniqueItemsConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_UniqueItemsConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_UniqueItemsConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_21UniqueItemsConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_UniqueItemsConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MinPropertiesConstraint __pyx_vtable_9apischema_15deserialization_7methods_MinPropertiesConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MinPropertiesConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MinPropertiesConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_23MinPropertiesConstraint_min_properties(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_14min_properties_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MinPropertiesConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MinPropertiesConstraint[] = { {(char *)"min_properties", __pyx_getprop_9apischema_15deserialization_7methods_23MinPropertiesConstraint_min_properties, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MinPropertiesConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MinPropertiesConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MinPropertiesConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint_spec = { "apischema.deserialization.methods.MinPropertiesConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MinPropertiesConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MinPropertiesConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MinPropertiesConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_23MinPropertiesConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MinPropertiesConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MaxPropertiesConstraint __pyx_vtable_9apischema_15deserialization_7methods_MaxPropertiesConstraint; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MaxPropertiesConstraint(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constraint(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MaxPropertiesConstraint; return o; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_max_properties(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_14max_properties_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MaxPropertiesConstraint[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MaxPropertiesConstraint[] = { {(char *)"max_properties", __pyx_getprop_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_max_properties, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constraint}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MaxPropertiesConstraint}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MaxPropertiesConstraint}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MaxPropertiesConstraint}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint_spec = { "apischema.deserialization.methods.MaxPropertiesConstraint", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MaxPropertiesConstraint", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constraint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constraint, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constraint, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MaxPropertiesConstraint, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MaxPropertiesConstraint, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MaxPropertiesConstraint, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_DeserializationMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_1__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21DeserializationMethod_3__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_DeserializationMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_DeserializationMethod}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_DeserializationMethod_spec = { "apischema.deserialization.methods.DeserializationMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_9apischema_15deserialization_7methods_DeserializationMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_DeserializationMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""DeserializationMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RecMethod __pyx_vtable_9apischema_15deserialization_7methods_RecMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_RecMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_RecMethod; p->lazy = Py_None; Py_INCREF(Py_None); p->method = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_RecMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_RecMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->lazy); Py_CLEAR(p->method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_RecMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_RecMethod)); if (e) return e; if (p->lazy) { e = (*v)(p->lazy, a); if (e) return e; } if (p->method) { e = (*v)(p->method, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_RecMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_RecMethod); tmp = ((PyObject*)p->lazy); p->lazy = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_9RecMethod_lazy(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_9RecMethod_4lazy_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_9RecMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_9RecMethod_6method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_RecMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_RecMethod[] = { {(char *)"lazy", __pyx_getprop_9apischema_15deserialization_7methods_9RecMethod_lazy, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_9RecMethod_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_RecMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_RecMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_RecMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_RecMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_RecMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_RecMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_9RecMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_RecMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_RecMethod_spec = { "apischema.deserialization.methods.RecMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_RecMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_RecMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""RecMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_RecMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_RecMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_RecMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_RecMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_RecMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_9RecMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_RecMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ValidatorMethod __pyx_vtable_9apischema_15deserialization_7methods_ValidatorMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ValidatorMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ValidatorMethod; p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); p->validators = Py_None; Py_INCREF(Py_None); p->aliaser = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ValidatorMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ValidatorMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->method); Py_CLEAR(p->validators); Py_CLEAR(p->aliaser); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ValidatorMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ValidatorMethod)); if (e) return e; if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } if (p->validators) { e = (*v)(p->validators, a); if (e) return e; } if (p->aliaser) { e = (*v)(p->aliaser, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ValidatorMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ValidatorMethod); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->validators); p->validators = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->aliaser); p->aliaser = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15ValidatorMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_6method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15ValidatorMethod_validators(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_10validators_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15ValidatorMethod_aliaser(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7aliaser_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ValidatorMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ValidatorMethod[] = { {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_15ValidatorMethod_method, 0, (char *)0, 0}, {(char *)"validators", __pyx_getprop_9apischema_15deserialization_7methods_15ValidatorMethod_validators, 0, (char *)0, 0}, {(char *)"aliaser", __pyx_getprop_9apischema_15deserialization_7methods_15ValidatorMethod_aliaser, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ValidatorMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ValidatorMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ValidatorMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ValidatorMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ValidatorMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ValidatorMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ValidatorMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ValidatorMethod_spec = { "apischema.deserialization.methods.ValidatorMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ValidatorMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ValidatorMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ValidatorMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ValidatorMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ValidatorMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ValidatorMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ValidatorMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ValidatorMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_15ValidatorMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ValidatorMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_CoercerMethod __pyx_vtable_9apischema_15deserialization_7methods_CoercerMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_CoercerMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_CoercerMethod; p->coercer = Py_None; Py_INCREF(Py_None); p->cls = ((PyTypeObject *)Py_None); Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_CoercerMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_CoercerMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->coercer); Py_CLEAR(p->cls); Py_CLEAR(p->method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_CoercerMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_CoercerMethod)); if (e) return e; if (p->coercer) { e = (*v)(p->coercer, a); if (e) return e; } if (p->cls) { e = (*v)(((PyObject *)p->cls), a); if (e) return e; } if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_CoercerMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_CoercerMethod); tmp = ((PyObject*)p->coercer); p->coercer = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->cls); p->cls = ((PyTypeObject *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13CoercerMethod_coercer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7coercer_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13CoercerMethod_cls(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3cls_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13CoercerMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_6method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_CoercerMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_CoercerMethod[] = { {(char *)"coercer", __pyx_getprop_9apischema_15deserialization_7methods_13CoercerMethod_coercer, 0, (char *)0, 0}, {(char *)"cls", __pyx_getprop_9apischema_15deserialization_7methods_13CoercerMethod_cls, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_13CoercerMethod_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_CoercerMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_CoercerMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_CoercerMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_CoercerMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_CoercerMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_CoercerMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_CoercerMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_CoercerMethod_spec = { "apischema.deserialization.methods.CoercerMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_CoercerMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_CoercerMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""CoercerMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_CoercerMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_CoercerMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_CoercerMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_CoercerMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_CoercerMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_13CoercerMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_CoercerMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TypeCheckMethod __pyx_vtable_9apischema_15deserialization_7methods_TypeCheckMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_TypeCheckMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_TypeCheckMethod; p->expected = Py_None; Py_INCREF(Py_None); p->fallback = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_TypeCheckMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_TypeCheckMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->expected); Py_CLEAR(p->fallback); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_TypeCheckMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_TypeCheckMethod)); if (e) return e; if (p->expected) { e = (*v)(p->expected, a); if (e) return e; } if (p->fallback) { e = (*v)(((PyObject *)p->fallback), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_TypeCheckMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_TypeCheckMethod); tmp = ((PyObject*)p->expected); p->expected = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->fallback); p->fallback = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15TypeCheckMethod_expected(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_8expected_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15TypeCheckMethod_fallback(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_8fallback_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_TypeCheckMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_TypeCheckMethod[] = { {(char *)"expected", __pyx_getprop_9apischema_15deserialization_7methods_15TypeCheckMethod_expected, 0, (char *)0, 0}, {(char *)"fallback", __pyx_getprop_9apischema_15deserialization_7methods_15TypeCheckMethod_fallback, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_TypeCheckMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_TypeCheckMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_TypeCheckMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_TypeCheckMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_TypeCheckMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_TypeCheckMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod_spec = { "apischema.deserialization.methods.TypeCheckMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""TypeCheckMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_TypeCheckMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_TypeCheckMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_TypeCheckMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_TypeCheckMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_TypeCheckMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_15TypeCheckMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_TypeCheckMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_AnyMethod __pyx_vtable_9apischema_15deserialization_7methods_AnyMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_AnyMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_AnyMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_AnyMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_AnyMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_AnyMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_AnyMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_AnyMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_AnyMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_9AnyMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_11constraints_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_AnyMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_AnyMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_9AnyMethod_constraints, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_AnyMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_AnyMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_AnyMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_AnyMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_AnyMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_AnyMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_AnyMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_AnyMethod_spec = { "apischema.deserialization.methods.AnyMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_AnyMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_AnyMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""AnyMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_AnyMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_AnyMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_AnyMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_AnyMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_AnyMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_9AnyMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_AnyMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListCheckOnlyMethod __pyx_vtable_9apischema_15deserialization_7methods_ListCheckOnlyMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ListCheckOnlyMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ListCheckOnlyMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ListCheckOnlyMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ListCheckOnlyMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); Py_CLEAR(p->value_method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ListCheckOnlyMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ListCheckOnlyMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->value_method) { e = (*v)(((PyObject *)p->value_method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ListCheckOnlyMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ListCheckOnlyMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->value_method); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_value_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_12value_method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ListCheckOnlyMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ListCheckOnlyMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_constraints, 0, (char *)0, 0}, {(char *)"value_method", __pyx_getprop_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_value_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ListCheckOnlyMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ListCheckOnlyMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ListCheckOnlyMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ListCheckOnlyMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ListCheckOnlyMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ListCheckOnlyMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod_spec = { "apischema.deserialization.methods.ListCheckOnlyMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ListCheckOnlyMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ListCheckOnlyMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ListCheckOnlyMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ListCheckOnlyMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ListCheckOnlyMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ListCheckOnlyMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ListCheckOnlyMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ListMethod __pyx_vtable_9apischema_15deserialization_7methods_ListMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ListMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ListMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ListMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ListMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); Py_CLEAR(p->value_method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ListMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ListMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->value_method) { e = (*v)(((PyObject *)p->value_method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ListMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ListMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->value_method); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_10ListMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_10ListMethod_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_10ListMethod_value_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_10ListMethod_12value_method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ListMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ListMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_10ListMethod_constraints, 0, (char *)0, 0}, {(char *)"value_method", __pyx_getprop_9apischema_15deserialization_7methods_10ListMethod_value_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ListMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ListMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ListMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ListMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ListMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ListMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_10ListMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ListMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ListMethod_spec = { "apischema.deserialization.methods.ListMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ListMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ListMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ListMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ListMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ListMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ListMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ListMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ListMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_10ListMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ListMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SetMethod __pyx_vtable_9apischema_15deserialization_7methods_SetMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_SetMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_SetMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_SetMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_SetMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); Py_CLEAR(p->value_method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_SetMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_SetMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->value_method) { e = (*v)(((PyObject *)p->value_method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_SetMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_SetMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->value_method); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_9SetMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_9SetMethod_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_9SetMethod_value_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_9SetMethod_12value_method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_SetMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_SetMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_9SetMethod_constraints, 0, (char *)0, 0}, {(char *)"value_method", __pyx_getprop_9apischema_15deserialization_7methods_9SetMethod_value_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_SetMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_SetMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_SetMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_SetMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_SetMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_SetMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_9SetMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_SetMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_SetMethod_spec = { "apischema.deserialization.methods.SetMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_SetMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_SetMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""SetMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_SetMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_SetMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_SetMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_SetMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_SetMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_9SetMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_SetMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FrozenSetMethod __pyx_vtable_9apischema_15deserialization_7methods_FrozenSetMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FrozenSetMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_FrozenSetMethod; p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_FrozenSetMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_FrozenSetMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_FrozenSetMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_FrozenSetMethod)); if (e) return e; if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_FrozenSetMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_FrozenSetMethod); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15FrozenSetMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_6method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_FrozenSetMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_FrozenSetMethod[] = { {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_15FrozenSetMethod_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_FrozenSetMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_FrozenSetMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_FrozenSetMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_FrozenSetMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_FrozenSetMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_FrozenSetMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod_spec = { "apischema.deserialization.methods.FrozenSetMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""FrozenSetMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_FrozenSetMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_FrozenSetMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_FrozenSetMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_FrozenSetMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_FrozenSetMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_15FrozenSetMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_FrozenSetMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_VariadicTupleMethod __pyx_vtable_9apischema_15deserialization_7methods_VariadicTupleMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_VariadicTupleMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_VariadicTupleMethod; p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_VariadicTupleMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_VariadicTupleMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_VariadicTupleMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_VariadicTupleMethod)); if (e) return e; if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_VariadicTupleMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_VariadicTupleMethod); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19VariadicTupleMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_6method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_VariadicTupleMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_VariadicTupleMethod[] = { {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_19VariadicTupleMethod_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_VariadicTupleMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_VariadicTupleMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_VariadicTupleMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_VariadicTupleMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_VariadicTupleMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_VariadicTupleMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod_spec = { "apischema.deserialization.methods.VariadicTupleMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""VariadicTupleMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_VariadicTupleMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_VariadicTupleMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_VariadicTupleMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_VariadicTupleMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_VariadicTupleMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_19VariadicTupleMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_VariadicTupleMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_LiteralMethod __pyx_vtable_9apischema_15deserialization_7methods_LiteralMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_LiteralMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_LiteralMethod; p->value_map = ((PyObject*)Py_None); Py_INCREF(Py_None); p->error = Py_None; Py_INCREF(Py_None); p->coercer = Py_None; Py_INCREF(Py_None); p->types = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_LiteralMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_LiteralMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->value_map); Py_CLEAR(p->error); Py_CLEAR(p->coercer); Py_CLEAR(p->types); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_LiteralMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_LiteralMethod)); if (e) return e; if (p->value_map) { e = (*v)(p->value_map, a); if (e) return e; } if (p->error) { e = (*v)(p->error, a); if (e) return e; } if (p->coercer) { e = (*v)(p->coercer, a); if (e) return e; } if (p->types) { e = (*v)(p->types, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_LiteralMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_LiteralMethod); tmp = ((PyObject*)p->value_map); p->value_map = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->error); p->error = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->coercer); p->coercer = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->types); p->types = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_value_map(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_9value_map_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5error_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_coercer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7coercer_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_types(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5types_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_LiteralMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_LiteralMethod[] = { {(char *)"value_map", __pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_value_map, 0, (char *)0, 0}, {(char *)"error", __pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_error, 0, (char *)0, 0}, {(char *)"coercer", __pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_coercer, 0, (char *)0, 0}, {(char *)"types", __pyx_getprop_9apischema_15deserialization_7methods_13LiteralMethod_types, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_LiteralMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_LiteralMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_LiteralMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_LiteralMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_LiteralMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_LiteralMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_LiteralMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_LiteralMethod_spec = { "apischema.deserialization.methods.LiteralMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_LiteralMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_LiteralMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""LiteralMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_LiteralMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_LiteralMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_LiteralMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_LiteralMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_LiteralMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_13LiteralMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_LiteralMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingCheckOnly __pyx_vtable_9apischema_15deserialization_7methods_MappingCheckOnly; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MappingCheckOnly(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MappingCheckOnly; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingCheckOnly(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *p = (struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingCheckOnly) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); Py_CLEAR(p->key_method); Py_CLEAR(p->value_method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_MappingCheckOnly(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *p = (struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_MappingCheckOnly)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->key_method) { e = (*v)(((PyObject *)p->key_method), a); if (e) return e; } if (p->value_method) { e = (*v)(((PyObject *)p->value_method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_MappingCheckOnly(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *p = (struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_MappingCheckOnly); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->key_method); p->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->value_method); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_16MappingCheckOnly_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_16MappingCheckOnly_key_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_10key_method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_16MappingCheckOnly_value_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_12value_method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MappingCheckOnly[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MappingCheckOnly[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_16MappingCheckOnly_constraints, 0, (char *)0, 0}, {(char *)"key_method", __pyx_getprop_9apischema_15deserialization_7methods_16MappingCheckOnly_key_method, 0, (char *)0, 0}, {(char *)"value_method", __pyx_getprop_9apischema_15deserialization_7methods_16MappingCheckOnly_value_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingCheckOnly}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_MappingCheckOnly}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_MappingCheckOnly}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MappingCheckOnly}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MappingCheckOnly}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MappingCheckOnly}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly_spec = { "apischema.deserialization.methods.MappingCheckOnly", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MappingCheckOnly", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingCheckOnly, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_MappingCheckOnly, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_MappingCheckOnly, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MappingCheckOnly, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MappingCheckOnly, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_16MappingCheckOnly_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MappingCheckOnly, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_MappingMethod __pyx_vtable_9apischema_15deserialization_7methods_MappingMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_MappingMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_MappingMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); Py_CLEAR(p->key_method); Py_CLEAR(p->value_method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_MappingMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_MappingMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->key_method) { e = (*v)(((PyObject *)p->key_method), a); if (e) return e; } if (p->value_method) { e = (*v)(((PyObject *)p->value_method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_MappingMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_MappingMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->key_method); p->key_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->value_method); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13MappingMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13MappingMethod_key_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_10key_method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13MappingMethod_value_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_12value_method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_MappingMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_MappingMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_13MappingMethod_constraints, 0, (char *)0, 0}, {(char *)"key_method", __pyx_getprop_9apischema_15deserialization_7methods_13MappingMethod_key_method, 0, (char *)0, 0}, {(char *)"value_method", __pyx_getprop_9apischema_15deserialization_7methods_13MappingMethod_value_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_MappingMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_MappingMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_MappingMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_MappingMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_MappingMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_MappingMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_MappingMethod_spec = { "apischema.deserialization.methods.MappingMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_MappingMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_MappingMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""MappingMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_MappingMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_MappingMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_MappingMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_MappingMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_MappingMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_13MappingMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_MappingMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Field(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_Field *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_Field *)o); p->name = ((PyObject*)Py_None); Py_INCREF(Py_None); p->alias = ((PyObject*)Py_None); Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); p->required_by = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_Field(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_Field *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Field *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_Field) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); Py_CLEAR(p->alias); Py_CLEAR(p->method); Py_CLEAR(p->required_by); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_Field(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_Field *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Field *)o; if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } if (p->required_by) { e = (*v)(p->required_by, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_Field(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_Field *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Field *)o; tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->required_by); p->required_by = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_5Field_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_5Field_4name_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_5Field_alias(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_5Field_5alias_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_5Field_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_5Field_6method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_5Field_required(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_5Field_8required_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_5Field_required_by(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_5Field_11required_by_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_5Field_fall_back_on_default(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_5Field_20fall_back_on_default_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_Field[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_5Field_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_5Field_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_Field[] = { {(char *)"name", __pyx_getprop_9apischema_15deserialization_7methods_5Field_name, 0, (char *)0, 0}, {(char *)"alias", __pyx_getprop_9apischema_15deserialization_7methods_5Field_alias, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_5Field_method, 0, (char *)0, 0}, {(char *)"required", __pyx_getprop_9apischema_15deserialization_7methods_5Field_required, 0, (char *)0, 0}, {(char *)"required_by", __pyx_getprop_9apischema_15deserialization_7methods_5Field_required_by, 0, (char *)0, 0}, {(char *)"fall_back_on_default", __pyx_getprop_9apischema_15deserialization_7methods_5Field_fall_back_on_default, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_Field_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_Field}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Field}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Field}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_Field}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_Field}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_5Field_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_Field}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_Field_spec = { "apischema.deserialization.methods.Field", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Field), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_Field_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_Field = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""Field", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Field), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Field, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Field, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Field, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_Field, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_Field, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_5Field_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_Field, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FlattenedField(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)o); p->name = ((PyObject*)Py_None); Py_INCREF(Py_None); p->aliases = ((PyObject*)Py_None); Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_FlattenedField(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_FlattenedField) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); Py_CLEAR(p->aliases); Py_CLEAR(p->method); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_FlattenedField(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)o; if (p->aliases) { e = (*v)(p->aliases, a); if (e) return e; } if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_FlattenedField(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField *)o; tmp = ((PyObject*)p->aliases); p->aliases = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_4name_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_aliases(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_7aliases_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_6method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_fall_back_on_default(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_20fall_back_on_default_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_FlattenedField[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_FlattenedField[] = { {(char *)"name", __pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_name, 0, (char *)0, 0}, {(char *)"aliases", __pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_aliases, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_method, 0, (char *)0, 0}, {(char *)"fall_back_on_default", __pyx_getprop_9apischema_15deserialization_7methods_14FlattenedField_fall_back_on_default, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_FlattenedField_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_FlattenedField}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_FlattenedField}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_FlattenedField}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_FlattenedField}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_FlattenedField}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_FlattenedField}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_FlattenedField_spec = { "apischema.deserialization.methods.FlattenedField", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_FlattenedField_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_FlattenedField = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""FlattenedField", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FlattenedField), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_FlattenedField, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_FlattenedField, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_FlattenedField, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_FlattenedField, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_FlattenedField, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_14FlattenedField_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_FlattenedField, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_PatternField(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)o); p->name = ((PyObject*)Py_None); Py_INCREF(Py_None); p->pattern = Py_None; Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternField(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternField) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); Py_CLEAR(p->pattern); Py_CLEAR(p->method); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_PatternField(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)o; if (p->pattern) { e = (*v)(p->pattern, a); if (e) return e; } if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_PatternField(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_PatternField *)o; tmp = ((PyObject*)p->pattern); p->pattern = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12PatternField_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12PatternField_4name_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12PatternField_pattern(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12PatternField_7pattern_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12PatternField_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12PatternField_6method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12PatternField_fall_back_on_default(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12PatternField_20fall_back_on_default_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_PatternField[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12PatternField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12PatternField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_PatternField[] = { {(char *)"name", __pyx_getprop_9apischema_15deserialization_7methods_12PatternField_name, 0, (char *)0, 0}, {(char *)"pattern", __pyx_getprop_9apischema_15deserialization_7methods_12PatternField_pattern, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_12PatternField_method, 0, (char *)0, 0}, {(char *)"fall_back_on_default", __pyx_getprop_9apischema_15deserialization_7methods_12PatternField_fall_back_on_default, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_PatternField_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternField}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_PatternField}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_PatternField}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_PatternField}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_PatternField}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_12PatternField_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_PatternField}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_PatternField_spec = { "apischema.deserialization.methods.PatternField", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_PatternField_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_PatternField = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""PatternField", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_PatternField), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_PatternField, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_PatternField, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_PatternField, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_PatternField, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_PatternField, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_12PatternField_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_PatternField, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_AdditionalField(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)o); p->name = ((PyObject*)Py_None); Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_AdditionalField(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_AdditionalField) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); Py_CLEAR(p->method); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_AdditionalField(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)o; if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_AdditionalField(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField *)o; tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15AdditionalField_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_4name_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15AdditionalField_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_6method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_15AdditionalField_fall_back_on_default(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_20fall_back_on_default_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_AdditionalField[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_AdditionalField[] = { {(char *)"name", __pyx_getprop_9apischema_15deserialization_7methods_15AdditionalField_name, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_15AdditionalField_method, 0, (char *)0, 0}, {(char *)"fall_back_on_default", __pyx_getprop_9apischema_15deserialization_7methods_15AdditionalField_fall_back_on_default, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_AdditionalField_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_AdditionalField}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_AdditionalField}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_AdditionalField}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_AdditionalField}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_AdditionalField}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_AdditionalField}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_AdditionalField_spec = { "apischema.deserialization.methods.AdditionalField", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_AdditionalField_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_AdditionalField = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""AdditionalField", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_AdditionalField), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_AdditionalField, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_AdditionalField, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_AdditionalField, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_AdditionalField, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_AdditionalField, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_15AdditionalField_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_AdditionalField, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Constructor(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)o); p->cls = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->cls); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)o; if (p->cls) { e = (*v)(p->cls, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_Constructor(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)o; tmp = ((PyObject*)p->cls); p->cls = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_11Constructor_cls(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_11Constructor_3cls_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_Constructor[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11Constructor_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11Constructor_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_Constructor[] = { {(char *)"cls", __pyx_getprop_9apischema_15deserialization_7methods_11Constructor_cls, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_Constructor_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constructor}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_Constructor}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_Constructor}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_11Constructor_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_Constructor}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_Constructor_spec = { "apischema.deserialization.methods.Constructor", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_Constructor_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_Constructor = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""Constructor", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Constructor), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constructor, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_Constructor, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_Constructor, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_11Constructor_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_Constructor, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoConstructor __pyx_vtable_9apischema_15deserialization_7methods_NoConstructor; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_NoConstructor(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constructor(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_NoConstructor; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_NoConstructor[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_NoConstructor_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constructor}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_NoConstructor}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_NoConstructor}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_NoConstructor_spec = { "apischema.deserialization.methods.NoConstructor", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_NoConstructor_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_NoConstructor = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""NoConstructor", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constructor, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_NoConstructor, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_13NoConstructor_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_NoConstructor, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructor __pyx_vtable_9apischema_15deserialization_7methods_RawConstructor; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_RawConstructor(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constructor(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructor; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_RawConstructor[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_RawConstructor_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constructor}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_RawConstructor}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_RawConstructor}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_RawConstructor_spec = { "apischema.deserialization.methods.RawConstructor", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_RawConstructor_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_RawConstructor = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""RawConstructor", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constructor, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_RawConstructor, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_14RawConstructor_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_RawConstructor, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_RawConstructorCopy __pyx_vtable_9apischema_15deserialization_7methods_RawConstructorCopy; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_RawConstructorCopy(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constructor(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructorCopy; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_RawConstructorCopy[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Constructor}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_RawConstructorCopy}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_RawConstructorCopy}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy_spec = { "apischema.deserialization.methods.RawConstructorCopy", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""RawConstructorCopy", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Constructor, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_RawConstructorCopy, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_18RawConstructorCopy_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_RawConstructorCopy, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_DefaultField(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)o); p->name = ((PyObject*)Py_None); Py_INCREF(Py_None); p->default_value = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_DefaultField(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_DefaultField) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); Py_CLEAR(p->default_value); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_DefaultField(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)o; if (p->default_value) { e = (*v)(p->default_value, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_DefaultField(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField *)o; tmp = ((PyObject*)p->default_value); p->default_value = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12DefaultField_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12DefaultField_4name_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12DefaultField_default_value(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12DefaultField_13default_value_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_DefaultField[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_DefaultField[] = { {(char *)"name", __pyx_getprop_9apischema_15deserialization_7methods_12DefaultField_name, 0, (char *)0, 0}, {(char *)"default_value", __pyx_getprop_9apischema_15deserialization_7methods_12DefaultField_default_value, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_DefaultField_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_DefaultField}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_DefaultField}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_DefaultField}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_DefaultField}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_DefaultField}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_12DefaultField_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_DefaultField}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_DefaultField_spec = { "apischema.deserialization.methods.DefaultField", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_DefaultField_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_DefaultField = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""DefaultField", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_DefaultField), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DefaultField, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_DefaultField, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_DefaultField, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_DefaultField, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_DefaultField, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_12DefaultField_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_DefaultField, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FactoryField(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)o); p->name = ((PyObject*)Py_None); Py_INCREF(Py_None); p->factory = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_FactoryField(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_FactoryField) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->name); Py_CLEAR(p->factory); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_FactoryField(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)o; if (p->factory) { e = (*v)(p->factory, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_FactoryField(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField *)o; tmp = ((PyObject*)p->factory); p->factory = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12FactoryField_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12FactoryField_4name_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12FactoryField_factory(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12FactoryField_7factory_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_FactoryField[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_FactoryField[] = { {(char *)"name", __pyx_getprop_9apischema_15deserialization_7methods_12FactoryField_name, 0, (char *)0, 0}, {(char *)"factory", __pyx_getprop_9apischema_15deserialization_7methods_12FactoryField_factory, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_FactoryField_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_FactoryField}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_FactoryField}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_FactoryField}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_FactoryField}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_FactoryField}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_12FactoryField_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_FactoryField}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_FactoryField_spec = { "apischema.deserialization.methods.FactoryField", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_FactoryField_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_FactoryField = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""FactoryField", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FactoryField), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_FactoryField, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_FactoryField, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_FactoryField, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_FactoryField, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_FactoryField, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_12FactoryField_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_FactoryField, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FieldsConstructor __pyx_vtable_9apischema_15deserialization_7methods_FieldsConstructor; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FieldsConstructor(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_Constructor(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_FieldsConstructor; p->default_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); p->factory_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_FieldsConstructor(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_FieldsConstructor) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->default_fields); Py_CLEAR(p->factory_fields); PyObject_GC_Track(o); __pyx_tp_dealloc_9apischema_15deserialization_7methods_Constructor(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_FieldsConstructor(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)o; e = __pyx_tp_traverse_9apischema_15deserialization_7methods_Constructor(o, v, a); if (e) return e; if (p->default_fields) { e = (*v)(p->default_fields, a); if (e) return e; } if (p->factory_fields) { e = (*v)(p->factory_fields, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_FieldsConstructor(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *p = (struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *)o; __pyx_tp_clear_9apischema_15deserialization_7methods_Constructor(o); tmp = ((PyObject*)p->default_fields); p->default_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->factory_fields); p->factory_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17FieldsConstructor_nb_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_9nb_fields_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17FieldsConstructor_default_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_14default_fields_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17FieldsConstructor_factory_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_14factory_fields_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_FieldsConstructor[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_FieldsConstructor[] = { {(char *)"nb_fields", __pyx_getprop_9apischema_15deserialization_7methods_17FieldsConstructor_nb_fields, 0, (char *)0, 0}, {(char *)"default_fields", __pyx_getprop_9apischema_15deserialization_7methods_17FieldsConstructor_default_fields, 0, (char *)0, 0}, {(char *)"factory_fields", __pyx_getprop_9apischema_15deserialization_7methods_17FieldsConstructor_factory_fields, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_FieldsConstructor_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_FieldsConstructor}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_FieldsConstructor}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_FieldsConstructor}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_FieldsConstructor}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_FieldsConstructor}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_FieldsConstructor}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_FieldsConstructor_spec = { "apischema.deserialization.methods.FieldsConstructor", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_FieldsConstructor_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_FieldsConstructor = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""FieldsConstructor", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_FieldsConstructor, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_FieldsConstructor, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_FieldsConstructor, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_FieldsConstructor, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_FieldsConstructor, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_17FieldsConstructor_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_FieldsConstructor, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SimpleObjectMethod __pyx_vtable_9apischema_15deserialization_7methods_SimpleObjectMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_SimpleObjectMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_SimpleObjectMethod; p->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)Py_None); Py_INCREF(Py_None); p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None); p->all_aliases = ((PyObject*)Py_None); Py_INCREF(Py_None); p->missing = ((PyObject*)Py_None); Py_INCREF(Py_None); p->unexpected = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_SimpleObjectMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_SimpleObjectMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constructor); Py_CLEAR(p->fields); Py_CLEAR(p->all_aliases); Py_CLEAR(p->missing); Py_CLEAR(p->unexpected); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_SimpleObjectMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_SimpleObjectMethod)); if (e) return e; if (p->constructor) { e = (*v)(((PyObject *)p->constructor), a); if (e) return e; } if (p->fields) { e = (*v)(p->fields, a); if (e) return e; } if (p->all_aliases) { e = (*v)(p->all_aliases, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_SimpleObjectMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_SimpleObjectMethod); tmp = ((PyObject*)p->constructor); p->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->fields); p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->all_aliases); p->all_aliases = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_constructor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_11constructor_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_6fields_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_all_aliases(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_11all_aliases_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_typed_dict(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_10typed_dict_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_missing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7missing_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_unexpected(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_10unexpected_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_SimpleObjectMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_SimpleObjectMethod[] = { {(char *)"constructor", __pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_constructor, 0, (char *)0, 0}, {(char *)"fields", __pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_fields, 0, (char *)0, 0}, {(char *)"all_aliases", __pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_all_aliases, 0, (char *)0, 0}, {(char *)"typed_dict", __pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_typed_dict, 0, (char *)0, 0}, {(char *)"missing", __pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_missing, 0, (char *)0, 0}, {(char *)"unexpected", __pyx_getprop_9apischema_15deserialization_7methods_18SimpleObjectMethod_unexpected, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_SimpleObjectMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_SimpleObjectMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_SimpleObjectMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_SimpleObjectMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_SimpleObjectMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_SimpleObjectMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod_spec = { "apischema.deserialization.methods.SimpleObjectMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""SimpleObjectMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_SimpleObjectMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_SimpleObjectMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_SimpleObjectMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_SimpleObjectMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_SimpleObjectMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_18SimpleObjectMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_SimpleObjectMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ObjectMethod __pyx_vtable_9apischema_15deserialization_7methods_ObjectMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ObjectMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ObjectMethod; p->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)Py_None); Py_INCREF(Py_None); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None); p->flattened_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); p->pattern_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); p->additional_field = Py_None; Py_INCREF(Py_None); p->all_aliases = ((PyObject*)Py_None); Py_INCREF(Py_None); p->validators = ((PyObject*)Py_None); Py_INCREF(Py_None); p->init_defaults = ((PyObject*)Py_None); Py_INCREF(Py_None); p->post_init_modified = ((PyObject*)Py_None); Py_INCREF(Py_None); p->aliaser = Py_None; Py_INCREF(Py_None); p->missing = ((PyObject*)Py_None); Py_INCREF(Py_None); p->unexpected = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ObjectMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ObjectMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constructor); Py_CLEAR(p->constraints); Py_CLEAR(p->fields); Py_CLEAR(p->flattened_fields); Py_CLEAR(p->pattern_fields); Py_CLEAR(p->additional_field); Py_CLEAR(p->all_aliases); Py_CLEAR(p->validators); Py_CLEAR(p->init_defaults); Py_CLEAR(p->post_init_modified); Py_CLEAR(p->aliaser); Py_CLEAR(p->missing); Py_CLEAR(p->unexpected); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ObjectMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ObjectMethod)); if (e) return e; if (p->constructor) { e = (*v)(((PyObject *)p->constructor), a); if (e) return e; } if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->fields) { e = (*v)(p->fields, a); if (e) return e; } if (p->flattened_fields) { e = (*v)(p->flattened_fields, a); if (e) return e; } if (p->pattern_fields) { e = (*v)(p->pattern_fields, a); if (e) return e; } if (p->additional_field) { e = (*v)(p->additional_field, a); if (e) return e; } if (p->all_aliases) { e = (*v)(p->all_aliases, a); if (e) return e; } if (p->validators) { e = (*v)(p->validators, a); if (e) return e; } if (p->init_defaults) { e = (*v)(p->init_defaults, a); if (e) return e; } if (p->post_init_modified) { e = (*v)(p->post_init_modified, a); if (e) return e; } if (p->aliaser) { e = (*v)(p->aliaser, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ObjectMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ObjectMethod); tmp = ((PyObject*)p->constructor); p->constructor = ((struct __pyx_obj_9apischema_15deserialization_7methods_Constructor *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->fields); p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->flattened_fields); p->flattened_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->pattern_fields); p->pattern_fields = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->additional_field); p->additional_field = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->all_aliases); p->all_aliases = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->validators); p->validators = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->init_defaults); p->init_defaults = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->post_init_modified); p->post_init_modified = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->aliaser); p->aliaser = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_constructor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11constructor_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_6fields_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_flattened_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16flattened_fields_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_pattern_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_14pattern_fields_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_additional_field(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16additional_field_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_all_aliases(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_11all_aliases_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_additional_properties(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_21additional_properties_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_typed_dict(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10typed_dict_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_validators(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10validators_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_init_defaults(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_13init_defaults_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_post_init_modified(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_18post_init_modified_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_aliaser(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7aliaser_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_missing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7missing_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_unexpected(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_10unexpected_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_aggregate_fields(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_16aggregate_fields_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ObjectMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ObjectMethod[] = { {(char *)"constructor", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_constructor, 0, (char *)0, 0}, {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_constraints, 0, (char *)0, 0}, {(char *)"fields", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_fields, 0, (char *)0, 0}, {(char *)"flattened_fields", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_flattened_fields, 0, (char *)0, 0}, {(char *)"pattern_fields", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_pattern_fields, 0, (char *)0, 0}, {(char *)"additional_field", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_additional_field, 0, (char *)0, 0}, {(char *)"all_aliases", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_all_aliases, 0, (char *)0, 0}, {(char *)"additional_properties", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_additional_properties, 0, (char *)0, 0}, {(char *)"typed_dict", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_typed_dict, 0, (char *)0, 0}, {(char *)"validators", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_validators, 0, (char *)0, 0}, {(char *)"init_defaults", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_init_defaults, 0, (char *)0, 0}, {(char *)"post_init_modified", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_post_init_modified, 0, (char *)0, 0}, {(char *)"aliaser", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_aliaser, 0, (char *)0, 0}, {(char *)"missing", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_missing, 0, (char *)0, 0}, {(char *)"unexpected", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_unexpected, 0, (char *)0, 0}, {(char *)"aggregate_fields", __pyx_getprop_9apischema_15deserialization_7methods_12ObjectMethod_aggregate_fields, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ObjectMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ObjectMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ObjectMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ObjectMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ObjectMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ObjectMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ObjectMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ObjectMethod_spec = { "apischema.deserialization.methods.ObjectMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ObjectMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ObjectMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ObjectMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ObjectMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ObjectMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ObjectMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ObjectMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ObjectMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_12ObjectMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ObjectMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_NoneMethod __pyx_vtable_9apischema_15deserialization_7methods_NoneMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_NoneMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_NoneMethod; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_NoneMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_NoneMethod_slots[] = { {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_NoneMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_NoneMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_NoneMethod_spec = { "apischema.deserialization.methods.NoneMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_9apischema_15deserialization_7methods_NoneMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_NoneMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""NoneMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_NoneMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_10NoneMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_NoneMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_IntMethod __pyx_vtable_9apischema_15deserialization_7methods_IntMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_IntMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_IntMethod; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_IntMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_IntMethod_slots[] = { {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_IntMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_9IntMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_IntMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_IntMethod_spec = { "apischema.deserialization.methods.IntMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_9apischema_15deserialization_7methods_IntMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_IntMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""IntMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_IntMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_9IntMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_IntMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FloatMethod __pyx_vtable_9apischema_15deserialization_7methods_FloatMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_FloatMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_FloatMethod; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_FloatMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_FloatMethod_slots[] = { {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_FloatMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_FloatMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_FloatMethod_spec = { "apischema.deserialization.methods.FloatMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_9apischema_15deserialization_7methods_FloatMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_FloatMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""FloatMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_FloatMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_11FloatMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_FloatMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_StrMethod __pyx_vtable_9apischema_15deserialization_7methods_StrMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_StrMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_StrMethod; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_StrMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_StrMethod_slots[] = { {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_StrMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_9StrMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_StrMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_StrMethod_spec = { "apischema.deserialization.methods.StrMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_9apischema_15deserialization_7methods_StrMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_StrMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""StrMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_StrMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_9StrMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_StrMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_BoolMethod __pyx_vtable_9apischema_15deserialization_7methods_BoolMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_BoolMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_BoolMethod; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_BoolMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_BoolMethod_slots[] = { {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_BoolMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_BoolMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_BoolMethod_spec = { "apischema.deserialization.methods.BoolMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_9apischema_15deserialization_7methods_BoolMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_BoolMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""BoolMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ 0, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_BoolMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_10BoolMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_BoolMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedIntMethod __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedIntMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedIntMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_IntMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9apischema_15deserialization_7methods_IntMethod*)__pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedIntMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedIntMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedIntMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedIntMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedIntMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedIntMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedIntMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_20ConstrainedIntMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_11constraints_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConstrainedIntMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ConstrainedIntMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_20ConstrainedIntMethod_constraints, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedIntMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedIntMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedIntMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConstrainedIntMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ConstrainedIntMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedIntMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod_spec = { "apischema.deserialization.methods.ConstrainedIntMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConstrainedIntMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedIntMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedIntMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedIntMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedIntMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConstrainedIntMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ConstrainedIntMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedIntMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedIntMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedFloatMethod __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedFloatMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedFloatMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_FloatMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9apischema_15deserialization_7methods_FloatMethod*)__pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedFloatMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedFloatMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedFloatMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedFloatMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedFloatMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedFloatMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedFloatMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_11constraints_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConstrainedFloatMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ConstrainedFloatMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_constraints, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedFloatMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedFloatMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedFloatMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConstrainedFloatMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ConstrainedFloatMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedFloatMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod_spec = { "apischema.deserialization.methods.ConstrainedFloatMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConstrainedFloatMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedFloatMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedFloatMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedFloatMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedFloatMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConstrainedFloatMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ConstrainedFloatMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedFloatMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConstrainedStrMethod __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedStrMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedStrMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_StrMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9apischema_15deserialization_7methods_StrMethod*)__pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedStrMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedStrMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedStrMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedStrMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedStrMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedStrMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedStrMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_20ConstrainedStrMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_11constraints_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConstrainedStrMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ConstrainedStrMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_20ConstrainedStrMethod_constraints, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedStrMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedStrMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedStrMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConstrainedStrMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ConstrainedStrMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedStrMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod_spec = { "apischema.deserialization.methods.ConstrainedStrMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConstrainedStrMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConstrainedStrMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConstrainedStrMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConstrainedStrMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConstrainedStrMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConstrainedStrMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ConstrainedStrMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_20ConstrainedStrMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConstrainedStrMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_SubprimitiveMethod __pyx_vtable_9apischema_15deserialization_7methods_SubprimitiveMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_SubprimitiveMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_SubprimitiveMethod; p->cls = ((PyTypeObject *)Py_None); Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_SubprimitiveMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_SubprimitiveMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->cls); Py_CLEAR(p->method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_SubprimitiveMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_SubprimitiveMethod)); if (e) return e; if (p->cls) { e = (*v)(((PyObject *)p->cls), a); if (e) return e; } if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_SubprimitiveMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_SubprimitiveMethod); tmp = ((PyObject*)p->cls); p->cls = ((PyTypeObject *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SubprimitiveMethod_cls(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3cls_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_18SubprimitiveMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_6method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_SubprimitiveMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_SubprimitiveMethod[] = { {(char *)"cls", __pyx_getprop_9apischema_15deserialization_7methods_18SubprimitiveMethod_cls, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_18SubprimitiveMethod_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_SubprimitiveMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_SubprimitiveMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_SubprimitiveMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_SubprimitiveMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_SubprimitiveMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_SubprimitiveMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod_spec = { "apischema.deserialization.methods.SubprimitiveMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""SubprimitiveMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_SubprimitiveMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_SubprimitiveMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_SubprimitiveMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_SubprimitiveMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_SubprimitiveMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_18SubprimitiveMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_SubprimitiveMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_TupleMethod __pyx_vtable_9apischema_15deserialization_7methods_TupleMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_TupleMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_TupleMethod; p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); p->min_len_error = Py_None; Py_INCREF(Py_None); p->max_len_error = Py_None; Py_INCREF(Py_None); p->elt_methods = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_TupleMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_TupleMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->constraints); Py_CLEAR(p->min_len_error); Py_CLEAR(p->max_len_error); Py_CLEAR(p->elt_methods); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_TupleMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_TupleMethod)); if (e) return e; if (p->constraints) { e = (*v)(p->constraints, a); if (e) return e; } if (p->min_len_error) { e = (*v)(p->min_len_error, a); if (e) return e; } if (p->max_len_error) { e = (*v)(p->max_len_error, a); if (e) return e; } if (p->elt_methods) { e = (*v)(p->elt_methods, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_TupleMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_TupleMethod); tmp = ((PyObject*)p->constraints); p->constraints = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->min_len_error); p->min_len_error = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->max_len_error); p->max_len_error = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->elt_methods); p->elt_methods = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_constraints(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_11constraints_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_min_len_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_13min_len_error_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_max_len_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_13max_len_error_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_elt_methods(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_11elt_methods_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_TupleMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_TupleMethod[] = { {(char *)"constraints", __pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_constraints, 0, (char *)0, 0}, {(char *)"min_len_error", __pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_min_len_error, 0, (char *)0, 0}, {(char *)"max_len_error", __pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_max_len_error, 0, (char *)0, 0}, {(char *)"elt_methods", __pyx_getprop_9apischema_15deserialization_7methods_11TupleMethod_elt_methods, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_TupleMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_TupleMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_TupleMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_TupleMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_TupleMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_TupleMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_TupleMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_TupleMethod_spec = { "apischema.deserialization.methods.TupleMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_TupleMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_TupleMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""TupleMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_TupleMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_TupleMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_TupleMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_TupleMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_TupleMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_11TupleMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_TupleMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_OptionalMethod __pyx_vtable_9apischema_15deserialization_7methods_OptionalMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_OptionalMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_OptionalMethod; p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); p->coercer = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_OptionalMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_OptionalMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->value_method); Py_CLEAR(p->coercer); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_OptionalMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_OptionalMethod)); if (e) return e; if (p->value_method) { e = (*v)(((PyObject *)p->value_method), a); if (e) return e; } if (p->coercer) { e = (*v)(p->coercer, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_OptionalMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_OptionalMethod); tmp = ((PyObject*)p->value_method); p->value_method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->coercer); p->coercer = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_14OptionalMethod_value_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_12value_method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_14OptionalMethod_coercer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7coercer_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_OptionalMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_OptionalMethod[] = { {(char *)"value_method", __pyx_getprop_9apischema_15deserialization_7methods_14OptionalMethod_value_method, 0, (char *)0, 0}, {(char *)"coercer", __pyx_getprop_9apischema_15deserialization_7methods_14OptionalMethod_coercer, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_OptionalMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_OptionalMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_OptionalMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_OptionalMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_OptionalMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_OptionalMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_OptionalMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_OptionalMethod_spec = { "apischema.deserialization.methods.OptionalMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_OptionalMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_OptionalMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""OptionalMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_OptionalMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_OptionalMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_OptionalMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_OptionalMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_OptionalMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_14OptionalMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_OptionalMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionByTypeMethod __pyx_vtable_9apischema_15deserialization_7methods_UnionByTypeMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_UnionByTypeMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_UnionByTypeMethod; p->method_by_cls = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionByTypeMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionByTypeMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->method_by_cls); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_UnionByTypeMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_UnionByTypeMethod)); if (e) return e; if (p->method_by_cls) { e = (*v)(p->method_by_cls, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_UnionByTypeMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_UnionByTypeMethod); tmp = ((PyObject*)p->method_by_cls); p->method_by_cls = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_17UnionByTypeMethod_method_by_cls(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_13method_by_cls_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_UnionByTypeMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_UnionByTypeMethod[] = { {(char *)"method_by_cls", __pyx_getprop_9apischema_15deserialization_7methods_17UnionByTypeMethod_method_by_cls, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionByTypeMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_UnionByTypeMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_UnionByTypeMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_UnionByTypeMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_UnionByTypeMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_UnionByTypeMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod_spec = { "apischema.deserialization.methods.UnionByTypeMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""UnionByTypeMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionByTypeMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_UnionByTypeMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_UnionByTypeMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_UnionByTypeMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_UnionByTypeMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_17UnionByTypeMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_UnionByTypeMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_UnionMethod __pyx_vtable_9apischema_15deserialization_7methods_UnionMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_UnionMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_UnionMethod; p->alt_methods = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->alt_methods); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_UnionMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_UnionMethod)); if (e) return e; if (p->alt_methods) { e = (*v)(p->alt_methods, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_UnionMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_UnionMethod); tmp = ((PyObject*)p->alt_methods); p->alt_methods = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_11UnionMethod_alt_methods(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_11alt_methods_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_UnionMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_UnionMethod[] = { {(char *)"alt_methods", __pyx_getprop_9apischema_15deserialization_7methods_11UnionMethod_alt_methods, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_UnionMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_UnionMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_UnionMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_UnionMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_UnionMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_UnionMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_UnionMethod_spec = { "apischema.deserialization.methods.UnionMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_UnionMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_UnionMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""UnionMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_UnionMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_UnionMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_UnionMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_UnionMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_UnionMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_11UnionMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_UnionMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionMethod __pyx_vtable_9apischema_15deserialization_7methods_ConversionMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionMethod; p->converter = Py_None; Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->converter); Py_CLEAR(p->method); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionMethod)); if (e) return e; if (p->converter) { e = (*v)(p->converter, a); if (e) return e; } if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionMethod); tmp = ((PyObject*)p->converter); p->converter = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_16ConversionMethod_converter(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_9converter_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_16ConversionMethod_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_6method_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConversionMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ConversionMethod[] = { {(char *)"converter", __pyx_getprop_9apischema_15deserialization_7methods_16ConversionMethod_converter, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_16ConversionMethod_method, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConversionMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConversionMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConversionMethod_spec = { "apischema.deserialization.methods.ConversionMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConversionMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConversionMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConversionMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConversionMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ConversionMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_16ConversionMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConversionMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod __pyx_vtable_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_ConversionMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionMethod*)__pyx_vtabptr_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; return o; } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_slots[] = { {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConversionMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_spec = { "apischema.deserialization.methods.ConversionWithValueErrorMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConversionWithValueErrorMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionAlternative(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)o); p->converter = Py_None; Py_INCREF(Py_None); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionAlternative(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionAlternative) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->converter); Py_CLEAR(p->method); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionAlternative(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)o; if (p->converter) { e = (*v)(p->converter, a); if (e) return e; } if (p->method) { e = (*v)(((PyObject *)p->method), a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionAlternative(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative *)o; tmp = ((PyObject*)p->converter); p->converter = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->method); p->method = ((struct __pyx_obj_9apischema_15deserialization_7methods_DeserializationMethod *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_21ConversionAlternative_converter(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_9converter_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_21ConversionAlternative_method(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_6method_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_21ConversionAlternative_value_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_11value_error_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConversionAlternative[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ConversionAlternative[] = { {(char *)"converter", __pyx_getprop_9apischema_15deserialization_7methods_21ConversionAlternative_converter, 0, (char *)0, 0}, {(char *)"method", __pyx_getprop_9apischema_15deserialization_7methods_21ConversionAlternative_method, 0, (char *)0, 0}, {(char *)"value_error", __pyx_getprop_9apischema_15deserialization_7methods_21ConversionAlternative_value_error, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConversionAlternative_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionAlternative}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionAlternative}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConversionAlternative}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConversionAlternative}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ConversionAlternative}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConversionAlternative}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConversionAlternative_spec = { "apischema.deserialization.methods.ConversionAlternative", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConversionAlternative_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConversionAlternative = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConversionAlternative", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionAlternative), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionAlternative, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionAlternative, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionAlternative, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConversionAlternative, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ConversionAlternative, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_21ConversionAlternative_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConversionAlternative, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_ConversionUnionMethod __pyx_vtable_9apischema_15deserialization_7methods_ConversionUnionMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_ConversionUnionMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionUnionMethod; p->alternatives = ((PyObject*)Py_None); Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionUnionMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionUnionMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->alternatives); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionUnionMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionUnionMethod)); if (e) return e; if (p->alternatives) { e = (*v)(p->alternatives, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionUnionMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionUnionMethod); tmp = ((PyObject*)p->alternatives); p->alternatives = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_21ConversionUnionMethod_alternatives(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_12alternatives_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_ConversionUnionMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_ConversionUnionMethod[] = { {(char *)"alternatives", __pyx_getprop_9apischema_15deserialization_7methods_21ConversionUnionMethod_alternatives, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionUnionMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionUnionMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_ConversionUnionMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_ConversionUnionMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_ConversionUnionMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_ConversionUnionMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod_spec = { "apischema.deserialization.methods.ConversionUnionMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""ConversionUnionMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_ConversionUnionMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_ConversionUnionMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_ConversionUnionMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_ConversionUnionMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_ConversionUnionMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_21ConversionUnionMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_ConversionUnionMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_Discriminated(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)o); p->discriminator = ((PyObject*)Py_None); Py_INCREF(Py_None); p->data = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_Discriminated(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_Discriminated) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->discriminator); Py_CLEAR(p->data); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_Discriminated(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)o; if (p->data) { e = (*v)(p->data, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_Discriminated(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *p = (struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated *)o; tmp = ((PyObject*)p->data); p->data = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13Discriminated_discriminator(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13Discriminated_13discriminator_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_13Discriminated_data(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_13Discriminated_4data_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_Discriminated[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_Discriminated[] = { {(char *)"discriminator", __pyx_getprop_9apischema_15deserialization_7methods_13Discriminated_discriminator, 0, (char *)0, 0}, {(char *)"data", __pyx_getprop_9apischema_15deserialization_7methods_13Discriminated_data, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_Discriminated_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_Discriminated}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_Discriminated}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_Discriminated}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_Discriminated}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_Discriminated}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_13Discriminated_1__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_Discriminated}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_Discriminated_spec = { "apischema.deserialization.methods.Discriminated", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_Discriminated_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_Discriminated = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""Discriminated", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_Discriminated), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_Discriminated, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_Discriminated, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_Discriminated, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_Discriminated, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_Discriminated, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_13Discriminated_1__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_Discriminated, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static struct __pyx_vtabstruct_9apischema_15deserialization_7methods_DiscriminatorMethod __pyx_vtable_9apischema_15deserialization_7methods_DiscriminatorMethod; static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods_DiscriminatorMethod(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *p; PyObject *o = __pyx_tp_new_9apischema_15deserialization_7methods_DeserializationMethod(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)o); p->__pyx_vtab = __pyx_vtabptr_9apischema_15deserialization_7methods_DiscriminatorMethod; p->alias = ((PyObject*)Py_None); Py_INCREF(Py_None); p->mapping = ((PyObject*)Py_None); Py_INCREF(Py_None); p->missing = ((PyObject*)Py_None); Py_INCREF(Py_None); p->error = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods_DiscriminatorMethod(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods_DiscriminatorMethod) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->alias); Py_CLEAR(p->mapping); Py_CLEAR(p->missing); Py_CLEAR(p->error); __pyx_tp_dealloc_9apischema_15deserialization_7methods_DeserializationMethod(o); } static int __pyx_tp_traverse_9apischema_15deserialization_7methods_DiscriminatorMethod(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)o; e = ((likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) ? ((__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse) ? __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9apischema_15deserialization_7methods_DiscriminatorMethod)); if (e) return e; if (p->mapping) { e = (*v)(p->mapping, a); if (e) return e; } if (p->error) { e = (*v)(p->error, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods_DiscriminatorMethod(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *p = (struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *)o; if (likely(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) { if (__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9apischema_15deserialization_7methods_DiscriminatorMethod); tmp = ((PyObject*)p->mapping); p->mapping = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->error); p->error = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_alias(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5alias_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_mapping(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7mapping_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_missing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7missing_1__get__(o); } static PyObject *__pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_error(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5error_1__get__(o); } static PyMethodDef __pyx_methods_9apischema_15deserialization_7methods_DiscriminatorMethod[] = { {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9apischema_15deserialization_7methods_DiscriminatorMethod[] = { {(char *)"alias", __pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_alias, 0, (char *)0, 0}, {(char *)"mapping", __pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_mapping, 0, (char *)0, 0}, {(char *)"missing", __pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_missing, 0, (char *)0, 0}, {(char *)"error", __pyx_getprop_9apischema_15deserialization_7methods_19DiscriminatorMethod_error, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods_DiscriminatorMethod}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods_DiscriminatorMethod}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods_DiscriminatorMethod}, {Py_tp_methods, (void *)__pyx_methods_9apischema_15deserialization_7methods_DiscriminatorMethod}, {Py_tp_getset, (void *)__pyx_getsets_9apischema_15deserialization_7methods_DiscriminatorMethod}, {Py_tp_init, (void *)__pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods_DiscriminatorMethod}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod_spec = { "apischema.deserialization.methods.DiscriminatorMethod", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, __pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""DiscriminatorMethod", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods_DiscriminatorMethod, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods_DiscriminatorMethod, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods_DiscriminatorMethod, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9apischema_15deserialization_7methods_DiscriminatorMethod, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_9apischema_15deserialization_7methods_DiscriminatorMethod, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif __pyx_pw_9apischema_15deserialization_7methods_19DiscriminatorMethod_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods_DiscriminatorMethod, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif #if CYTHON_USE_FREELISTS static struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *__pyx_freelist_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize[8]; static int __pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize = 0; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize)))) { o = (PyObject*)__pyx_freelist_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize[--__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize]; memset(o, 0, sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *p = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_data); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize)))) { __pyx_freelist_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize[__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize++] = ((struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *p = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *)o; if (p->__pyx_v_data) { e = (*v)(p->__pyx_v_data, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize(PyObject *o) { PyObject* tmp; struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *p = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize *)o; tmp = ((PyObject*)p->__pyx_v_data); p->__pyx_v_data = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize}, {Py_tp_clear, (void *)__pyx_tp_clear_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize_spec = { "apischema.deserialization.methods.__pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""__pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize, /*tp_traverse*/ __pyx_tp_clear_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif #if CYTHON_USE_FREELISTS static struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *__pyx_freelist_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr[8]; static int __pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr = 0; #endif static PyObject *__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr)))) { o = (PyObject*)__pyx_freelist_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr[--__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr(PyObject *o) { struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_outer_scope); Py_CLEAR(p->__pyx_genexpr_arg_0); Py_CLEAR(p->__pyx_v_cls); Py_CLEAR(p->__pyx_t_0); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr)))) { __pyx_freelist_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr[__pyx_freecount_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr++] = ((struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr *)o; if (p->__pyx_outer_scope) { e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e; } if (p->__pyx_genexpr_arg_0) { e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e; } if (p->__pyx_v_cls) { e = (*v)(p->__pyx_v_cls, a); if (e) return e; } if (p->__pyx_t_0) { e = (*v)(p->__pyx_t_0, a); if (e) return e; } return 0; } #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr_spec = { "apischema.deserialization.methods.__pyx_scope_struct_1_genexpr", sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr_slots, }; #else static PyTypeObject __pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr = { PyVarObject_HEAD_INIT(0, 0) "apischema.deserialization.methods.""__pyx_scope_struct_1_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ #if !CYTHON_USE_TYPE_SPECS 0, /*tp_dictoffset*/ #endif 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #ifndef CYTHON_SMALL_CODE #if defined(__clang__) #define CYTHON_SMALL_CODE #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) #define CYTHON_SMALL_CODE __attribute__((cold)) #else #define CYTHON_SMALL_CODE #endif #endif /* #### Code section: pystring_table ### */ static int __Pyx_CreateStringTabAndInitStrings(void) { __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0}, {&__pyx_n_s_AbstractSet, __pyx_k_AbstractSet, sizeof(__pyx_k_AbstractSet), 0, 0, 1, 1}, {&__pyx_n_s_AdditionalField, __pyx_k_AdditionalField, sizeof(__pyx_k_AdditionalField), 0, 0, 1, 1}, {&__pyx_n_s_AdditionalField___reduce_cython, __pyx_k_AdditionalField___reduce_cython, sizeof(__pyx_k_AdditionalField___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_AdditionalField___setstate_cytho, __pyx_k_AdditionalField___setstate_cytho, sizeof(__pyx_k_AdditionalField___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_Aliaser, __pyx_k_Aliaser, sizeof(__pyx_k_Aliaser), 0, 0, 1, 1}, {&__pyx_n_s_Any, __pyx_k_Any, sizeof(__pyx_k_Any), 0, 0, 1, 1}, {&__pyx_n_s_AnyMethod, __pyx_k_AnyMethod, sizeof(__pyx_k_AnyMethod), 0, 0, 1, 1}, {&__pyx_n_s_AnyMethod___reduce_cython, __pyx_k_AnyMethod___reduce_cython, sizeof(__pyx_k_AnyMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_AnyMethod___setstate_cython, __pyx_k_AnyMethod___setstate_cython, sizeof(__pyx_k_AnyMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_AnyMethod_deserialize, __pyx_k_AnyMethod_deserialize, sizeof(__pyx_k_AnyMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_AnyType, __pyx_k_AnyType, sizeof(__pyx_k_AnyType), 0, 0, 1, 1}, {&__pyx_n_s_AssertionError, __pyx_k_AssertionError, sizeof(__pyx_k_AssertionError), 0, 0, 1, 1}, {&__pyx_n_s_BoolMethod, __pyx_k_BoolMethod, sizeof(__pyx_k_BoolMethod), 0, 0, 1, 1}, {&__pyx_n_s_BoolMethod___reduce_cython, __pyx_k_BoolMethod___reduce_cython, sizeof(__pyx_k_BoolMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_BoolMethod___setstate_cython, __pyx_k_BoolMethod___setstate_cython, sizeof(__pyx_k_BoolMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_BoolMethod_deserialize, __pyx_k_BoolMethod_deserialize, sizeof(__pyx_k_BoolMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Callable, __pyx_k_Callable, sizeof(__pyx_k_Callable), 0, 0, 1, 1}, {&__pyx_n_s_Coercer, __pyx_k_Coercer, sizeof(__pyx_k_Coercer), 0, 0, 1, 1}, {&__pyx_n_s_CoercerMethod, __pyx_k_CoercerMethod, sizeof(__pyx_k_CoercerMethod), 0, 0, 1, 1}, {&__pyx_n_s_CoercerMethod___reduce_cython, __pyx_k_CoercerMethod___reduce_cython, sizeof(__pyx_k_CoercerMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_CoercerMethod___setstate_cython, __pyx_k_CoercerMethod___setstate_cython, sizeof(__pyx_k_CoercerMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_CoercerMethod_deserialize, __pyx_k_CoercerMethod_deserialize, sizeof(__pyx_k_CoercerMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedFloatMethod, __pyx_k_ConstrainedFloatMethod, sizeof(__pyx_k_ConstrainedFloatMethod), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedFloatMethod___reduce, __pyx_k_ConstrainedFloatMethod___reduce, sizeof(__pyx_k_ConstrainedFloatMethod___reduce), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedFloatMethod___setstat, __pyx_k_ConstrainedFloatMethod___setstat, sizeof(__pyx_k_ConstrainedFloatMethod___setstat), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedFloatMethod_deseriali, __pyx_k_ConstrainedFloatMethod_deseriali, sizeof(__pyx_k_ConstrainedFloatMethod_deseriali), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedIntMethod, __pyx_k_ConstrainedIntMethod, sizeof(__pyx_k_ConstrainedIntMethod), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedIntMethod___reduce_cy, __pyx_k_ConstrainedIntMethod___reduce_cy, sizeof(__pyx_k_ConstrainedIntMethod___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedIntMethod___setstate, __pyx_k_ConstrainedIntMethod___setstate, sizeof(__pyx_k_ConstrainedIntMethod___setstate), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedIntMethod_deserialize, __pyx_k_ConstrainedIntMethod_deserialize, sizeof(__pyx_k_ConstrainedIntMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedStrMethod, __pyx_k_ConstrainedStrMethod, sizeof(__pyx_k_ConstrainedStrMethod), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedStrMethod___reduce_cy, __pyx_k_ConstrainedStrMethod___reduce_cy, sizeof(__pyx_k_ConstrainedStrMethod___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedStrMethod___setstate, __pyx_k_ConstrainedStrMethod___setstate, sizeof(__pyx_k_ConstrainedStrMethod___setstate), 0, 0, 1, 1}, {&__pyx_n_s_ConstrainedStrMethod_deserialize, __pyx_k_ConstrainedStrMethod_deserialize, sizeof(__pyx_k_ConstrainedStrMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Constraint, __pyx_k_Constraint, sizeof(__pyx_k_Constraint), 0, 0, 1, 1}, {&__pyx_n_s_Constraint___reduce_cython, __pyx_k_Constraint___reduce_cython, sizeof(__pyx_k_Constraint___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_Constraint___setstate_cython, __pyx_k_Constraint___setstate_cython, sizeof(__pyx_k_Constraint___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_Constructor, __pyx_k_Constructor, sizeof(__pyx_k_Constructor), 0, 0, 1, 1}, {&__pyx_n_s_Constructor___reduce_cython, __pyx_k_Constructor___reduce_cython, sizeof(__pyx_k_Constructor___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_Constructor___setstate_cython, __pyx_k_Constructor___setstate_cython, sizeof(__pyx_k_Constructor___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_ConversionAlternative, __pyx_k_ConversionAlternative, sizeof(__pyx_k_ConversionAlternative), 0, 0, 1, 1}, {&__pyx_n_s_ConversionAlternative___reduce_c, __pyx_k_ConversionAlternative___reduce_c, sizeof(__pyx_k_ConversionAlternative___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_ConversionAlternative___setstate, __pyx_k_ConversionAlternative___setstate, sizeof(__pyx_k_ConversionAlternative___setstate), 0, 0, 1, 1}, {&__pyx_n_s_ConversionMethod, __pyx_k_ConversionMethod, sizeof(__pyx_k_ConversionMethod), 0, 0, 1, 1}, {&__pyx_n_s_ConversionMethod___reduce_cython, __pyx_k_ConversionMethod___reduce_cython, sizeof(__pyx_k_ConversionMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_ConversionMethod___setstate_cyth, __pyx_k_ConversionMethod___setstate_cyth, sizeof(__pyx_k_ConversionMethod___setstate_cyth), 0, 0, 1, 1}, {&__pyx_n_s_ConversionMethod_deserialize, __pyx_k_ConversionMethod_deserialize, sizeof(__pyx_k_ConversionMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_ConversionUnionMethod, __pyx_k_ConversionUnionMethod, sizeof(__pyx_k_ConversionUnionMethod), 0, 0, 1, 1}, {&__pyx_n_s_ConversionUnionMethod___reduce_c, __pyx_k_ConversionUnionMethod___reduce_c, sizeof(__pyx_k_ConversionUnionMethod___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_ConversionUnionMethod___setstate, __pyx_k_ConversionUnionMethod___setstate, sizeof(__pyx_k_ConversionUnionMethod___setstate), 0, 0, 1, 1}, {&__pyx_n_s_ConversionUnionMethod_deserializ, __pyx_k_ConversionUnionMethod_deserializ, sizeof(__pyx_k_ConversionUnionMethod_deserializ), 0, 0, 1, 1}, {&__pyx_n_s_ConversionWithValueErrorMethod, __pyx_k_ConversionWithValueErrorMethod, sizeof(__pyx_k_ConversionWithValueErrorMethod), 0, 0, 1, 1}, {&__pyx_n_s_ConversionWithValueErrorMethod_2, __pyx_k_ConversionWithValueErrorMethod_2, sizeof(__pyx_k_ConversionWithValueErrorMethod_2), 0, 0, 1, 1}, {&__pyx_n_s_ConversionWithValueErrorMethod_3, __pyx_k_ConversionWithValueErrorMethod_3, sizeof(__pyx_k_ConversionWithValueErrorMethod_3), 0, 0, 1, 1}, {&__pyx_n_s_ConversionWithValueErrorMethod_d, __pyx_k_ConversionWithValueErrorMethod_d, sizeof(__pyx_k_ConversionWithValueErrorMethod_d), 0, 0, 1, 1}, {&__pyx_n_s_Converter, __pyx_k_Converter, sizeof(__pyx_k_Converter), 0, 0, 1, 1}, {&__pyx_n_s_DefaultField, __pyx_k_DefaultField, sizeof(__pyx_k_DefaultField), 0, 0, 1, 1}, {&__pyx_n_s_DefaultField___reduce_cython, __pyx_k_DefaultField___reduce_cython, sizeof(__pyx_k_DefaultField___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_DefaultField___setstate_cython, __pyx_k_DefaultField___setstate_cython, sizeof(__pyx_k_DefaultField___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_DeserializationMethod, __pyx_k_DeserializationMethod, sizeof(__pyx_k_DeserializationMethod), 0, 0, 1, 1}, {&__pyx_n_s_DeserializationMethod___reduce_c, __pyx_k_DeserializationMethod___reduce_c, sizeof(__pyx_k_DeserializationMethod___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_DeserializationMethod___setstate, __pyx_k_DeserializationMethod___setstate, sizeof(__pyx_k_DeserializationMethod___setstate), 0, 0, 1, 1}, {&__pyx_n_s_Dict, __pyx_k_Dict, sizeof(__pyx_k_Dict), 0, 0, 1, 1}, {&__pyx_n_s_Discriminated, __pyx_k_Discriminated, sizeof(__pyx_k_Discriminated), 0, 0, 1, 1}, {&__pyx_n_s_Discriminated___reduce_cython, __pyx_k_Discriminated___reduce_cython, sizeof(__pyx_k_Discriminated___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_Discriminated___setstate_cython, __pyx_k_Discriminated___setstate_cython, sizeof(__pyx_k_Discriminated___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_DiscriminatorMethod, __pyx_k_DiscriminatorMethod, sizeof(__pyx_k_DiscriminatorMethod), 0, 0, 1, 1}, {&__pyx_n_s_DiscriminatorMethod___reduce_cyt, __pyx_k_DiscriminatorMethod___reduce_cyt, sizeof(__pyx_k_DiscriminatorMethod___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_DiscriminatorMethod___setstate_c, __pyx_k_DiscriminatorMethod___setstate_c, sizeof(__pyx_k_DiscriminatorMethod___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_DiscriminatorMethod_deserialize, __pyx_k_DiscriminatorMethod_deserialize, sizeof(__pyx_k_DiscriminatorMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_ErrorKey, __pyx_k_ErrorKey, sizeof(__pyx_k_ErrorKey), 0, 0, 1, 1}, {&__pyx_n_s_ErrorMsg, __pyx_k_ErrorMsg, sizeof(__pyx_k_ErrorMsg), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMaximumConstraint, __pyx_k_ExclusiveMaximumConstraint, sizeof(__pyx_k_ExclusiveMaximumConstraint), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMaximumConstraint___red, __pyx_k_ExclusiveMaximumConstraint___red, sizeof(__pyx_k_ExclusiveMaximumConstraint___red), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMaximumConstraint___set, __pyx_k_ExclusiveMaximumConstraint___set, sizeof(__pyx_k_ExclusiveMaximumConstraint___set), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMaximumConstraint_valid, __pyx_k_ExclusiveMaximumConstraint_valid, sizeof(__pyx_k_ExclusiveMaximumConstraint_valid), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMinimumConstraint, __pyx_k_ExclusiveMinimumConstraint, sizeof(__pyx_k_ExclusiveMinimumConstraint), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMinimumConstraint___red, __pyx_k_ExclusiveMinimumConstraint___red, sizeof(__pyx_k_ExclusiveMinimumConstraint___red), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMinimumConstraint___set, __pyx_k_ExclusiveMinimumConstraint___set, sizeof(__pyx_k_ExclusiveMinimumConstraint___set), 0, 0, 1, 1}, {&__pyx_n_s_ExclusiveMinimumConstraint_valid, __pyx_k_ExclusiveMinimumConstraint_valid, sizeof(__pyx_k_ExclusiveMinimumConstraint_valid), 0, 0, 1, 1}, {&__pyx_n_s_FactoryField, __pyx_k_FactoryField, sizeof(__pyx_k_FactoryField), 0, 0, 1, 1}, {&__pyx_n_s_FactoryField___reduce_cython, __pyx_k_FactoryField___reduce_cython, sizeof(__pyx_k_FactoryField___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_FactoryField___setstate_cython, __pyx_k_FactoryField___setstate_cython, sizeof(__pyx_k_FactoryField___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_Field, __pyx_k_Field, sizeof(__pyx_k_Field), 0, 0, 1, 1}, {&__pyx_n_s_Field___reduce_cython, __pyx_k_Field___reduce_cython, sizeof(__pyx_k_Field___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_Field___setstate_cython, __pyx_k_Field___setstate_cython, sizeof(__pyx_k_Field___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_FieldsConstructor, __pyx_k_FieldsConstructor, sizeof(__pyx_k_FieldsConstructor), 0, 0, 1, 1}, {&__pyx_n_s_FieldsConstructor___reduce_cytho, __pyx_k_FieldsConstructor___reduce_cytho, sizeof(__pyx_k_FieldsConstructor___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_FieldsConstructor___setstate_cyt, __pyx_k_FieldsConstructor___setstate_cyt, sizeof(__pyx_k_FieldsConstructor___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_FieldsConstructor_construct, __pyx_k_FieldsConstructor_construct, sizeof(__pyx_k_FieldsConstructor_construct), 0, 0, 1, 1}, {&__pyx_n_s_FlattenedField, __pyx_k_FlattenedField, sizeof(__pyx_k_FlattenedField), 0, 0, 1, 1}, {&__pyx_n_s_FlattenedField___reduce_cython, __pyx_k_FlattenedField___reduce_cython, sizeof(__pyx_k_FlattenedField___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_FlattenedField___setstate_cython, __pyx_k_FlattenedField___setstate_cython, sizeof(__pyx_k_FlattenedField___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_FloatMethod, __pyx_k_FloatMethod, sizeof(__pyx_k_FloatMethod), 0, 0, 1, 1}, {&__pyx_n_s_FloatMethod___reduce_cython, __pyx_k_FloatMethod___reduce_cython, sizeof(__pyx_k_FloatMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_FloatMethod___setstate_cython, __pyx_k_FloatMethod___setstate_cython, sizeof(__pyx_k_FloatMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_FloatMethod_deserialize, __pyx_k_FloatMethod_deserialize, sizeof(__pyx_k_FloatMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_FrozenSetMethod, __pyx_k_FrozenSetMethod, sizeof(__pyx_k_FrozenSetMethod), 0, 0, 1, 1}, {&__pyx_n_s_FrozenSetMethod___reduce_cython, __pyx_k_FrozenSetMethod___reduce_cython, sizeof(__pyx_k_FrozenSetMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_FrozenSetMethod___setstate_cytho, __pyx_k_FrozenSetMethod___setstate_cytho, sizeof(__pyx_k_FrozenSetMethod___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_FrozenSetMethod_deserialize, __pyx_k_FrozenSetMethod_deserialize, sizeof(__pyx_k_FrozenSetMethod_deserialize), 0, 0, 1, 1}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_k_Incompatible_checksums_0x_x_vs_0, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_10, __pyx_k_Incompatible_checksums_0x_x_vs_0_10, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_10), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_11, __pyx_k_Incompatible_checksums_0x_x_vs_0_11, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_11), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_12, __pyx_k_Incompatible_checksums_0x_x_vs_0_12, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_12), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_13, __pyx_k_Incompatible_checksums_0x_x_vs_0_13, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_13), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_14, __pyx_k_Incompatible_checksums_0x_x_vs_0_14, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_14), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_15, __pyx_k_Incompatible_checksums_0x_x_vs_0_15, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_15), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_16, __pyx_k_Incompatible_checksums_0x_x_vs_0_16, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_16), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_17, __pyx_k_Incompatible_checksums_0x_x_vs_0_17, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_17), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_18, __pyx_k_Incompatible_checksums_0x_x_vs_0_18, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_18), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_19, __pyx_k_Incompatible_checksums_0x_x_vs_0_19, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_19), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2, __pyx_k_Incompatible_checksums_0x_x_vs_0_2, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_2), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_20, __pyx_k_Incompatible_checksums_0x_x_vs_0_20, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_20), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_21, __pyx_k_Incompatible_checksums_0x_x_vs_0_21, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_21), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_22, __pyx_k_Incompatible_checksums_0x_x_vs_0_22, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_22), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_23, __pyx_k_Incompatible_checksums_0x_x_vs_0_23, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_23), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_24, __pyx_k_Incompatible_checksums_0x_x_vs_0_24, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_24), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_25, __pyx_k_Incompatible_checksums_0x_x_vs_0_25, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_25), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_26, __pyx_k_Incompatible_checksums_0x_x_vs_0_26, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_26), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_27, __pyx_k_Incompatible_checksums_0x_x_vs_0_27, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_27), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_28, __pyx_k_Incompatible_checksums_0x_x_vs_0_28, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_28), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_29, __pyx_k_Incompatible_checksums_0x_x_vs_0_29, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_29), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3, __pyx_k_Incompatible_checksums_0x_x_vs_0_3, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_3), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_30, __pyx_k_Incompatible_checksums_0x_x_vs_0_30, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_30), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_31, __pyx_k_Incompatible_checksums_0x_x_vs_0_31, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_31), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_32, __pyx_k_Incompatible_checksums_0x_x_vs_0_32, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_32), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_33, __pyx_k_Incompatible_checksums_0x_x_vs_0_33, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_33), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_34, __pyx_k_Incompatible_checksums_0x_x_vs_0_34, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_34), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_35, __pyx_k_Incompatible_checksums_0x_x_vs_0_35, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_35), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_36, __pyx_k_Incompatible_checksums_0x_x_vs_0_36, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_36), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_37, __pyx_k_Incompatible_checksums_0x_x_vs_0_37, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_37), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_38, __pyx_k_Incompatible_checksums_0x_x_vs_0_38, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_38), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_39, __pyx_k_Incompatible_checksums_0x_x_vs_0_39, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_39), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4, __pyx_k_Incompatible_checksums_0x_x_vs_0_4, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_4), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_40, __pyx_k_Incompatible_checksums_0x_x_vs_0_40, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_40), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_41, __pyx_k_Incompatible_checksums_0x_x_vs_0_41, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_41), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_42, __pyx_k_Incompatible_checksums_0x_x_vs_0_42, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_42), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_43, __pyx_k_Incompatible_checksums_0x_x_vs_0_43, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_43), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_44, __pyx_k_Incompatible_checksums_0x_x_vs_0_44, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_44), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_5, __pyx_k_Incompatible_checksums_0x_x_vs_0_5, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_5), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_6, __pyx_k_Incompatible_checksums_0x_x_vs_0_6, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_6), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_7, __pyx_k_Incompatible_checksums_0x_x_vs_0_7, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_7), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_8, __pyx_k_Incompatible_checksums_0x_x_vs_0_8, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_8), 0, 0, 1, 0}, {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_9, __pyx_k_Incompatible_checksums_0x_x_vs_0_9, sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_9), 0, 0, 1, 0}, {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1}, {&__pyx_n_s_IntMethod, __pyx_k_IntMethod, sizeof(__pyx_k_IntMethod), 0, 0, 1, 1}, {&__pyx_n_s_IntMethod___reduce_cython, __pyx_k_IntMethod___reduce_cython, sizeof(__pyx_k_IntMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_IntMethod___setstate_cython, __pyx_k_IntMethod___setstate_cython, sizeof(__pyx_k_IntMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_IntMethod_deserialize, __pyx_k_IntMethod_deserialize, sizeof(__pyx_k_IntMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1}, {&__pyx_n_s_Lazy, __pyx_k_Lazy, sizeof(__pyx_k_Lazy), 0, 0, 1, 1}, {&__pyx_n_s_List, __pyx_k_List, sizeof(__pyx_k_List), 0, 0, 1, 1}, {&__pyx_n_s_ListCheckOnlyMethod, __pyx_k_ListCheckOnlyMethod, sizeof(__pyx_k_ListCheckOnlyMethod), 0, 0, 1, 1}, {&__pyx_n_s_ListCheckOnlyMethod___reduce_cyt, __pyx_k_ListCheckOnlyMethod___reduce_cyt, sizeof(__pyx_k_ListCheckOnlyMethod___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_ListCheckOnlyMethod___setstate_c, __pyx_k_ListCheckOnlyMethod___setstate_c, sizeof(__pyx_k_ListCheckOnlyMethod___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_ListCheckOnlyMethod_deserialize, __pyx_k_ListCheckOnlyMethod_deserialize, sizeof(__pyx_k_ListCheckOnlyMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_ListMethod, __pyx_k_ListMethod, sizeof(__pyx_k_ListMethod), 0, 0, 1, 1}, {&__pyx_n_s_ListMethod___reduce_cython, __pyx_k_ListMethod___reduce_cython, sizeof(__pyx_k_ListMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_ListMethod___setstate_cython, __pyx_k_ListMethod___setstate_cython, sizeof(__pyx_k_ListMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_ListMethod_deserialize, __pyx_k_ListMethod_deserialize, sizeof(__pyx_k_ListMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_LiteralMethod, __pyx_k_LiteralMethod, sizeof(__pyx_k_LiteralMethod), 0, 0, 1, 1}, {&__pyx_n_s_LiteralMethod___reduce_cython, __pyx_k_LiteralMethod___reduce_cython, sizeof(__pyx_k_LiteralMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_LiteralMethod___setstate_cython, __pyx_k_LiteralMethod___setstate_cython, sizeof(__pyx_k_LiteralMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_LiteralMethod_deserialize, __pyx_k_LiteralMethod_deserialize, sizeof(__pyx_k_LiteralMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Mapping, __pyx_k_Mapping, sizeof(__pyx_k_Mapping), 0, 0, 1, 1}, {&__pyx_n_s_MappingCheckOnly, __pyx_k_MappingCheckOnly, sizeof(__pyx_k_MappingCheckOnly), 0, 0, 1, 1}, {&__pyx_n_s_MappingCheckOnly___reduce_cython, __pyx_k_MappingCheckOnly___reduce_cython, sizeof(__pyx_k_MappingCheckOnly___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_MappingCheckOnly___setstate_cyth, __pyx_k_MappingCheckOnly___setstate_cyth, sizeof(__pyx_k_MappingCheckOnly___setstate_cyth), 0, 0, 1, 1}, {&__pyx_n_s_MappingCheckOnly_deserialize, __pyx_k_MappingCheckOnly_deserialize, sizeof(__pyx_k_MappingCheckOnly_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_MappingMethod, __pyx_k_MappingMethod, sizeof(__pyx_k_MappingMethod), 0, 0, 1, 1}, {&__pyx_n_s_MappingMethod___reduce_cython, __pyx_k_MappingMethod___reduce_cython, sizeof(__pyx_k_MappingMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_MappingMethod___setstate_cython, __pyx_k_MappingMethod___setstate_cython, sizeof(__pyx_k_MappingMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_MappingMethod_deserialize, __pyx_k_MappingMethod_deserialize, sizeof(__pyx_k_MappingMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_MaxItemsConstraint, __pyx_k_MaxItemsConstraint, sizeof(__pyx_k_MaxItemsConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MaxItemsConstraint___reduce_cyth, __pyx_k_MaxItemsConstraint___reduce_cyth, sizeof(__pyx_k_MaxItemsConstraint___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_MaxItemsConstraint___setstate_cy, __pyx_k_MaxItemsConstraint___setstate_cy, sizeof(__pyx_k_MaxItemsConstraint___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_MaxItemsConstraint_validate, __pyx_k_MaxItemsConstraint_validate, sizeof(__pyx_k_MaxItemsConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MaxLengthConstraint, __pyx_k_MaxLengthConstraint, sizeof(__pyx_k_MaxLengthConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MaxLengthConstraint___reduce_cyt, __pyx_k_MaxLengthConstraint___reduce_cyt, sizeof(__pyx_k_MaxLengthConstraint___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_MaxLengthConstraint___setstate_c, __pyx_k_MaxLengthConstraint___setstate_c, sizeof(__pyx_k_MaxLengthConstraint___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_MaxLengthConstraint_validate, __pyx_k_MaxLengthConstraint_validate, sizeof(__pyx_k_MaxLengthConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MaxPropertiesConstraint, __pyx_k_MaxPropertiesConstraint, sizeof(__pyx_k_MaxPropertiesConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MaxPropertiesConstraint___reduce, __pyx_k_MaxPropertiesConstraint___reduce, sizeof(__pyx_k_MaxPropertiesConstraint___reduce), 0, 0, 1, 1}, {&__pyx_n_s_MaxPropertiesConstraint___setsta, __pyx_k_MaxPropertiesConstraint___setsta, sizeof(__pyx_k_MaxPropertiesConstraint___setsta), 0, 0, 1, 1}, {&__pyx_n_s_MaxPropertiesConstraint_validate, __pyx_k_MaxPropertiesConstraint_validate, sizeof(__pyx_k_MaxPropertiesConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MaximumConstraint, __pyx_k_MaximumConstraint, sizeof(__pyx_k_MaximumConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MaximumConstraint___reduce_cytho, __pyx_k_MaximumConstraint___reduce_cytho, sizeof(__pyx_k_MaximumConstraint___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_MaximumConstraint___setstate_cyt, __pyx_k_MaximumConstraint___setstate_cyt, sizeof(__pyx_k_MaximumConstraint___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_MaximumConstraint_validate, __pyx_k_MaximumConstraint_validate, sizeof(__pyx_k_MaximumConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MinItemsConstraint, __pyx_k_MinItemsConstraint, sizeof(__pyx_k_MinItemsConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MinItemsConstraint___reduce_cyth, __pyx_k_MinItemsConstraint___reduce_cyth, sizeof(__pyx_k_MinItemsConstraint___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_MinItemsConstraint___setstate_cy, __pyx_k_MinItemsConstraint___setstate_cy, sizeof(__pyx_k_MinItemsConstraint___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_MinItemsConstraint_validate, __pyx_k_MinItemsConstraint_validate, sizeof(__pyx_k_MinItemsConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MinLengthConstraint, __pyx_k_MinLengthConstraint, sizeof(__pyx_k_MinLengthConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MinLengthConstraint___reduce_cyt, __pyx_k_MinLengthConstraint___reduce_cyt, sizeof(__pyx_k_MinLengthConstraint___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_MinLengthConstraint___setstate_c, __pyx_k_MinLengthConstraint___setstate_c, sizeof(__pyx_k_MinLengthConstraint___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_MinLengthConstraint_validate, __pyx_k_MinLengthConstraint_validate, sizeof(__pyx_k_MinLengthConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MinPropertiesConstraint, __pyx_k_MinPropertiesConstraint, sizeof(__pyx_k_MinPropertiesConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MinPropertiesConstraint___reduce, __pyx_k_MinPropertiesConstraint___reduce, sizeof(__pyx_k_MinPropertiesConstraint___reduce), 0, 0, 1, 1}, {&__pyx_n_s_MinPropertiesConstraint___setsta, __pyx_k_MinPropertiesConstraint___setsta, sizeof(__pyx_k_MinPropertiesConstraint___setsta), 0, 0, 1, 1}, {&__pyx_n_s_MinPropertiesConstraint_validate, __pyx_k_MinPropertiesConstraint_validate, sizeof(__pyx_k_MinPropertiesConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MinimumConstraint, __pyx_k_MinimumConstraint, sizeof(__pyx_k_MinimumConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MinimumConstraint___reduce_cytho, __pyx_k_MinimumConstraint___reduce_cytho, sizeof(__pyx_k_MinimumConstraint___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_MinimumConstraint___setstate_cyt, __pyx_k_MinimumConstraint___setstate_cyt, sizeof(__pyx_k_MinimumConstraint___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_MinimumConstraint_validate, __pyx_k_MinimumConstraint_validate, sizeof(__pyx_k_MinimumConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_MultipleOfConstraint, __pyx_k_MultipleOfConstraint, sizeof(__pyx_k_MultipleOfConstraint), 0, 0, 1, 1}, {&__pyx_n_s_MultipleOfConstraint___reduce_cy, __pyx_k_MultipleOfConstraint___reduce_cy, sizeof(__pyx_k_MultipleOfConstraint___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_MultipleOfConstraint___setstate, __pyx_k_MultipleOfConstraint___setstate, sizeof(__pyx_k_MultipleOfConstraint___setstate), 0, 0, 1, 1}, {&__pyx_n_s_MultipleOfConstraint_validate, __pyx_k_MultipleOfConstraint_validate, sizeof(__pyx_k_MultipleOfConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_NoConstructor, __pyx_k_NoConstructor, sizeof(__pyx_k_NoConstructor), 0, 0, 1, 1}, {&__pyx_n_s_NoConstructor___reduce_cython, __pyx_k_NoConstructor___reduce_cython, sizeof(__pyx_k_NoConstructor___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_NoConstructor___setstate_cython, __pyx_k_NoConstructor___setstate_cython, sizeof(__pyx_k_NoConstructor___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_NoConstructor_construct, __pyx_k_NoConstructor_construct, sizeof(__pyx_k_NoConstructor_construct), 0, 0, 1, 1}, {&__pyx_n_s_NoneMethod, __pyx_k_NoneMethod, sizeof(__pyx_k_NoneMethod), 0, 0, 1, 1}, {&__pyx_n_s_NoneMethod___reduce_cython, __pyx_k_NoneMethod___reduce_cython, sizeof(__pyx_k_NoneMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_NoneMethod___setstate_cython, __pyx_k_NoneMethod___setstate_cython, sizeof(__pyx_k_NoneMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_NoneMethod_deserialize, __pyx_k_NoneMethod_deserialize, sizeof(__pyx_k_NoneMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_NoneType, __pyx_k_NoneType, sizeof(__pyx_k_NoneType), 0, 0, 1, 1}, {&__pyx_n_s_NotImplementedError, __pyx_k_NotImplementedError, sizeof(__pyx_k_NotImplementedError), 0, 0, 1, 1}, {&__pyx_n_s_ObjectMethod, __pyx_k_ObjectMethod, sizeof(__pyx_k_ObjectMethod), 0, 0, 1, 1}, {&__pyx_n_s_ObjectMethod___reduce_cython, __pyx_k_ObjectMethod___reduce_cython, sizeof(__pyx_k_ObjectMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_ObjectMethod___setstate_cython, __pyx_k_ObjectMethod___setstate_cython, sizeof(__pyx_k_ObjectMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_ObjectMethod_deserialize, __pyx_k_ObjectMethod_deserialize, sizeof(__pyx_k_ObjectMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Optional, __pyx_k_Optional, sizeof(__pyx_k_Optional), 0, 0, 1, 1}, {&__pyx_n_s_OptionalMethod, __pyx_k_OptionalMethod, sizeof(__pyx_k_OptionalMethod), 0, 0, 1, 1}, {&__pyx_n_s_OptionalMethod___reduce_cython, __pyx_k_OptionalMethod___reduce_cython, sizeof(__pyx_k_OptionalMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_OptionalMethod___setstate_cython, __pyx_k_OptionalMethod___setstate_cython, sizeof(__pyx_k_OptionalMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_OptionalMethod_deserialize, __pyx_k_OptionalMethod_deserialize, sizeof(__pyx_k_OptionalMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Pattern, __pyx_k_Pattern, sizeof(__pyx_k_Pattern), 0, 0, 1, 1}, {&__pyx_n_s_PatternConstraint, __pyx_k_PatternConstraint, sizeof(__pyx_k_PatternConstraint), 0, 0, 1, 1}, {&__pyx_n_s_PatternConstraint___reduce_cytho, __pyx_k_PatternConstraint___reduce_cytho, sizeof(__pyx_k_PatternConstraint___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_PatternConstraint___setstate_cyt, __pyx_k_PatternConstraint___setstate_cyt, sizeof(__pyx_k_PatternConstraint___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_PatternConstraint_validate, __pyx_k_PatternConstraint_validate, sizeof(__pyx_k_PatternConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_PatternField, __pyx_k_PatternField, sizeof(__pyx_k_PatternField), 0, 0, 1, 1}, {&__pyx_n_s_PatternField___reduce_cython, __pyx_k_PatternField___reduce_cython, sizeof(__pyx_k_PatternField___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_PatternField___setstate_cython, __pyx_k_PatternField___setstate_cython, sizeof(__pyx_k_PatternField___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructor, __pyx_k_RawConstructor, sizeof(__pyx_k_RawConstructor), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructorCopy, __pyx_k_RawConstructorCopy, sizeof(__pyx_k_RawConstructorCopy), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructorCopy___reduce_cyth, __pyx_k_RawConstructorCopy___reduce_cyth, sizeof(__pyx_k_RawConstructorCopy___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructorCopy___setstate_cy, __pyx_k_RawConstructorCopy___setstate_cy, sizeof(__pyx_k_RawConstructorCopy___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructorCopy_construct, __pyx_k_RawConstructorCopy_construct, sizeof(__pyx_k_RawConstructorCopy_construct), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructor___reduce_cython, __pyx_k_RawConstructor___reduce_cython, sizeof(__pyx_k_RawConstructor___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructor___setstate_cython, __pyx_k_RawConstructor___setstate_cython, sizeof(__pyx_k_RawConstructor___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_RawConstructor_construct, __pyx_k_RawConstructor_construct, sizeof(__pyx_k_RawConstructor_construct), 0, 0, 1, 1}, {&__pyx_n_s_RecMethod, __pyx_k_RecMethod, sizeof(__pyx_k_RecMethod), 0, 0, 1, 1}, {&__pyx_n_s_RecMethod___reduce_cython, __pyx_k_RecMethod___reduce_cython, sizeof(__pyx_k_RecMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_RecMethod___setstate_cython, __pyx_k_RecMethod___setstate_cython, sizeof(__pyx_k_RecMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_RecMethod_deserialize, __pyx_k_RecMethod_deserialize, sizeof(__pyx_k_RecMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Sequence, __pyx_k_Sequence, sizeof(__pyx_k_Sequence), 0, 0, 1, 1}, {&__pyx_n_s_SetMethod, __pyx_k_SetMethod, sizeof(__pyx_k_SetMethod), 0, 0, 1, 1}, {&__pyx_n_s_SetMethod___reduce_cython, __pyx_k_SetMethod___reduce_cython, sizeof(__pyx_k_SetMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_SetMethod___setstate_cython, __pyx_k_SetMethod___setstate_cython, sizeof(__pyx_k_SetMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_SetMethod_deserialize, __pyx_k_SetMethod_deserialize, sizeof(__pyx_k_SetMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_SimpleObjectMethod, __pyx_k_SimpleObjectMethod, sizeof(__pyx_k_SimpleObjectMethod), 0, 0, 1, 1}, {&__pyx_n_s_SimpleObjectMethod___reduce_cyth, __pyx_k_SimpleObjectMethod___reduce_cyth, sizeof(__pyx_k_SimpleObjectMethod___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_SimpleObjectMethod___setstate_cy, __pyx_k_SimpleObjectMethod___setstate_cy, sizeof(__pyx_k_SimpleObjectMethod___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_SimpleObjectMethod_deserialize, __pyx_k_SimpleObjectMethod_deserialize, sizeof(__pyx_k_SimpleObjectMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_StrMethod, __pyx_k_StrMethod, sizeof(__pyx_k_StrMethod), 0, 0, 1, 1}, {&__pyx_n_s_StrMethod___reduce_cython, __pyx_k_StrMethod___reduce_cython, sizeof(__pyx_k_StrMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_StrMethod___setstate_cython, __pyx_k_StrMethod___setstate_cython, sizeof(__pyx_k_StrMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_StrMethod_deserialize, __pyx_k_StrMethod_deserialize, sizeof(__pyx_k_StrMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_SubprimitiveMethod, __pyx_k_SubprimitiveMethod, sizeof(__pyx_k_SubprimitiveMethod), 0, 0, 1, 1}, {&__pyx_n_s_SubprimitiveMethod___reduce_cyth, __pyx_k_SubprimitiveMethod___reduce_cyth, sizeof(__pyx_k_SubprimitiveMethod___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_SubprimitiveMethod___setstate_cy, __pyx_k_SubprimitiveMethod___setstate_cy, sizeof(__pyx_k_SubprimitiveMethod___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_SubprimitiveMethod_deserialize, __pyx_k_SubprimitiveMethod_deserialize, sizeof(__pyx_k_SubprimitiveMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_Tuple, __pyx_k_Tuple, sizeof(__pyx_k_Tuple), 0, 0, 1, 1}, {&__pyx_n_s_TupleMethod, __pyx_k_TupleMethod, sizeof(__pyx_k_TupleMethod), 0, 0, 1, 1}, {&__pyx_n_s_TupleMethod___reduce_cython, __pyx_k_TupleMethod___reduce_cython, sizeof(__pyx_k_TupleMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_TupleMethod___setstate_cython, __pyx_k_TupleMethod___setstate_cython, sizeof(__pyx_k_TupleMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_TupleMethod_deserialize, __pyx_k_TupleMethod_deserialize, sizeof(__pyx_k_TupleMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_TypeCheckMethod, __pyx_k_TypeCheckMethod, sizeof(__pyx_k_TypeCheckMethod), 0, 0, 1, 1}, {&__pyx_n_s_TypeCheckMethod___reduce_cython, __pyx_k_TypeCheckMethod___reduce_cython, sizeof(__pyx_k_TypeCheckMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_TypeCheckMethod___setstate_cytho, __pyx_k_TypeCheckMethod___setstate_cytho, sizeof(__pyx_k_TypeCheckMethod___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_TypeCheckMethod_deserialize, __pyx_k_TypeCheckMethod_deserialize, sizeof(__pyx_k_TypeCheckMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, {&__pyx_n_s_Union, __pyx_k_Union, sizeof(__pyx_k_Union), 0, 0, 1, 1}, {&__pyx_n_s_UnionByTypeMethod, __pyx_k_UnionByTypeMethod, sizeof(__pyx_k_UnionByTypeMethod), 0, 0, 1, 1}, {&__pyx_n_s_UnionByTypeMethod___reduce_cytho, __pyx_k_UnionByTypeMethod___reduce_cytho, sizeof(__pyx_k_UnionByTypeMethod___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_UnionByTypeMethod___setstate_cyt, __pyx_k_UnionByTypeMethod___setstate_cyt, sizeof(__pyx_k_UnionByTypeMethod___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_UnionByTypeMethod_deserialize, __pyx_k_UnionByTypeMethod_deserialize, sizeof(__pyx_k_UnionByTypeMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_UnionByTypeMethod_deserialize_lo, __pyx_k_UnionByTypeMethod_deserialize_lo, sizeof(__pyx_k_UnionByTypeMethod_deserialize_lo), 0, 0, 1, 1}, {&__pyx_n_s_UnionMethod, __pyx_k_UnionMethod, sizeof(__pyx_k_UnionMethod), 0, 0, 1, 1}, {&__pyx_n_s_UnionMethod___reduce_cython, __pyx_k_UnionMethod___reduce_cython, sizeof(__pyx_k_UnionMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_UnionMethod___setstate_cython, __pyx_k_UnionMethod___setstate_cython, sizeof(__pyx_k_UnionMethod___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_UnionMethod_deserialize, __pyx_k_UnionMethod_deserialize, sizeof(__pyx_k_UnionMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_UniqueItemsConstraint, __pyx_k_UniqueItemsConstraint, sizeof(__pyx_k_UniqueItemsConstraint), 0, 0, 1, 1}, {&__pyx_n_s_UniqueItemsConstraint___reduce_c, __pyx_k_UniqueItemsConstraint___reduce_c, sizeof(__pyx_k_UniqueItemsConstraint___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_UniqueItemsConstraint___setstate, __pyx_k_UniqueItemsConstraint___setstate, sizeof(__pyx_k_UniqueItemsConstraint___setstate), 0, 0, 1, 1}, {&__pyx_n_s_UniqueItemsConstraint_validate, __pyx_k_UniqueItemsConstraint_validate, sizeof(__pyx_k_UniqueItemsConstraint_validate), 0, 0, 1, 1}, {&__pyx_n_s_ValidationError, __pyx_k_ValidationError, sizeof(__pyx_k_ValidationError), 0, 0, 1, 1}, {&__pyx_n_s_Validator, __pyx_k_Validator, sizeof(__pyx_k_Validator), 0, 0, 1, 1}, {&__pyx_n_s_ValidatorMethod, __pyx_k_ValidatorMethod, sizeof(__pyx_k_ValidatorMethod), 0, 0, 1, 1}, {&__pyx_n_s_ValidatorMethod___reduce_cython, __pyx_k_ValidatorMethod___reduce_cython, sizeof(__pyx_k_ValidatorMethod___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_ValidatorMethod___setstate_cytho, __pyx_k_ValidatorMethod___setstate_cytho, sizeof(__pyx_k_ValidatorMethod___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_ValidatorMethod_deserialize, __pyx_k_ValidatorMethod_deserialize, sizeof(__pyx_k_ValidatorMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_ValidatorMock, __pyx_k_ValidatorMock, sizeof(__pyx_k_ValidatorMock), 0, 0, 1, 1}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_n_s_VariadicTupleMethod, __pyx_k_VariadicTupleMethod, sizeof(__pyx_k_VariadicTupleMethod), 0, 0, 1, 1}, {&__pyx_n_s_VariadicTupleMethod___reduce_cyt, __pyx_k_VariadicTupleMethod___reduce_cyt, sizeof(__pyx_k_VariadicTupleMethod___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_VariadicTupleMethod___setstate_c, __pyx_k_VariadicTupleMethod___setstate_c, sizeof(__pyx_k_VariadicTupleMethod___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_VariadicTupleMethod_deserialize, __pyx_k_VariadicTupleMethod_deserialize, sizeof(__pyx_k_VariadicTupleMethod_deserialize), 0, 0, 1, 1}, {&__pyx_n_s__293, __pyx_k__293, sizeof(__pyx_k__293), 0, 0, 1, 1}, {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0}, {&__pyx_n_s_additional_field, __pyx_k_additional_field, sizeof(__pyx_k_additional_field), 0, 0, 1, 1}, {&__pyx_n_s_additional_properties, __pyx_k_additional_properties, sizeof(__pyx_k_additional_properties), 0, 0, 1, 1}, {&__pyx_n_s_alias, __pyx_k_alias, sizeof(__pyx_k_alias), 0, 0, 1, 1}, {&__pyx_n_s_aliaser, __pyx_k_aliaser, sizeof(__pyx_k_aliaser), 0, 0, 1, 1}, {&__pyx_n_s_aliases, __pyx_k_aliases, sizeof(__pyx_k_aliases), 0, 0, 1, 1}, {&__pyx_n_s_all_aliases, __pyx_k_all_aliases, sizeof(__pyx_k_all_aliases), 0, 0, 1, 1}, {&__pyx_n_s_alt_methods, __pyx_k_alt_methods, sizeof(__pyx_k_alt_methods), 0, 0, 1, 1}, {&__pyx_n_s_alternatives, __pyx_k_alternatives, sizeof(__pyx_k_alternatives), 0, 0, 1, 1}, {&__pyx_n_s_apischema_aliases, __pyx_k_apischema_aliases, sizeof(__pyx_k_apischema_aliases), 0, 0, 1, 1}, {&__pyx_n_s_apischema_conversions_utils, __pyx_k_apischema_conversions_utils, sizeof(__pyx_k_apischema_conversions_utils), 0, 0, 1, 1}, {&__pyx_n_s_apischema_deserialization_coerci, __pyx_k_apischema_deserialization_coerci, sizeof(__pyx_k_apischema_deserialization_coerci), 0, 0, 1, 1}, {&__pyx_n_s_apischema_deserialization_method, __pyx_k_apischema_deserialization_method, sizeof(__pyx_k_apischema_deserialization_method), 0, 0, 1, 1}, {&__pyx_kp_s_apischema_deserialization_method_2, __pyx_k_apischema_deserialization_method_2, sizeof(__pyx_k_apischema_deserialization_method_2), 0, 0, 1, 0}, {&__pyx_n_s_apischema_json_schema_types, __pyx_k_apischema_json_schema_types, sizeof(__pyx_k_apischema_json_schema_types), 0, 0, 1, 1}, {&__pyx_n_s_apischema_types, __pyx_k_apischema_types, sizeof(__pyx_k_apischema_types), 0, 0, 1, 1}, {&__pyx_n_s_apischema_utils, __pyx_k_apischema_utils, sizeof(__pyx_k_apischema_utils), 0, 0, 1, 1}, {&__pyx_n_s_apischema_validation_errors, __pyx_k_apischema_validation_errors, sizeof(__pyx_k_apischema_validation_errors), 0, 0, 1, 1}, {&__pyx_n_s_apischema_validation_mock, __pyx_k_apischema_validation_mock, sizeof(__pyx_k_apischema_validation_mock), 0, 0, 1, 1}, {&__pyx_n_s_apischema_validation_validators, __pyx_k_apischema_validation_validators, sizeof(__pyx_k_apischema_validation_validators), 0, 0, 1, 1}, {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, {&__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1}, {&__pyx_n_s_bad_type, __pyx_k_bad_type, sizeof(__pyx_k_bad_type), 0, 0, 1, 1}, {&__pyx_n_s_children, __pyx_k_children, sizeof(__pyx_k_children), 0, 0, 1, 1}, {&__pyx_n_s_children_errors, __pyx_k_children_errors, sizeof(__pyx_k_children_errors), 0, 0, 1, 1}, {&__pyx_n_s_class_getitem, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, {&__pyx_n_s_cls, __pyx_k_cls, sizeof(__pyx_k_cls), 0, 0, 1, 1}, {&__pyx_n_s_coercer, __pyx_k_coercer, sizeof(__pyx_k_coercer), 0, 0, 1, 1}, {&__pyx_n_s_constraints, __pyx_k_constraints, sizeof(__pyx_k_constraints), 0, 0, 1, 1}, {&__pyx_n_s_construct, __pyx_k_construct, sizeof(__pyx_k_construct), 0, 0, 1, 1}, {&__pyx_n_s_constructor, __pyx_k_constructor, sizeof(__pyx_k_constructor), 0, 0, 1, 1}, {&__pyx_n_s_converter, __pyx_k_converter, sizeof(__pyx_k_converter), 0, 0, 1, 1}, {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_dataclass, __pyx_k_dataclass, sizeof(__pyx_k_dataclass), 0, 0, 1, 1}, {&__pyx_n_s_dataclasses, __pyx_k_dataclasses, sizeof(__pyx_k_dataclasses), 0, 0, 1, 1}, {&__pyx_n_s_default_fields, __pyx_k_default_fields, sizeof(__pyx_k_default_fields), 0, 0, 1, 1}, {&__pyx_n_s_default_value, __pyx_k_default_value, sizeof(__pyx_k_default_value), 0, 0, 1, 1}, {&__pyx_n_s_dependencies, __pyx_k_dependencies, sizeof(__pyx_k_dependencies), 0, 0, 1, 1}, {&__pyx_n_s_deserialize, __pyx_k_deserialize, sizeof(__pyx_k_deserialize), 0, 0, 1, 1}, {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1}, {&__pyx_n_s_dict_2, __pyx_k_dict_2, sizeof(__pyx_k_dict_2), 0, 0, 1, 1}, {&__pyx_n_s_difference_update, __pyx_k_difference_update, sizeof(__pyx_k_difference_update), 0, 0, 1, 1}, {&__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0}, {&__pyx_n_s_discriminator, __pyx_k_discriminator, sizeof(__pyx_k_discriminator), 0, 0, 1, 1}, {&__pyx_n_s_elt_methods, __pyx_k_elt_methods, sizeof(__pyx_k_elt_methods), 0, 0, 1, 1}, {&__pyx_kp_u_enable, __pyx_k_enable, sizeof(__pyx_k_enable), 0, 1, 0, 0}, {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1}, {&__pyx_n_s_err, __pyx_k_err, sizeof(__pyx_k_err), 0, 0, 1, 1}, {&__pyx_n_s_error, __pyx_k_error, sizeof(__pyx_k_error), 0, 0, 1, 1}, {&__pyx_n_s_errors, __pyx_k_errors, sizeof(__pyx_k_errors), 0, 0, 1, 1}, {&__pyx_n_s_exc_max, __pyx_k_exc_max, sizeof(__pyx_k_exc_max), 0, 0, 1, 1}, {&__pyx_n_s_exc_min, __pyx_k_exc_min, sizeof(__pyx_k_exc_min), 0, 0, 1, 1}, {&__pyx_n_s_expected, __pyx_k_expected, sizeof(__pyx_k_expected), 0, 0, 1, 1}, {&__pyx_n_s_extend, __pyx_k_extend, sizeof(__pyx_k_extend), 0, 0, 1, 1}, {&__pyx_n_s_extend_errors, __pyx_k_extend_errors, sizeof(__pyx_k_extend_errors), 0, 0, 1, 1}, {&__pyx_n_s_factory, __pyx_k_factory, sizeof(__pyx_k_factory), 0, 0, 1, 1}, {&__pyx_n_s_factory_fields, __pyx_k_factory_fields, sizeof(__pyx_k_factory_fields), 0, 0, 1, 1}, {&__pyx_n_s_fall_back_on_default, __pyx_k_fall_back_on_default, sizeof(__pyx_k_fall_back_on_default), 0, 0, 1, 1}, {&__pyx_n_s_fallback, __pyx_k_fallback, sizeof(__pyx_k_fallback), 0, 0, 1, 1}, {&__pyx_n_s_field, __pyx_k_field, sizeof(__pyx_k_field), 0, 0, 1, 1}, {&__pyx_n_s_fields, __pyx_k_fields, sizeof(__pyx_k_fields), 0, 0, 1, 1}, {&__pyx_n_s_flattened_fields, __pyx_k_flattened_fields, sizeof(__pyx_k_flattened_fields), 0, 0, 1, 1}, {&__pyx_n_s_format_error, __pyx_k_format_error, sizeof(__pyx_k_format_error), 0, 0, 1, 1}, {&__pyx_kp_u_gc, __pyx_k_gc, sizeof(__pyx_k_gc), 0, 1, 0, 0}, {&__pyx_n_s_genexpr, __pyx_k_genexpr, sizeof(__pyx_k_genexpr), 0, 0, 1, 1}, {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_init_defaults, __pyx_k_init_defaults, sizeof(__pyx_k_init_defaults), 0, 0, 1, 1}, {&__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1}, {&__pyx_n_s_isdisjoint, __pyx_k_isdisjoint, sizeof(__pyx_k_isdisjoint), 0, 0, 1, 1}, {&__pyx_kp_u_isenabled, __pyx_k_isenabled, sizeof(__pyx_k_isenabled), 0, 1, 0, 0}, {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1}, {&__pyx_n_s_key_method, __pyx_k_key_method, sizeof(__pyx_k_key_method), 0, 0, 1, 1}, {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, {&__pyx_n_s_lazy, __pyx_k_lazy, sizeof(__pyx_k_lazy), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_map, __pyx_k_map, sizeof(__pyx_k_map), 0, 0, 1, 1}, {&__pyx_n_s_mapping, __pyx_k_mapping, sizeof(__pyx_k_mapping), 0, 0, 1, 1}, {&__pyx_n_s_match, __pyx_k_match, sizeof(__pyx_k_match), 0, 0, 1, 1}, {&__pyx_n_s_max_items, __pyx_k_max_items, sizeof(__pyx_k_max_items), 0, 0, 1, 1}, {&__pyx_n_s_max_len, __pyx_k_max_len, sizeof(__pyx_k_max_len), 0, 0, 1, 1}, {&__pyx_n_s_max_len_error, __pyx_k_max_len_error, sizeof(__pyx_k_max_len_error), 0, 0, 1, 1}, {&__pyx_n_s_max_properties, __pyx_k_max_properties, sizeof(__pyx_k_max_properties), 0, 0, 1, 1}, {&__pyx_n_s_maximum, __pyx_k_maximum, sizeof(__pyx_k_maximum), 0, 0, 1, 1}, {&__pyx_n_s_merge_errors, __pyx_k_merge_errors, sizeof(__pyx_k_merge_errors), 0, 0, 1, 1}, {&__pyx_n_s_messages, __pyx_k_messages, sizeof(__pyx_k_messages), 0, 0, 1, 1}, {&__pyx_n_s_method, __pyx_k_method, sizeof(__pyx_k_method), 0, 0, 1, 1}, {&__pyx_n_s_method_by_cls, __pyx_k_method_by_cls, sizeof(__pyx_k_method_by_cls), 0, 0, 1, 1}, {&__pyx_n_s_min_items, __pyx_k_min_items, sizeof(__pyx_k_min_items), 0, 0, 1, 1}, {&__pyx_n_s_min_len, __pyx_k_min_len, sizeof(__pyx_k_min_len), 0, 0, 1, 1}, {&__pyx_n_s_min_len_error, __pyx_k_min_len_error, sizeof(__pyx_k_min_len_error), 0, 0, 1, 1}, {&__pyx_n_s_min_properties, __pyx_k_min_properties, sizeof(__pyx_k_min_properties), 0, 0, 1, 1}, {&__pyx_n_s_minimum, __pyx_k_minimum, sizeof(__pyx_k_minimum), 0, 0, 1, 1}, {&__pyx_n_s_missing, __pyx_k_missing, sizeof(__pyx_k_missing), 0, 0, 1, 1}, {&__pyx_n_s_mult_of, __pyx_k_mult_of, sizeof(__pyx_k_mult_of), 0, 0, 1, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1}, {&__pyx_n_s_nb_fields, __pyx_k_nb_fields, sizeof(__pyx_k_nb_fields), 0, 0, 1, 1}, {&__pyx_n_s_new, __pyx_k_new, sizeof(__pyx_k_new), 0, 0, 1, 1}, {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, {&__pyx_n_s_pattern, __pyx_k_pattern, sizeof(__pyx_k_pattern), 0, 0, 1, 1}, {&__pyx_n_s_pattern_fields, __pyx_k_pattern_fields, sizeof(__pyx_k_pattern_fields), 0, 0, 1, 1}, {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1}, {&__pyx_n_s_post_init_modified, __pyx_k_post_init_modified, sizeof(__pyx_k_post_init_modified), 0, 0, 1, 1}, {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError, sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1}, {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum, sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1}, {&__pyx_n_s_pyx_result, __pyx_k_pyx_result, sizeof(__pyx_k_pyx_result), 0, 0, 1, 1}, {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1}, {&__pyx_n_s_pyx_type, __pyx_k_pyx_type, sizeof(__pyx_k_pyx_type), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_AdditionalField, __pyx_k_pyx_unpickle_AdditionalField, sizeof(__pyx_k_pyx_unpickle_AdditionalField), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_AnyMethod, __pyx_k_pyx_unpickle_AnyMethod, sizeof(__pyx_k_pyx_unpickle_AnyMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_BoolMethod, __pyx_k_pyx_unpickle_BoolMethod, sizeof(__pyx_k_pyx_unpickle_BoolMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_CoercerMethod, __pyx_k_pyx_unpickle_CoercerMethod, sizeof(__pyx_k_pyx_unpickle_CoercerMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConstrainedFloatM, __pyx_k_pyx_unpickle_ConstrainedFloatM, sizeof(__pyx_k_pyx_unpickle_ConstrainedFloatM), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConstrainedIntMet, __pyx_k_pyx_unpickle_ConstrainedIntMet, sizeof(__pyx_k_pyx_unpickle_ConstrainedIntMet), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConstrainedStrMet, __pyx_k_pyx_unpickle_ConstrainedStrMet, sizeof(__pyx_k_pyx_unpickle_ConstrainedStrMet), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_Constraint, __pyx_k_pyx_unpickle_Constraint, sizeof(__pyx_k_pyx_unpickle_Constraint), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_Constructor, __pyx_k_pyx_unpickle_Constructor, sizeof(__pyx_k_pyx_unpickle_Constructor), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConversionAlterna, __pyx_k_pyx_unpickle_ConversionAlterna, sizeof(__pyx_k_pyx_unpickle_ConversionAlterna), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConversionMethod, __pyx_k_pyx_unpickle_ConversionMethod, sizeof(__pyx_k_pyx_unpickle_ConversionMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConversionUnionMe, __pyx_k_pyx_unpickle_ConversionUnionMe, sizeof(__pyx_k_pyx_unpickle_ConversionUnionMe), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ConversionWithVal, __pyx_k_pyx_unpickle_ConversionWithVal, sizeof(__pyx_k_pyx_unpickle_ConversionWithVal), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_DefaultField, __pyx_k_pyx_unpickle_DefaultField, sizeof(__pyx_k_pyx_unpickle_DefaultField), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_DeserializationMe, __pyx_k_pyx_unpickle_DeserializationMe, sizeof(__pyx_k_pyx_unpickle_DeserializationMe), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_Discriminated, __pyx_k_pyx_unpickle_Discriminated, sizeof(__pyx_k_pyx_unpickle_Discriminated), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_DiscriminatorMeth, __pyx_k_pyx_unpickle_DiscriminatorMeth, sizeof(__pyx_k_pyx_unpickle_DiscriminatorMeth), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ExclusiveMaximumC, __pyx_k_pyx_unpickle_ExclusiveMaximumC, sizeof(__pyx_k_pyx_unpickle_ExclusiveMaximumC), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ExclusiveMinimumC, __pyx_k_pyx_unpickle_ExclusiveMinimumC, sizeof(__pyx_k_pyx_unpickle_ExclusiveMinimumC), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_FactoryField, __pyx_k_pyx_unpickle_FactoryField, sizeof(__pyx_k_pyx_unpickle_FactoryField), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_Field, __pyx_k_pyx_unpickle_Field, sizeof(__pyx_k_pyx_unpickle_Field), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_FieldsConstructor, __pyx_k_pyx_unpickle_FieldsConstructor, sizeof(__pyx_k_pyx_unpickle_FieldsConstructor), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_FlattenedField, __pyx_k_pyx_unpickle_FlattenedField, sizeof(__pyx_k_pyx_unpickle_FlattenedField), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_FloatMethod, __pyx_k_pyx_unpickle_FloatMethod, sizeof(__pyx_k_pyx_unpickle_FloatMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_FrozenSetMethod, __pyx_k_pyx_unpickle_FrozenSetMethod, sizeof(__pyx_k_pyx_unpickle_FrozenSetMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_IntMethod, __pyx_k_pyx_unpickle_IntMethod, sizeof(__pyx_k_pyx_unpickle_IntMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ListCheckOnlyMeth, __pyx_k_pyx_unpickle_ListCheckOnlyMeth, sizeof(__pyx_k_pyx_unpickle_ListCheckOnlyMeth), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ListMethod, __pyx_k_pyx_unpickle_ListMethod, sizeof(__pyx_k_pyx_unpickle_ListMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_LiteralMethod, __pyx_k_pyx_unpickle_LiteralMethod, sizeof(__pyx_k_pyx_unpickle_LiteralMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MappingCheckOnly, __pyx_k_pyx_unpickle_MappingCheckOnly, sizeof(__pyx_k_pyx_unpickle_MappingCheckOnly), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MappingMethod, __pyx_k_pyx_unpickle_MappingMethod, sizeof(__pyx_k_pyx_unpickle_MappingMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MaxItemsConstrain, __pyx_k_pyx_unpickle_MaxItemsConstrain, sizeof(__pyx_k_pyx_unpickle_MaxItemsConstrain), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MaxLengthConstrai, __pyx_k_pyx_unpickle_MaxLengthConstrai, sizeof(__pyx_k_pyx_unpickle_MaxLengthConstrai), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MaxPropertiesCons, __pyx_k_pyx_unpickle_MaxPropertiesCons, sizeof(__pyx_k_pyx_unpickle_MaxPropertiesCons), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MaximumConstraint, __pyx_k_pyx_unpickle_MaximumConstraint, sizeof(__pyx_k_pyx_unpickle_MaximumConstraint), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MinItemsConstrain, __pyx_k_pyx_unpickle_MinItemsConstrain, sizeof(__pyx_k_pyx_unpickle_MinItemsConstrain), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MinLengthConstrai, __pyx_k_pyx_unpickle_MinLengthConstrai, sizeof(__pyx_k_pyx_unpickle_MinLengthConstrai), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MinPropertiesCons, __pyx_k_pyx_unpickle_MinPropertiesCons, sizeof(__pyx_k_pyx_unpickle_MinPropertiesCons), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MinimumConstraint, __pyx_k_pyx_unpickle_MinimumConstraint, sizeof(__pyx_k_pyx_unpickle_MinimumConstraint), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_MultipleOfConstra, __pyx_k_pyx_unpickle_MultipleOfConstra, sizeof(__pyx_k_pyx_unpickle_MultipleOfConstra), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_NoConstructor, __pyx_k_pyx_unpickle_NoConstructor, sizeof(__pyx_k_pyx_unpickle_NoConstructor), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_NoneMethod, __pyx_k_pyx_unpickle_NoneMethod, sizeof(__pyx_k_pyx_unpickle_NoneMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ObjectMethod, __pyx_k_pyx_unpickle_ObjectMethod, sizeof(__pyx_k_pyx_unpickle_ObjectMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_OptionalMethod, __pyx_k_pyx_unpickle_OptionalMethod, sizeof(__pyx_k_pyx_unpickle_OptionalMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_PatternConstraint, __pyx_k_pyx_unpickle_PatternConstraint, sizeof(__pyx_k_pyx_unpickle_PatternConstraint), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_PatternField, __pyx_k_pyx_unpickle_PatternField, sizeof(__pyx_k_pyx_unpickle_PatternField), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_RawConstructor, __pyx_k_pyx_unpickle_RawConstructor, sizeof(__pyx_k_pyx_unpickle_RawConstructor), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_RawConstructorCop, __pyx_k_pyx_unpickle_RawConstructorCop, sizeof(__pyx_k_pyx_unpickle_RawConstructorCop), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_RecMethod, __pyx_k_pyx_unpickle_RecMethod, sizeof(__pyx_k_pyx_unpickle_RecMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_SetMethod, __pyx_k_pyx_unpickle_SetMethod, sizeof(__pyx_k_pyx_unpickle_SetMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_SimpleObjectMetho, __pyx_k_pyx_unpickle_SimpleObjectMetho, sizeof(__pyx_k_pyx_unpickle_SimpleObjectMetho), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_StrMethod, __pyx_k_pyx_unpickle_StrMethod, sizeof(__pyx_k_pyx_unpickle_StrMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_SubprimitiveMetho, __pyx_k_pyx_unpickle_SubprimitiveMetho, sizeof(__pyx_k_pyx_unpickle_SubprimitiveMetho), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_TupleMethod, __pyx_k_pyx_unpickle_TupleMethod, sizeof(__pyx_k_pyx_unpickle_TupleMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_TypeCheckMethod, __pyx_k_pyx_unpickle_TypeCheckMethod, sizeof(__pyx_k_pyx_unpickle_TypeCheckMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_UnionByTypeMethod, __pyx_k_pyx_unpickle_UnionByTypeMethod, sizeof(__pyx_k_pyx_unpickle_UnionByTypeMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_UnionMethod, __pyx_k_pyx_unpickle_UnionMethod, sizeof(__pyx_k_pyx_unpickle_UnionMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_UniqueItemsConstr, __pyx_k_pyx_unpickle_UniqueItemsConstr, sizeof(__pyx_k_pyx_unpickle_UniqueItemsConstr), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_ValidatorMethod, __pyx_k_pyx_unpickle_ValidatorMethod, sizeof(__pyx_k_pyx_unpickle_ValidatorMethod), 0, 0, 1, 1}, {&__pyx_n_s_pyx_unpickle_VariadicTupleMeth, __pyx_k_pyx_unpickle_VariadicTupleMeth, sizeof(__pyx_k_pyx_unpickle_VariadicTupleMeth), 0, 0, 1, 1}, {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1}, {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1}, {&__pyx_n_s_required, __pyx_k_required, sizeof(__pyx_k_required), 0, 0, 1, 1}, {&__pyx_n_s_required_by, __pyx_k_required_by, sizeof(__pyx_k_required_by), 0, 0, 1, 1}, {&__pyx_kp_u_required_by_2, __pyx_k_required_by_2, sizeof(__pyx_k_required_by_2), 0, 1, 0, 0}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, {&__pyx_n_s_set_child_error, __pyx_k_set_child_error, sizeof(__pyx_k_set_child_error), 0, 0, 1, 1}, {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1}, {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_state, __pyx_k_state, sizeof(__pyx_k_state), 0, 0, 1, 1}, {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, {&__pyx_n_s_to_hashable, __pyx_k_to_hashable, sizeof(__pyx_k_to_hashable), 0, 0, 1, 1}, {&__pyx_n_s_typed_dict, __pyx_k_typed_dict, sizeof(__pyx_k_typed_dict), 0, 0, 1, 1}, {&__pyx_n_s_types, __pyx_k_types, sizeof(__pyx_k_types), 0, 0, 1, 1}, {&__pyx_n_s_typing, __pyx_k_typing, sizeof(__pyx_k_typing), 0, 0, 1, 1}, {&__pyx_n_s_unexpected, __pyx_k_unexpected, sizeof(__pyx_k_unexpected), 0, 0, 1, 1}, {&__pyx_n_s_unique, __pyx_k_unique, sizeof(__pyx_k_unique), 0, 0, 1, 1}, {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1}, {&__pyx_n_s_update_children_errors, __pyx_k_update_children_errors, sizeof(__pyx_k_update_children_errors), 0, 0, 1, 1}, {&__pyx_n_s_use_setstate, __pyx_k_use_setstate, sizeof(__pyx_k_use_setstate), 0, 0, 1, 1}, {&__pyx_n_s_validate, __pyx_k_validate, sizeof(__pyx_k_validate), 0, 0, 1, 1}, {&__pyx_n_s_validate_constraints, __pyx_k_validate_constraints, sizeof(__pyx_k_validate_constraints), 0, 0, 1, 1}, {&__pyx_n_s_validators, __pyx_k_validators, sizeof(__pyx_k_validators), 0, 0, 1, 1}, {&__pyx_n_s_value_error, __pyx_k_value_error, sizeof(__pyx_k_value_error), 0, 0, 1, 1}, {&__pyx_n_s_value_map, __pyx_k_value_map, sizeof(__pyx_k_value_map), 0, 0, 1, 1}, {&__pyx_n_s_value_method, __pyx_k_value_method, sizeof(__pyx_k_value_method), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; return __Pyx_InitStrings(__pyx_string_tab); } /* #### Code section: cached_builtins ### */ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_AssertionError = __Pyx_GetBuiltinName(__pyx_n_s_AssertionError); if (!__pyx_builtin_AssertionError) __PYX_ERR(0, 160, __pyx_L1_error) __pyx_builtin_map = __Pyx_GetBuiltinName(__pyx_n_s_map); if (!__pyx_builtin_map) __PYX_ERR(0, 727, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 738, __pyx_L1_error) __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 838, __pyx_L1_error) __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(0, 881, __pyx_L1_error) __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(0, 887, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 890, __pyx_L1_error) __pyx_builtin_NotImplementedError = __Pyx_GetBuiltinName(__pyx_n_s_NotImplementedError); if (!__pyx_builtin_NotImplementedError) __PYX_ERR(0, 1157, __pyx_L1_error) __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 1208, __pyx_L1_error) __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 1260, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } /* #### Code section: cached_constants ### */ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "(tree fragment)":4 * cdef object __pyx_PickleError * cdef object __pyx_result * if __pyx_checksum not in (0x440e33a, 0xdd66781, 0x527db43): # <<<<<<<<<<<<<< * from pickle import PickleError as __pyx_PickleError * raise __pyx_PickleError, "Incompatible checksums (0x%x vs (0x440e33a, 0xdd66781, 0x527db43) = (_dispatch, error))" % __pyx_checksum */ __pyx_tuple__2 = PyTuple_Pack(3, __pyx_int_71361338, __pyx_int_232155009, __pyx_int_86498115); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); __pyx_tuple__4 = PyTuple_Pack(3, __pyx_int_21831954, __pyx_int_154338282, __pyx_int_266904154); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); __pyx_tuple__5 = PyTuple_Pack(3, __pyx_int_80339441, __pyx_int_253779918, __pyx_int_100986846); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); __pyx_tuple__6 = PyTuple_Pack(3, __pyx_int_226265099, __pyx_int_99602557, __pyx_int_110427570); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); __pyx_tuple__7 = PyTuple_Pack(3, __pyx_int_205695869, __pyx_int_133418666, __pyx_int_128527296); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); __pyx_tuple__8 = PyTuple_Pack(3, __pyx_int_191997942, __pyx_int_266123853, __pyx_int_50548289); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); __pyx_tuple__9 = PyTuple_Pack(3, __pyx_int_228566110, __pyx_int_230529602, __pyx_int_87055098); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); __pyx_tuple__10 = PyTuple_Pack(3, __pyx_int_218785721, __pyx_int_199009293, __pyx_int_141271449); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); __pyx_tuple__11 = PyTuple_Pack(3, __pyx_int_65652202, __pyx_int_56952783, __pyx_int_138368889); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); __pyx_tuple__12 = PyTuple_Pack(3, __pyx_int_49712037, __pyx_int_71989837, __pyx_int_159314353); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); __pyx_tuple__13 = PyTuple_Pack(3, __pyx_int_125047544, __pyx_int_251535444, __pyx_int_31099836); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); __pyx_tuple__14 = PyTuple_Pack(3, __pyx_int_267302923, __pyx_int_136250523, __pyx_int_10534196); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); __pyx_tuple__15 = PyTuple_Pack(3, __pyx_int_59973580, __pyx_int_50166306, __pyx_int_219789001); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); __pyx_tuple__16 = PyTuple_Pack(3, __pyx_int_25683109, __pyx_int_113390162, __pyx_int_251556977); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); __pyx_tuple__17 = PyTuple_Pack(3, __pyx_int_232429629, __pyx_int_259347467, __pyx_int_5409203); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); __pyx_tuple__18 = PyTuple_Pack(3, __pyx_int_68348896, __pyx_int_102462867, __pyx_int_105653666); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); __pyx_tuple__19 = PyTuple_Pack(3, __pyx_int_6074692, __pyx_int_16592120, __pyx_int_185544032); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); __pyx_tuple__20 = PyTuple_Pack(3, __pyx_int_17381039, __pyx_int_31777368, __pyx_int_261406006); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); __pyx_tuple__21 = PyTuple_Pack(3, __pyx_int_247471373, __pyx_int_240488784, __pyx_int_43145208); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); __pyx_tuple__22 = PyTuple_Pack(3, __pyx_int_39646481, __pyx_int_73886977, __pyx_int_89365892); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); __pyx_tuple__23 = PyTuple_Pack(3, __pyx_int_34399964, __pyx_int_190713963, __pyx_int_241521041); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); __pyx_tuple__24 = PyTuple_Pack(3, __pyx_int_188225458, __pyx_int_249936757, __pyx_int_179286492); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); __pyx_tuple__25 = PyTuple_Pack(3, __pyx_int_137271932, __pyx_int_4393368, __pyx_int_119633667); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); __pyx_tuple__26 = PyTuple_Pack(3, __pyx_int_29064226, __pyx_int_34564873, __pyx_int_119948357); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); __pyx_tuple__27 = PyTuple_Pack(3, __pyx_int_148344969, __pyx_int_180344665, __pyx_int_228146014); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); __pyx_tuple__28 = PyTuple_Pack(3, __pyx_int_218312211, __pyx_int_47519927, __pyx_int_217540299); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); __pyx_tuple__29 = PyTuple_Pack(3, __pyx_int_59113187, __pyx_int_170060645, __pyx_int_188265286); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); __pyx_tuple__30 = PyTuple_Pack(3, __pyx_int_133974869, __pyx_int_129659791, __pyx_int_153188860); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); __pyx_tuple__31 = PyTuple_Pack(3, __pyx_int_108979822, __pyx_int_172473893, __pyx_int_109504843); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); __pyx_tuple__32 = PyTuple_Pack(3, __pyx_int_39566027, __pyx_int_139355673, __pyx_int_151978152); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); __pyx_tuple__33 = PyTuple_Pack(3, __pyx_int_155387426, __pyx_int_117447894, __pyx_int_30346496); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); __pyx_tuple__34 = PyTuple_Pack(3, __pyx_int_87926185, __pyx_int_252475336, __pyx_int_210124308); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); __pyx_tuple__35 = PyTuple_Pack(3, __pyx_int_169907618, __pyx_int_213378848, __pyx_int_108544010); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); __pyx_tuple__36 = PyTuple_Pack(3, __pyx_int_207700205, __pyx_int_99761709, __pyx_int_157442187); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); __pyx_tuple__37 = PyTuple_Pack(3, __pyx_int_138366295, __pyx_int_92337353, __pyx_int_174143295); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__37); __Pyx_GIVEREF(__pyx_tuple__37); __pyx_tuple__38 = PyTuple_Pack(3, __pyx_int_154416804, __pyx_int_150756734, __pyx_int_119135242); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__38); __Pyx_GIVEREF(__pyx_tuple__38); __pyx_tuple__39 = PyTuple_Pack(3, __pyx_int_238659478, __pyx_int_238095282, __pyx_int_242672649); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__39); __Pyx_GIVEREF(__pyx_tuple__39); __pyx_tuple__40 = PyTuple_Pack(3, __pyx_int_34456425, __pyx_int_18412159, __pyx_int_89247923); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__40); __Pyx_GIVEREF(__pyx_tuple__40); __pyx_tuple__41 = PyTuple_Pack(3, __pyx_int_90778316, __pyx_int_16874699, __pyx_int_129754538); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__41); __Pyx_GIVEREF(__pyx_tuple__41); __pyx_tuple__42 = PyTuple_Pack(3, __pyx_int_21894935, __pyx_int_200261128, __pyx_int_258009577); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); __pyx_tuple__43 = PyTuple_Pack(3, __pyx_int_157010104, __pyx_int_265699309, __pyx_int_262512166); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__43); __Pyx_GIVEREF(__pyx_tuple__43); __pyx_tuple__44 = PyTuple_Pack(3, __pyx_int_142562297, __pyx_int_1061315, __pyx_int_67187364); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__44); __Pyx_GIVEREF(__pyx_tuple__44); __pyx_tuple__45 = PyTuple_Pack(3, __pyx_int_206753745, __pyx_int_69439193, __pyx_int_107165658); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__45); __Pyx_GIVEREF(__pyx_tuple__45); __pyx_tuple__46 = PyTuple_Pack(3, __pyx_int_76745901, __pyx_int_22404078, __pyx_int_89106541); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(2, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_tuple__47 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_state, __pyx_n_s_dict_2, __pyx_n_s_use_setstate); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__47); __Pyx_GIVEREF(__pyx_tuple__47); __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constraint__set_state(self, __pyx_state) */ __pyx_tuple__49 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__49); __Pyx_GIVEREF(__pyx_tuple__49); __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":44 * cdef readonly long minimum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinimumConstraint_validate(self, data) * */ __pyx_tuple__51 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_data); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__51); __Pyx_GIVEREF(__pyx_tuple__51); __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 44, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 44, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinimumConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":55 * cdef readonly long maximum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaximumConstraint_validate(self, data) * */ __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 55, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 55, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaximumConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":66 * cdef readonly long exc_min * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMinimumConstraint_validate(self, data) * */ __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 66, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 66, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMinimumConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":77 * cdef readonly long exc_max * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMaximumConstraint_validate(self, data) * */ __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 77, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 77, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMaximumConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":88 * cdef readonly long mult_of * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MultipleOfConstraint_validate(self, data) * */ __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 88, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 88, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MultipleOfConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":99 * cdef readonly long min_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinLengthConstraint_validate(self, data) * */ __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 99, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 99, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinLengthConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":110 * cdef readonly long max_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxLengthConstraint_validate(self, data) * */ __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 110, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxLengthConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":121 * cdef readonly object pattern * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return PatternConstraint_validate(self, data) * */ __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 121, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(0, 121, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":132 * cdef readonly long min_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinItemsConstraint_validate(self, data) * */ __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 132, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 132, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinItemsConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":143 * cdef readonly long max_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxItemsConstraint_validate(self, data) * */ __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(0, 143, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxItemsConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":154 * cdef readonly bint unique * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return UniqueItemsConstraint_validate(self, data) * */ __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 154, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 154, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UniqueItemsConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":166 * cdef readonly long min_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinPropertiesConstraint_validate(self, data) * */ __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(0, 166, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinPropertiesConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":177 * cdef readonly long max_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxPropertiesConstraint_validate(self, data) * */ __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate, 177, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 177, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxPropertiesConstraint__set_state(self, __pyx_state) */ __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DeserializationMethod__set_state(self, __pyx_state) */ __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":192 * cdef readonly object method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return RecMethod_deserialize(self, data) * */ __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 192, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(0, 192, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RecMethod__set_state(self, __pyx_state) */ __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":205 * cdef readonly object aliaser * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ValidatorMethod_deserialize(self, data) * */ __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 205, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 205, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ValidatorMethod__set_state(self, __pyx_state) */ __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":219 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return CoercerMethod_deserialize(self, data) * */ __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 219, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(0, 219, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_CoercerMethod__set_state(self, __pyx_state) */ __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":232 * cdef readonly DeserializationMethod fallback * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TypeCheckMethod_deserialize(self, data) * */ __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 232, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 232, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TypeCheckMethod__set_state(self, __pyx_state) */ __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":243 * cdef readonly dict constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return AnyMethod_deserialize(self, data) * */ __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 243, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(0, 243, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AnyMethod__set_state(self, __pyx_state) */ __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":254 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListCheckOnlyMethod_deserialize(self, data) * */ __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 254, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 254, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListCheckOnlyMethod__set_state(self, __pyx_state) */ __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":266 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListMethod_deserialize(self, data) * */ __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 266, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(0, 266, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListMethod__set_state(self, __pyx_state) */ __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":278 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SetMethod_deserialize(self, data) * */ __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 278, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 278, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SetMethod__set_state(self, __pyx_state) */ __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":289 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FrozenSetMethod_deserialize(self, data) * */ __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 289, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 289, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FrozenSetMethod__set_state(self, __pyx_state) */ __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":299 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return VariadicTupleMethod_deserialize(self, data) * */ __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 299, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 299, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_VariadicTupleMethod__set_state(self, __pyx_state) */ __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":312 * cdef readonly tuple types * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return LiteralMethod_deserialize(self, data) * */ __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 312, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__123)) __PYX_ERR(0, 312, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_LiteralMethod__set_state(self, __pyx_state) */ __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":327 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingCheckOnly_deserialize(self, data) * */ __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 327, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 327, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__127)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingCheckOnly__set_state(self, __pyx_state) */ __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":341 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingMethod_deserialize(self, data) * */ __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 341, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) __PYX_ERR(0, 341, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingMethod__set_state(self, __pyx_state) */ __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Field__set_state(self, __pyx_state) */ __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FlattenedField__set_state(self, __pyx_state) */ __pyx_codeobj__135 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__135)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternField__set_state(self, __pyx_state) */ __pyx_codeobj__137 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__137)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AdditionalField__set_state(self, __pyx_state) */ __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constructor__set_state(self, __pyx_state) */ __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":409 * cdef class NoConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return NoConstructor_construct(self, fields) * */ __pyx_tuple__142 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_fields); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__142); __Pyx_GIVEREF(__pyx_tuple__142); __pyx_codeobj__143 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_construct, 409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__143)) __PYX_ERR(0, 409, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoConstructor__set_state(self, __pyx_state) */ __pyx_codeobj__145 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__145)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":418 * cdef class RawConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructor_construct(self, fields) * */ __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_construct, 418, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 418, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__147 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__147)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructor__set_state(self, __pyx_state) */ __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":427 * cdef class RawConstructorCopy(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructorCopy_construct(self, fields) * */ __pyx_codeobj__149 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_construct, 427, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__149)) __PYX_ERR(0, 427, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructorCopy__set_state(self, __pyx_state) */ __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DefaultField__set_state(self, __pyx_state) */ __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FactoryField__set_state(self, __pyx_state) */ __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":455 * cdef readonly tuple factory_fields * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return FieldsConstructor_construct(self, fields) * */ __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_construct, 455, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 455, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__157 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__157)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FieldsConstructor__set_state(self, __pyx_state) */ __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":473 * cdef readonly str unexpected * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SimpleObjectMethod_deserialize(self, data) * */ __pyx_codeobj__159 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 473, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__159)) __PYX_ERR(0, 473, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SimpleObjectMethod__set_state(self, __pyx_state) */ __pyx_codeobj__161 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__161)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":503 * cdef readonly bint aggregate_fields * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ObjectMethod_deserialize(self, data) * */ __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 503, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(0, 503, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__163 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__163)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ObjectMethod__set_state(self, __pyx_state) */ __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":531 * cdef class NoneMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return NoneMethod_deserialize(self, data) * */ __pyx_codeobj__165 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__165)) __PYX_ERR(0, 531, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoneMethod__set_state(self, __pyx_state) */ __pyx_codeobj__167 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__167)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":539 * cdef class IntMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return IntMethod_deserialize(self, data) * */ __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 539, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 539, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__169 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__169)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_IntMethod__set_state(self, __pyx_state) */ __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":547 * cdef class FloatMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FloatMethod_deserialize(self, data) * */ __pyx_codeobj__171 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 547, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__171)) __PYX_ERR(0, 547, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FloatMethod__set_state(self, __pyx_state) */ __pyx_codeobj__173 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__173)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":555 * cdef class StrMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return StrMethod_deserialize(self, data) * */ __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 555, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 555, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__175 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__175)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_StrMethod__set_state(self, __pyx_state) */ __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":563 * cdef class BoolMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return BoolMethod_deserialize(self, data) * */ __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 563, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) __PYX_ERR(0, 563, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_BoolMethod__set_state(self, __pyx_state) */ __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":572 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedIntMethod_deserialize(self, data) * */ __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 572, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 572, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__181 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__181)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedIntMethod__set_state(self, __pyx_state) */ __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":582 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedFloatMethod_deserialize(self, data) * */ __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 582, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) __PYX_ERR(0, 582, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedFloatMethod__set_state(self, __pyx_state) */ __pyx_codeobj__185 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__185)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":592 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedStrMethod_deserialize(self, data) * */ __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 592, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 592, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__187 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__187)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedStrMethod__set_state(self, __pyx_state) */ __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":603 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SubprimitiveMethod_deserialize(self, data) * */ __pyx_codeobj__189 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 603, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__189)) __PYX_ERR(0, 603, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SubprimitiveMethod__set_state(self, __pyx_state) */ __pyx_codeobj__191 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__191)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":617 * cdef readonly tuple elt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TupleMethod_deserialize(self, data) * */ __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 617, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 617, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__193 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__193)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TupleMethod__set_state(self, __pyx_state) */ __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":631 * cdef readonly object coercer * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return OptionalMethod_deserialize(self, data) * */ __pyx_codeobj__195 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 631, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__195)) __PYX_ERR(0, 631, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_OptionalMethod__set_state(self, __pyx_state) */ __pyx_codeobj__197 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__197)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":642 * cdef readonly dict method_by_cls * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionByTypeMethod_deserialize(self, data) * */ __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 642, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 642, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__199 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__199)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionByTypeMethod__set_state(self, __pyx_state) */ __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":652 * cdef readonly tuple alt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionMethod_deserialize(self, data) * */ __pyx_codeobj__201 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 652, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__201)) __PYX_ERR(0, 652, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionMethod__set_state(self, __pyx_state) */ __pyx_codeobj__203 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__203)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":663 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionMethod_deserialize(self, data) * */ __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 663, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 663, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__205 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__205)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionMethod__set_state(self, __pyx_state) */ __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":673 * cdef class ConversionWithValueErrorMethod(ConversionMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionWithValueErrorMethod_deserialize(self, data) * */ __pyx_codeobj__207 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 673, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__207)) __PYX_ERR(0, 673, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionWithValueErrorMethod__set_state(self, __pyx_state) */ __pyx_codeobj__209 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__209)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionAlternative__set_state(self, __pyx_state) */ __pyx_codeobj__211 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__211)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":694 * cdef readonly tuple alternatives * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionUnionMethod_deserialize(self, data) * */ __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 694, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 694, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__213 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__213)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionUnionMethod__set_state(self, __pyx_state) */ __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(2, 16, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__215 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__215)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Discriminated__set_state(self, __pyx_state) */ __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":715 * cdef readonly object error * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return DiscriminatorMethod_deserialize(self, data) * */ __pyx_codeobj__217 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_deserialize, 715, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__217)) __PYX_ERR(0, 715, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(2, 1, __pyx_L1_error) /* "(tree fragment)":16 * else: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DiscriminatorMethod__set_state(self, __pyx_state) */ __pyx_codeobj__219 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__219)) __PYX_ERR(2, 16, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":725 * self._dispatch = 31 * * cpdef inline to_hashable(object data): # <<<<<<<<<<<<<< * if isinstance(data, list): * return tuple(map(to_hashable, data)) */ __pyx_tuple__220 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__220)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__220); __Pyx_GIVEREF(__pyx_tuple__220); __pyx_codeobj__221 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__220, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_to_hashable, 725, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__221)) __PYX_ERR(0, 725, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":734 * return data * * cpdef inline format_error(object err, object data): # <<<<<<<<<<<<<< * return err if isinstance(err, str) else err(data) * */ __pyx_tuple__222 = PyTuple_Pack(2, __pyx_n_s_err, __pyx_n_s_data); if (unlikely(!__pyx_tuple__222)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__222); __Pyx_GIVEREF(__pyx_tuple__222); __pyx_codeobj__223 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__222, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_format_error, 734, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__223)) __PYX_ERR(0, 734, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":737 * return err if isinstance(err, str) else err(data) * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): # <<<<<<<<<<<<<< * for i in range(len(constraints)): * constraint:Constraint= constraints[i] */ __pyx_tuple__224 = PyTuple_Pack(3, __pyx_n_s_data, __pyx_n_s_constraints, __pyx_n_s_children_errors); if (unlikely(!__pyx_tuple__224)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__224); __Pyx_GIVEREF(__pyx_tuple__224); __pyx_codeobj__225 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__224, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_validate_constraints, 737, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__225)) __PYX_ERR(0, 737, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":751 * return data * * cpdef inline set_child_error(object errors, object key, object error): # <<<<<<<<<<<<<< * if errors is None: * return {key: error} */ __pyx_tuple__226 = PyTuple_Pack(3, __pyx_n_s_errors, __pyx_n_s_key, __pyx_n_s_error); if (unlikely(!__pyx_tuple__226)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__226); __Pyx_GIVEREF(__pyx_tuple__226); __pyx_codeobj__227 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__226, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_set_child_error, 751, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__227)) __PYX_ERR(0, 751, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":758 * return errors * * cpdef inline extend_errors(object errors, object messages): # <<<<<<<<<<<<<< * if errors is None: * return list(messages) */ __pyx_tuple__228 = PyTuple_Pack(2, __pyx_n_s_errors, __pyx_n_s_messages); if (unlikely(!__pyx_tuple__228)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__228); __Pyx_GIVEREF(__pyx_tuple__228); __pyx_codeobj__229 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__228, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_extend_errors, 758, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__229)) __PYX_ERR(0, 758, __pyx_L1_error) /* "apischema/deserialization/methods.pyx":765 * return errors * * cpdef inline update_children_errors(object errors, dict children): # <<<<<<<<<<<<<< * if errors is None: * return dict(children) */ __pyx_tuple__230 = PyTuple_Pack(2, __pyx_n_s_errors, __pyx_n_s_children); if (unlikely(!__pyx_tuple__230)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__230); __Pyx_GIVEREF(__pyx_tuple__230); __pyx_codeobj__231 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__230, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_apischema_deserialization_method_2, __pyx_n_s_update_children_errors, 765, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__231)) __PYX_ERR(0, 765, __pyx_L1_error) /* "(tree fragment)":1 * def __pyx_unpickle_Constraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_tuple__232 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__232)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__232); __Pyx_GIVEREF(__pyx_tuple__232); __pyx_codeobj__233 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Constraint, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__233)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MinimumConstraint, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__235 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MaximumConstraint, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__235)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ExclusiveMinimumC, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__237 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ExclusiveMaximumC, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__237)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MultipleOfConstra, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__239 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MinLengthConstrai, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__239)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MaxLengthConstrai, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__241 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_PatternConstraint, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__241)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MinItemsConstrain, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__243 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MaxItemsConstrain, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__243)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_UniqueItemsConstr, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__245 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MinPropertiesCons, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__245)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MaxPropertiesCons, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__247 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_DeserializationMe, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__247)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_RecMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__249 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ValidatorMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__249)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_CoercerMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__251 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_TypeCheckMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__251)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_AnyMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__253 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ListCheckOnlyMeth, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__253)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ListMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__255 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_SetMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__255)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_FrozenSetMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__257 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VariadicTupleMeth, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__257)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_LiteralMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__259 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MappingCheckOnly, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__259)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_MappingMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__261 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Field, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__261)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_FlattenedField, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__263 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_PatternField, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__263)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_AdditionalField, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__265 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Constructor, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__265)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_NoConstructor, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__267 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_RawConstructor, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__267)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_RawConstructorCop, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__269 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_DefaultField, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__269)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_FactoryField, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__271 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_FieldsConstructor, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__271)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_SimpleObjectMetho, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__273 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ObjectMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__273)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_NoneMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__275 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_IntMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__275)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__276 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_FloatMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__276)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__277 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_StrMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__277)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__278 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_BoolMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__278)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__279 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConstrainedIntMet, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__279)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__280 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConstrainedFloatM, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__280)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__281 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConstrainedStrMet, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__281)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__282 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_SubprimitiveMetho, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__282)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__283 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_TupleMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__283)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__284 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_OptionalMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__284)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__285 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_UnionByTypeMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__285)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__286 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_UnionMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__286)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__287 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConversionMethod, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__287)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__288 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConversionWithVal, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__288)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__289 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConversionAlterna, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__289)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__290 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ConversionUnionMe, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__290)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__291 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Discriminated, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__291)) __PYX_ERR(2, 1, __pyx_L1_error) __pyx_codeobj__292 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_DiscriminatorMeth, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__292)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } /* #### Code section: init_constants ### */ static CYTHON_SMALL_CODE int __Pyx_InitConstants(void) { __pyx_umethod_PyDict_Type_keys.type = (PyObject*)&PyDict_Type; __pyx_umethod_PyDict_Type_keys.method_name = &__pyx_n_s_keys; __pyx_umethod_PyDict_Type_update.type = (PyObject*)&PyDict_Type; __pyx_umethod_PyDict_Type_update.method_name = &__pyx_n_s_update; if (__Pyx_CreateStringTabAndInitStrings() < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1061315 = PyInt_FromLong(1061315L); if (unlikely(!__pyx_int_1061315)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4393368 = PyInt_FromLong(4393368L); if (unlikely(!__pyx_int_4393368)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5409203 = PyInt_FromLong(5409203L); if (unlikely(!__pyx_int_5409203)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_6074692 = PyInt_FromLong(6074692L); if (unlikely(!__pyx_int_6074692)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_10534196 = PyInt_FromLong(10534196L); if (unlikely(!__pyx_int_10534196)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16592120 = PyInt_FromLong(16592120L); if (unlikely(!__pyx_int_16592120)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16874699 = PyInt_FromLong(16874699L); if (unlikely(!__pyx_int_16874699)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_17381039 = PyInt_FromLong(17381039L); if (unlikely(!__pyx_int_17381039)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_18412159 = PyInt_FromLong(18412159L); if (unlikely(!__pyx_int_18412159)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_21831954 = PyInt_FromLong(21831954L); if (unlikely(!__pyx_int_21831954)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_21894935 = PyInt_FromLong(21894935L); if (unlikely(!__pyx_int_21894935)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_22404078 = PyInt_FromLong(22404078L); if (unlikely(!__pyx_int_22404078)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_25683109 = PyInt_FromLong(25683109L); if (unlikely(!__pyx_int_25683109)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_29064226 = PyInt_FromLong(29064226L); if (unlikely(!__pyx_int_29064226)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_30346496 = PyInt_FromLong(30346496L); if (unlikely(!__pyx_int_30346496)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_31099836 = PyInt_FromLong(31099836L); if (unlikely(!__pyx_int_31099836)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_31777368 = PyInt_FromLong(31777368L); if (unlikely(!__pyx_int_31777368)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_34399964 = PyInt_FromLong(34399964L); if (unlikely(!__pyx_int_34399964)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_34456425 = PyInt_FromLong(34456425L); if (unlikely(!__pyx_int_34456425)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_34564873 = PyInt_FromLong(34564873L); if (unlikely(!__pyx_int_34564873)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_39566027 = PyInt_FromLong(39566027L); if (unlikely(!__pyx_int_39566027)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_39646481 = PyInt_FromLong(39646481L); if (unlikely(!__pyx_int_39646481)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_43145208 = PyInt_FromLong(43145208L); if (unlikely(!__pyx_int_43145208)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_47519927 = PyInt_FromLong(47519927L); if (unlikely(!__pyx_int_47519927)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_49712037 = PyInt_FromLong(49712037L); if (unlikely(!__pyx_int_49712037)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_50166306 = PyInt_FromLong(50166306L); if (unlikely(!__pyx_int_50166306)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_50548289 = PyInt_FromLong(50548289L); if (unlikely(!__pyx_int_50548289)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_56952783 = PyInt_FromLong(56952783L); if (unlikely(!__pyx_int_56952783)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_59113187 = PyInt_FromLong(59113187L); if (unlikely(!__pyx_int_59113187)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_59973580 = PyInt_FromLong(59973580L); if (unlikely(!__pyx_int_59973580)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_65652202 = PyInt_FromLong(65652202L); if (unlikely(!__pyx_int_65652202)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_67187364 = PyInt_FromLong(67187364L); if (unlikely(!__pyx_int_67187364)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_68348896 = PyInt_FromLong(68348896L); if (unlikely(!__pyx_int_68348896)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_69439193 = PyInt_FromLong(69439193L); if (unlikely(!__pyx_int_69439193)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_71361338 = PyInt_FromLong(71361338L); if (unlikely(!__pyx_int_71361338)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_71989837 = PyInt_FromLong(71989837L); if (unlikely(!__pyx_int_71989837)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_73886977 = PyInt_FromLong(73886977L); if (unlikely(!__pyx_int_73886977)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_76745901 = PyInt_FromLong(76745901L); if (unlikely(!__pyx_int_76745901)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_80339441 = PyInt_FromLong(80339441L); if (unlikely(!__pyx_int_80339441)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_86498115 = PyInt_FromLong(86498115L); if (unlikely(!__pyx_int_86498115)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_87055098 = PyInt_FromLong(87055098L); if (unlikely(!__pyx_int_87055098)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_87926185 = PyInt_FromLong(87926185L); if (unlikely(!__pyx_int_87926185)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_89106541 = PyInt_FromLong(89106541L); if (unlikely(!__pyx_int_89106541)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_89247923 = PyInt_FromLong(89247923L); if (unlikely(!__pyx_int_89247923)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_89365892 = PyInt_FromLong(89365892L); if (unlikely(!__pyx_int_89365892)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_90778316 = PyInt_FromLong(90778316L); if (unlikely(!__pyx_int_90778316)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_92337353 = PyInt_FromLong(92337353L); if (unlikely(!__pyx_int_92337353)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_99602557 = PyInt_FromLong(99602557L); if (unlikely(!__pyx_int_99602557)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_99761709 = PyInt_FromLong(99761709L); if (unlikely(!__pyx_int_99761709)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_100986846 = PyInt_FromLong(100986846L); if (unlikely(!__pyx_int_100986846)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_102462867 = PyInt_FromLong(102462867L); if (unlikely(!__pyx_int_102462867)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_105653666 = PyInt_FromLong(105653666L); if (unlikely(!__pyx_int_105653666)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_107165658 = PyInt_FromLong(107165658L); if (unlikely(!__pyx_int_107165658)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_108544010 = PyInt_FromLong(108544010L); if (unlikely(!__pyx_int_108544010)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_108979822 = PyInt_FromLong(108979822L); if (unlikely(!__pyx_int_108979822)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_109504843 = PyInt_FromLong(109504843L); if (unlikely(!__pyx_int_109504843)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_110427570 = PyInt_FromLong(110427570L); if (unlikely(!__pyx_int_110427570)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_113390162 = PyInt_FromLong(113390162L); if (unlikely(!__pyx_int_113390162)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_117447894 = PyInt_FromLong(117447894L); if (unlikely(!__pyx_int_117447894)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_119135242 = PyInt_FromLong(119135242L); if (unlikely(!__pyx_int_119135242)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_119633667 = PyInt_FromLong(119633667L); if (unlikely(!__pyx_int_119633667)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_119948357 = PyInt_FromLong(119948357L); if (unlikely(!__pyx_int_119948357)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_125047544 = PyInt_FromLong(125047544L); if (unlikely(!__pyx_int_125047544)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_128527296 = PyInt_FromLong(128527296L); if (unlikely(!__pyx_int_128527296)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_129659791 = PyInt_FromLong(129659791L); if (unlikely(!__pyx_int_129659791)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_129754538 = PyInt_FromLong(129754538L); if (unlikely(!__pyx_int_129754538)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_133418666 = PyInt_FromLong(133418666L); if (unlikely(!__pyx_int_133418666)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_133974869 = PyInt_FromLong(133974869L); if (unlikely(!__pyx_int_133974869)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_136250523 = PyInt_FromLong(136250523L); if (unlikely(!__pyx_int_136250523)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_137271932 = PyInt_FromLong(137271932L); if (unlikely(!__pyx_int_137271932)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_138366295 = PyInt_FromLong(138366295L); if (unlikely(!__pyx_int_138366295)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_138368889 = PyInt_FromLong(138368889L); if (unlikely(!__pyx_int_138368889)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_139355673 = PyInt_FromLong(139355673L); if (unlikely(!__pyx_int_139355673)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_141271449 = PyInt_FromLong(141271449L); if (unlikely(!__pyx_int_141271449)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_142562297 = PyInt_FromLong(142562297L); if (unlikely(!__pyx_int_142562297)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_148344969 = PyInt_FromLong(148344969L); if (unlikely(!__pyx_int_148344969)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_150756734 = PyInt_FromLong(150756734L); if (unlikely(!__pyx_int_150756734)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_151978152 = PyInt_FromLong(151978152L); if (unlikely(!__pyx_int_151978152)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_153188860 = PyInt_FromLong(153188860L); if (unlikely(!__pyx_int_153188860)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_154338282 = PyInt_FromLong(154338282L); if (unlikely(!__pyx_int_154338282)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_154416804 = PyInt_FromLong(154416804L); if (unlikely(!__pyx_int_154416804)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_155387426 = PyInt_FromLong(155387426L); if (unlikely(!__pyx_int_155387426)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_157010104 = PyInt_FromLong(157010104L); if (unlikely(!__pyx_int_157010104)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_157442187 = PyInt_FromLong(157442187L); if (unlikely(!__pyx_int_157442187)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_159314353 = PyInt_FromLong(159314353L); if (unlikely(!__pyx_int_159314353)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_169907618 = PyInt_FromLong(169907618L); if (unlikely(!__pyx_int_169907618)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_170060645 = PyInt_FromLong(170060645L); if (unlikely(!__pyx_int_170060645)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_172473893 = PyInt_FromLong(172473893L); if (unlikely(!__pyx_int_172473893)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_174143295 = PyInt_FromLong(174143295L); if (unlikely(!__pyx_int_174143295)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_179286492 = PyInt_FromLong(179286492L); if (unlikely(!__pyx_int_179286492)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_180344665 = PyInt_FromLong(180344665L); if (unlikely(!__pyx_int_180344665)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_185544032 = PyInt_FromLong(185544032L); if (unlikely(!__pyx_int_185544032)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_188225458 = PyInt_FromLong(188225458L); if (unlikely(!__pyx_int_188225458)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_188265286 = PyInt_FromLong(188265286L); if (unlikely(!__pyx_int_188265286)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_190713963 = PyInt_FromLong(190713963L); if (unlikely(!__pyx_int_190713963)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_191997942 = PyInt_FromLong(191997942L); if (unlikely(!__pyx_int_191997942)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_199009293 = PyInt_FromLong(199009293L); if (unlikely(!__pyx_int_199009293)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_200261128 = PyInt_FromLong(200261128L); if (unlikely(!__pyx_int_200261128)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_205695869 = PyInt_FromLong(205695869L); if (unlikely(!__pyx_int_205695869)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_206753745 = PyInt_FromLong(206753745L); if (unlikely(!__pyx_int_206753745)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_207700205 = PyInt_FromLong(207700205L); if (unlikely(!__pyx_int_207700205)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_210124308 = PyInt_FromLong(210124308L); if (unlikely(!__pyx_int_210124308)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_213378848 = PyInt_FromLong(213378848L); if (unlikely(!__pyx_int_213378848)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_217540299 = PyInt_FromLong(217540299L); if (unlikely(!__pyx_int_217540299)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_218312211 = PyInt_FromLong(218312211L); if (unlikely(!__pyx_int_218312211)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_218785721 = PyInt_FromLong(218785721L); if (unlikely(!__pyx_int_218785721)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_219789001 = PyInt_FromLong(219789001L); if (unlikely(!__pyx_int_219789001)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_226265099 = PyInt_FromLong(226265099L); if (unlikely(!__pyx_int_226265099)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_228146014 = PyInt_FromLong(228146014L); if (unlikely(!__pyx_int_228146014)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_228566110 = PyInt_FromLong(228566110L); if (unlikely(!__pyx_int_228566110)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_230529602 = PyInt_FromLong(230529602L); if (unlikely(!__pyx_int_230529602)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_232155009 = PyInt_FromLong(232155009L); if (unlikely(!__pyx_int_232155009)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_232429629 = PyInt_FromLong(232429629L); if (unlikely(!__pyx_int_232429629)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_238095282 = PyInt_FromLong(238095282L); if (unlikely(!__pyx_int_238095282)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_238659478 = PyInt_FromLong(238659478L); if (unlikely(!__pyx_int_238659478)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_240488784 = PyInt_FromLong(240488784L); if (unlikely(!__pyx_int_240488784)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_241521041 = PyInt_FromLong(241521041L); if (unlikely(!__pyx_int_241521041)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_242672649 = PyInt_FromLong(242672649L); if (unlikely(!__pyx_int_242672649)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_247471373 = PyInt_FromLong(247471373L); if (unlikely(!__pyx_int_247471373)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_249936757 = PyInt_FromLong(249936757L); if (unlikely(!__pyx_int_249936757)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_251535444 = PyInt_FromLong(251535444L); if (unlikely(!__pyx_int_251535444)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_251556977 = PyInt_FromLong(251556977L); if (unlikely(!__pyx_int_251556977)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_252475336 = PyInt_FromLong(252475336L); if (unlikely(!__pyx_int_252475336)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_253779918 = PyInt_FromLong(253779918L); if (unlikely(!__pyx_int_253779918)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_258009577 = PyInt_FromLong(258009577L); if (unlikely(!__pyx_int_258009577)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_259347467 = PyInt_FromLong(259347467L); if (unlikely(!__pyx_int_259347467)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_261406006 = PyInt_FromLong(261406006L); if (unlikely(!__pyx_int_261406006)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_262512166 = PyInt_FromLong(262512166L); if (unlikely(!__pyx_int_262512166)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_265699309 = PyInt_FromLong(265699309L); if (unlikely(!__pyx_int_265699309)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_266123853 = PyInt_FromLong(266123853L); if (unlikely(!__pyx_int_266123853)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_266904154 = PyInt_FromLong(266904154L); if (unlikely(!__pyx_int_266904154)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_267302923 = PyInt_FromLong(267302923L); if (unlikely(!__pyx_int_267302923)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } /* #### Code section: init_globals ### */ static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { /* AssertionsEnabled.init */ if (likely(__Pyx_init_assertions_enabled() == 0)); else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } /* #### Code section: init_module ### */ static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/ static int __Pyx_modinit_global_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); /*--- Global init code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); /*--- Variable export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); /*--- Function export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_type_init_code(void) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_Constraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_Constraint_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_Constraint)) __PYX_ERR(0, 34, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_Constraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_Constraint) < 0) __PYX_ERR(0, 34, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_Constraint = &__pyx_type_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_Constraint) < 0) __PYX_ERR(0, 34, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_Constraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_Constraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_Constraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_Constraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Constraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Constraint) < 0) __PYX_ERR(0, 34, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Constraint) < 0) __PYX_ERR(0, 34, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MinimumConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MinimumConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MinimumConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MinimumConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_17MinimumConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint)) __PYX_ERR(0, 41, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint) < 0) __PYX_ERR(0, 41, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint = &__pyx_type_9apischema_15deserialization_7methods_MinimumConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint) < 0) __PYX_ERR(0, 41, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MinimumConstraint) < 0) __PYX_ERR(0, 41, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint) < 0) __PYX_ERR(0, 41, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MinimumConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint) < 0) __PYX_ERR(0, 41, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint) < 0) __PYX_ERR(0, 41, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MaximumConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MaximumConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MaximumConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MaximumConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_17MaximumConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint)) __PYX_ERR(0, 52, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint) < 0) __PYX_ERR(0, 52, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint = &__pyx_type_9apischema_15deserialization_7methods_MaximumConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint) < 0) __PYX_ERR(0, 52, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MaximumConstraint) < 0) __PYX_ERR(0, 52, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint) < 0) __PYX_ERR(0, 52, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MaximumConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint) < 0) __PYX_ERR(0, 52, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint) < 0) __PYX_ERR(0, 52, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; __pyx_vtable_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint)) __PYX_ERR(0, 63, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint) < 0) __PYX_ERR(0, 63, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint = &__pyx_type_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint) < 0) __PYX_ERR(0, 63, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint) < 0) __PYX_ERR(0, 63, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint) < 0) __PYX_ERR(0, 63, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ExclusiveMinimumConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint) < 0) __PYX_ERR(0, 63, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint) < 0) __PYX_ERR(0, 63, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; __pyx_vtable_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint)) __PYX_ERR(0, 74, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint) < 0) __PYX_ERR(0, 74, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint = &__pyx_type_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint) < 0) __PYX_ERR(0, 74, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint) < 0) __PYX_ERR(0, 74, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint) < 0) __PYX_ERR(0, 74, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ExclusiveMaximumConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint) < 0) __PYX_ERR(0, 74, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint) < 0) __PYX_ERR(0, 74, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MultipleOfConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MultipleOfConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MultipleOfConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MultipleOfConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_20MultipleOfConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint)) __PYX_ERR(0, 85, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint) < 0) __PYX_ERR(0, 85, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint = &__pyx_type_9apischema_15deserialization_7methods_MultipleOfConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint) < 0) __PYX_ERR(0, 85, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MultipleOfConstraint) < 0) __PYX_ERR(0, 85, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint) < 0) __PYX_ERR(0, 85, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MultipleOfConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint) < 0) __PYX_ERR(0, 85, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint) < 0) __PYX_ERR(0, 85, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MinLengthConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MinLengthConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MinLengthConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MinLengthConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_19MinLengthConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint)) __PYX_ERR(0, 96, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint) < 0) __PYX_ERR(0, 96, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint = &__pyx_type_9apischema_15deserialization_7methods_MinLengthConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint) < 0) __PYX_ERR(0, 96, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MinLengthConstraint) < 0) __PYX_ERR(0, 96, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint) < 0) __PYX_ERR(0, 96, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MinLengthConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint) < 0) __PYX_ERR(0, 96, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint) < 0) __PYX_ERR(0, 96, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MaxLengthConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MaxLengthConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MaxLengthConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MaxLengthConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_19MaxLengthConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint)) __PYX_ERR(0, 107, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint) < 0) __PYX_ERR(0, 107, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint = &__pyx_type_9apischema_15deserialization_7methods_MaxLengthConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint) < 0) __PYX_ERR(0, 107, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MaxLengthConstraint) < 0) __PYX_ERR(0, 107, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint) < 0) __PYX_ERR(0, 107, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MaxLengthConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint) < 0) __PYX_ERR(0, 107, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint) < 0) __PYX_ERR(0, 107, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_PatternConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_PatternConstraint; __pyx_vtable_9apischema_15deserialization_7methods_PatternConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_PatternConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_17PatternConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_PatternConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint)) __PYX_ERR(0, 118, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_PatternConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint) < 0) __PYX_ERR(0, 118, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint = &__pyx_type_9apischema_15deserialization_7methods_PatternConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint) < 0) __PYX_ERR(0, 118, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_PatternConstraint) < 0) __PYX_ERR(0, 118, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint) < 0) __PYX_ERR(0, 118, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_PatternConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint) < 0) __PYX_ERR(0, 118, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint) < 0) __PYX_ERR(0, 118, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MinItemsConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MinItemsConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MinItemsConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MinItemsConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_18MinItemsConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint)) __PYX_ERR(0, 129, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint) < 0) __PYX_ERR(0, 129, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint = &__pyx_type_9apischema_15deserialization_7methods_MinItemsConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint) < 0) __PYX_ERR(0, 129, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MinItemsConstraint) < 0) __PYX_ERR(0, 129, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint) < 0) __PYX_ERR(0, 129, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MinItemsConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint) < 0) __PYX_ERR(0, 129, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint) < 0) __PYX_ERR(0, 129, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MaxItemsConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MaxItemsConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MaxItemsConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MaxItemsConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_18MaxItemsConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint)) __PYX_ERR(0, 140, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint) < 0) __PYX_ERR(0, 140, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint = &__pyx_type_9apischema_15deserialization_7methods_MaxItemsConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint) < 0) __PYX_ERR(0, 140, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MaxItemsConstraint) < 0) __PYX_ERR(0, 140, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint) < 0) __PYX_ERR(0, 140, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MaxItemsConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint) < 0) __PYX_ERR(0, 140, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint) < 0) __PYX_ERR(0, 140, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_UniqueItemsConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_UniqueItemsConstraint; __pyx_vtable_9apischema_15deserialization_7methods_UniqueItemsConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_UniqueItemsConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_21UniqueItemsConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint)) __PYX_ERR(0, 151, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint) < 0) __PYX_ERR(0, 151, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint = &__pyx_type_9apischema_15deserialization_7methods_UniqueItemsConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint) < 0) __PYX_ERR(0, 151, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_UniqueItemsConstraint) < 0) __PYX_ERR(0, 151, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint) < 0) __PYX_ERR(0, 151, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_UniqueItemsConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint) < 0) __PYX_ERR(0, 151, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint) < 0) __PYX_ERR(0, 151, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MinPropertiesConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MinPropertiesConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MinPropertiesConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MinPropertiesConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_23MinPropertiesConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint)) __PYX_ERR(0, 163, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint) < 0) __PYX_ERR(0, 163, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint = &__pyx_type_9apischema_15deserialization_7methods_MinPropertiesConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint) < 0) __PYX_ERR(0, 163, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MinPropertiesConstraint) < 0) __PYX_ERR(0, 163, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint) < 0) __PYX_ERR(0, 163, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MinPropertiesConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint) < 0) __PYX_ERR(0, 163, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint) < 0) __PYX_ERR(0, 163, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MaxPropertiesConstraint = &__pyx_vtable_9apischema_15deserialization_7methods_MaxPropertiesConstraint; __pyx_vtable_9apischema_15deserialization_7methods_MaxPropertiesConstraint.validate = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MaxPropertiesConstraint *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_validate; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint)) __PYX_ERR(0, 174, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint_spec, __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint) < 0) __PYX_ERR(0, 174, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint = &__pyx_type_9apischema_15deserialization_7methods_MaxPropertiesConstraint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constraint; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint) < 0) __PYX_ERR(0, 174, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint, __pyx_vtabptr_9apischema_15deserialization_7methods_MaxPropertiesConstraint) < 0) __PYX_ERR(0, 174, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint) < 0) __PYX_ERR(0, 174, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MaxPropertiesConstraint, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint) < 0) __PYX_ERR(0, 174, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint) < 0) __PYX_ERR(0, 174, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod)) __PYX_ERR(0, 185, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod) < 0) __PYX_ERR(0, 185, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod = &__pyx_type_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod) < 0) __PYX_ERR(0, 185, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DeserializationMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod) < 0) __PYX_ERR(0, 185, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod) < 0) __PYX_ERR(0, 185, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_RecMethod = &__pyx_vtable_9apischema_15deserialization_7methods_RecMethod; __pyx_vtable_9apischema_15deserialization_7methods_RecMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_RecMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_9RecMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_RecMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_RecMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_RecMethod)) __PYX_ERR(0, 188, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_RecMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_RecMethod) < 0) __PYX_ERR(0, 188, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_RecMethod = &__pyx_type_9apischema_15deserialization_7methods_RecMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_RecMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_RecMethod) < 0) __PYX_ERR(0, 188, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_RecMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_RecMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_RecMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_RecMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_RecMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_RecMethod) < 0) __PYX_ERR(0, 188, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_RecMethod) < 0) __PYX_ERR(0, 188, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_RecMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_RecMethod) < 0) __PYX_ERR(0, 188, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_RecMethod) < 0) __PYX_ERR(0, 188, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ValidatorMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ValidatorMethod; __pyx_vtable_9apischema_15deserialization_7methods_ValidatorMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ValidatorMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_15ValidatorMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod)) __PYX_ERR(0, 200, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod) < 0) __PYX_ERR(0, 200, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod = &__pyx_type_9apischema_15deserialization_7methods_ValidatorMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod) < 0) __PYX_ERR(0, 200, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ValidatorMethod) < 0) __PYX_ERR(0, 200, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod) < 0) __PYX_ERR(0, 200, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ValidatorMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod) < 0) __PYX_ERR(0, 200, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod) < 0) __PYX_ERR(0, 200, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_CoercerMethod = &__pyx_vtable_9apischema_15deserialization_7methods_CoercerMethod; __pyx_vtable_9apischema_15deserialization_7methods_CoercerMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_CoercerMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_13CoercerMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_CoercerMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod)) __PYX_ERR(0, 214, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_CoercerMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod) < 0) __PYX_ERR(0, 214, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod = &__pyx_type_9apischema_15deserialization_7methods_CoercerMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod) < 0) __PYX_ERR(0, 214, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_CoercerMethod) < 0) __PYX_ERR(0, 214, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod) < 0) __PYX_ERR(0, 214, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CoercerMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod) < 0) __PYX_ERR(0, 214, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod) < 0) __PYX_ERR(0, 214, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_TypeCheckMethod = &__pyx_vtable_9apischema_15deserialization_7methods_TypeCheckMethod; __pyx_vtable_9apischema_15deserialization_7methods_TypeCheckMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_TypeCheckMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_15TypeCheckMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod)) __PYX_ERR(0, 228, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod) < 0) __PYX_ERR(0, 228, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod = &__pyx_type_9apischema_15deserialization_7methods_TypeCheckMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod) < 0) __PYX_ERR(0, 228, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_TypeCheckMethod) < 0) __PYX_ERR(0, 228, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod) < 0) __PYX_ERR(0, 228, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_TypeCheckMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod) < 0) __PYX_ERR(0, 228, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod) < 0) __PYX_ERR(0, 228, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_AnyMethod = &__pyx_vtable_9apischema_15deserialization_7methods_AnyMethod; __pyx_vtable_9apischema_15deserialization_7methods_AnyMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_AnyMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_9AnyMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_AnyMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod)) __PYX_ERR(0, 240, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_AnyMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod) < 0) __PYX_ERR(0, 240, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod = &__pyx_type_9apischema_15deserialization_7methods_AnyMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod) < 0) __PYX_ERR(0, 240, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_AnyMethod) < 0) __PYX_ERR(0, 240, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod) < 0) __PYX_ERR(0, 240, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AnyMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod) < 0) __PYX_ERR(0, 240, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_AnyMethod) < 0) __PYX_ERR(0, 240, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ListCheckOnlyMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ListCheckOnlyMethod; __pyx_vtable_9apischema_15deserialization_7methods_ListCheckOnlyMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ListCheckOnlyMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod)) __PYX_ERR(0, 250, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod) < 0) __PYX_ERR(0, 250, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod = &__pyx_type_9apischema_15deserialization_7methods_ListCheckOnlyMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod) < 0) __PYX_ERR(0, 250, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ListCheckOnlyMethod) < 0) __PYX_ERR(0, 250, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod) < 0) __PYX_ERR(0, 250, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ListCheckOnlyMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod) < 0) __PYX_ERR(0, 250, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod) < 0) __PYX_ERR(0, 250, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ListMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ListMethod; __pyx_vtable_9apischema_15deserialization_7methods_ListMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ListMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_10ListMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ListMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ListMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ListMethod)) __PYX_ERR(0, 262, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ListMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ListMethod) < 0) __PYX_ERR(0, 262, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ListMethod = &__pyx_type_9apischema_15deserialization_7methods_ListMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ListMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ListMethod) < 0) __PYX_ERR(0, 262, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ListMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ListMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ListMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ListMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ListMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ListMethod) < 0) __PYX_ERR(0, 262, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ListMethod) < 0) __PYX_ERR(0, 262, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ListMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ListMethod) < 0) __PYX_ERR(0, 262, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ListMethod) < 0) __PYX_ERR(0, 262, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_SetMethod = &__pyx_vtable_9apischema_15deserialization_7methods_SetMethod; __pyx_vtable_9apischema_15deserialization_7methods_SetMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_SetMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_9SetMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_SetMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_SetMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_SetMethod)) __PYX_ERR(0, 274, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_SetMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_SetMethod) < 0) __PYX_ERR(0, 274, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_SetMethod = &__pyx_type_9apischema_15deserialization_7methods_SetMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_SetMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_SetMethod) < 0) __PYX_ERR(0, 274, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_SetMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_SetMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_SetMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_SetMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_SetMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_SetMethod) < 0) __PYX_ERR(0, 274, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_SetMethod) < 0) __PYX_ERR(0, 274, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_SetMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_SetMethod) < 0) __PYX_ERR(0, 274, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_SetMethod) < 0) __PYX_ERR(0, 274, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_FrozenSetMethod = &__pyx_vtable_9apischema_15deserialization_7methods_FrozenSetMethod; __pyx_vtable_9apischema_15deserialization_7methods_FrozenSetMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_FrozenSetMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_15FrozenSetMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod)) __PYX_ERR(0, 286, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod) < 0) __PYX_ERR(0, 286, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod = &__pyx_type_9apischema_15deserialization_7methods_FrozenSetMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod) < 0) __PYX_ERR(0, 286, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_FrozenSetMethod) < 0) __PYX_ERR(0, 286, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod) < 0) __PYX_ERR(0, 286, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FrozenSetMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod) < 0) __PYX_ERR(0, 286, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod) < 0) __PYX_ERR(0, 286, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_VariadicTupleMethod = &__pyx_vtable_9apischema_15deserialization_7methods_VariadicTupleMethod; __pyx_vtable_9apischema_15deserialization_7methods_VariadicTupleMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_VariadicTupleMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_19VariadicTupleMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod)) __PYX_ERR(0, 296, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod) < 0) __PYX_ERR(0, 296, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod = &__pyx_type_9apischema_15deserialization_7methods_VariadicTupleMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod) < 0) __PYX_ERR(0, 296, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_VariadicTupleMethod) < 0) __PYX_ERR(0, 296, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod) < 0) __PYX_ERR(0, 296, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VariadicTupleMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod) < 0) __PYX_ERR(0, 296, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod) < 0) __PYX_ERR(0, 296, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_LiteralMethod = &__pyx_vtable_9apischema_15deserialization_7methods_LiteralMethod; __pyx_vtable_9apischema_15deserialization_7methods_LiteralMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_LiteralMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_13LiteralMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_LiteralMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod)) __PYX_ERR(0, 306, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_LiteralMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod) < 0) __PYX_ERR(0, 306, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod = &__pyx_type_9apischema_15deserialization_7methods_LiteralMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod) < 0) __PYX_ERR(0, 306, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_LiteralMethod) < 0) __PYX_ERR(0, 306, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod) < 0) __PYX_ERR(0, 306, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_LiteralMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod) < 0) __PYX_ERR(0, 306, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod) < 0) __PYX_ERR(0, 306, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MappingCheckOnly = &__pyx_vtable_9apischema_15deserialization_7methods_MappingCheckOnly; __pyx_vtable_9apischema_15deserialization_7methods_MappingCheckOnly.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MappingCheckOnly *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_16MappingCheckOnly_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly)) __PYX_ERR(0, 322, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly_spec, __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly) < 0) __PYX_ERR(0, 322, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly = &__pyx_type_9apischema_15deserialization_7methods_MappingCheckOnly; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly) < 0) __PYX_ERR(0, 322, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly, __pyx_vtabptr_9apischema_15deserialization_7methods_MappingCheckOnly) < 0) __PYX_ERR(0, 322, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly) < 0) __PYX_ERR(0, 322, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MappingCheckOnly, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly) < 0) __PYX_ERR(0, 322, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly) < 0) __PYX_ERR(0, 322, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_MappingMethod = &__pyx_vtable_9apischema_15deserialization_7methods_MappingMethod; __pyx_vtable_9apischema_15deserialization_7methods_MappingMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_MappingMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_13MappingMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_MappingMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod)) __PYX_ERR(0, 336, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_MappingMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod) < 0) __PYX_ERR(0, 336, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod = &__pyx_type_9apischema_15deserialization_7methods_MappingMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod) < 0) __PYX_ERR(0, 336, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_MappingMethod) < 0) __PYX_ERR(0, 336, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod) < 0) __PYX_ERR(0, 336, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MappingMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod) < 0) __PYX_ERR(0, 336, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_MappingMethod) < 0) __PYX_ERR(0, 336, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_Field = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_Field_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_Field)) __PYX_ERR(0, 350, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_Field_spec, __pyx_ptype_9apischema_15deserialization_7methods_Field) < 0) __PYX_ERR(0, 350, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_Field = &__pyx_type_9apischema_15deserialization_7methods_Field; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_Field) < 0) __PYX_ERR(0, 350, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_Field->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_Field->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_Field->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_Field->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Field, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Field) < 0) __PYX_ERR(0, 350, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Field) < 0) __PYX_ERR(0, 350, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_FlattenedField_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField)) __PYX_ERR(0, 366, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_FlattenedField_spec, __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField) < 0) __PYX_ERR(0, 366, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField = &__pyx_type_9apischema_15deserialization_7methods_FlattenedField; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField) < 0) __PYX_ERR(0, 366, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FlattenedField, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField) < 0) __PYX_ERR(0, 366, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FlattenedField) < 0) __PYX_ERR(0, 366, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_PatternField = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_PatternField_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_PatternField)) __PYX_ERR(0, 378, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_PatternField_spec, __pyx_ptype_9apischema_15deserialization_7methods_PatternField) < 0) __PYX_ERR(0, 378, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_PatternField = &__pyx_type_9apischema_15deserialization_7methods_PatternField; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_PatternField) < 0) __PYX_ERR(0, 378, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_PatternField->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_PatternField->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_PatternField->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_PatternField->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_PatternField, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_PatternField) < 0) __PYX_ERR(0, 378, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_PatternField) < 0) __PYX_ERR(0, 378, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_AdditionalField_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField)) __PYX_ERR(0, 390, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_AdditionalField_spec, __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField) < 0) __PYX_ERR(0, 390, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField = &__pyx_type_9apischema_15deserialization_7methods_AdditionalField; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField) < 0) __PYX_ERR(0, 390, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AdditionalField, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField) < 0) __PYX_ERR(0, 390, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_AdditionalField) < 0) __PYX_ERR(0, 390, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_Constructor = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_Constructor_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_Constructor)) __PYX_ERR(0, 400, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_Constructor_spec, __pyx_ptype_9apischema_15deserialization_7methods_Constructor) < 0) __PYX_ERR(0, 400, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_Constructor = &__pyx_type_9apischema_15deserialization_7methods_Constructor; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_Constructor) < 0) __PYX_ERR(0, 400, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_Constructor->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_Constructor->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_Constructor->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_Constructor->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Constructor, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Constructor) < 0) __PYX_ERR(0, 400, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Constructor) < 0) __PYX_ERR(0, 400, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_NoConstructor = &__pyx_vtable_9apischema_15deserialization_7methods_NoConstructor; __pyx_vtable_9apischema_15deserialization_7methods_NoConstructor.construct = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_NoConstructor *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_13NoConstructor_construct; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_NoConstructor_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor)) __PYX_ERR(0, 407, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_NoConstructor_spec, __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor) < 0) __PYX_ERR(0, 407, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor = &__pyx_type_9apischema_15deserialization_7methods_NoConstructor; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constructor; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor) < 0) __PYX_ERR(0, 407, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor, __pyx_vtabptr_9apischema_15deserialization_7methods_NoConstructor) < 0) __PYX_ERR(0, 407, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor) < 0) __PYX_ERR(0, 407, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_NoConstructor, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor) < 0) __PYX_ERR(0, 407, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_NoConstructor) < 0) __PYX_ERR(0, 407, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructor = &__pyx_vtable_9apischema_15deserialization_7methods_RawConstructor; __pyx_vtable_9apischema_15deserialization_7methods_RawConstructor.construct = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructor *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_14RawConstructor_construct; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_RawConstructor_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor)) __PYX_ERR(0, 416, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_RawConstructor_spec, __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor) < 0) __PYX_ERR(0, 416, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor = &__pyx_type_9apischema_15deserialization_7methods_RawConstructor; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constructor; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor) < 0) __PYX_ERR(0, 416, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor, __pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructor) < 0) __PYX_ERR(0, 416, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor) < 0) __PYX_ERR(0, 416, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_RawConstructor, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor) < 0) __PYX_ERR(0, 416, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_RawConstructor) < 0) __PYX_ERR(0, 416, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructorCopy = &__pyx_vtable_9apischema_15deserialization_7methods_RawConstructorCopy; __pyx_vtable_9apischema_15deserialization_7methods_RawConstructorCopy.construct = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_RawConstructorCopy *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_18RawConstructorCopy_construct; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy)) __PYX_ERR(0, 425, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy_spec, __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy) < 0) __PYX_ERR(0, 425, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy = &__pyx_type_9apischema_15deserialization_7methods_RawConstructorCopy; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constructor; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy) < 0) __PYX_ERR(0, 425, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy, __pyx_vtabptr_9apischema_15deserialization_7methods_RawConstructorCopy) < 0) __PYX_ERR(0, 425, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy) < 0) __PYX_ERR(0, 425, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_RawConstructorCopy, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy) < 0) __PYX_ERR(0, 425, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy) < 0) __PYX_ERR(0, 425, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_DefaultField = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_DefaultField_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_DefaultField)) __PYX_ERR(0, 434, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_DefaultField_spec, __pyx_ptype_9apischema_15deserialization_7methods_DefaultField) < 0) __PYX_ERR(0, 434, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_DefaultField = &__pyx_type_9apischema_15deserialization_7methods_DefaultField; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_DefaultField) < 0) __PYX_ERR(0, 434, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_DefaultField->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_DefaultField->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_DefaultField->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_DefaultField->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DefaultField, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_DefaultField) < 0) __PYX_ERR(0, 434, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_DefaultField) < 0) __PYX_ERR(0, 434, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_FactoryField = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_FactoryField_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_FactoryField)) __PYX_ERR(0, 442, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_FactoryField_spec, __pyx_ptype_9apischema_15deserialization_7methods_FactoryField) < 0) __PYX_ERR(0, 442, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_FactoryField = &__pyx_type_9apischema_15deserialization_7methods_FactoryField; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_FactoryField) < 0) __PYX_ERR(0, 442, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_FactoryField->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_FactoryField->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_FactoryField->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_FactoryField->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FactoryField, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FactoryField) < 0) __PYX_ERR(0, 442, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FactoryField) < 0) __PYX_ERR(0, 442, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_FieldsConstructor = &__pyx_vtable_9apischema_15deserialization_7methods_FieldsConstructor; __pyx_vtable_9apischema_15deserialization_7methods_FieldsConstructor.construct = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_FieldsConstructor *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_17FieldsConstructor_construct; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor)) __PYX_ERR(0, 450, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor_spec, __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor) < 0) __PYX_ERR(0, 450, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor = &__pyx_type_9apischema_15deserialization_7methods_FieldsConstructor; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_Constructor; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor) < 0) __PYX_ERR(0, 450, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor, __pyx_vtabptr_9apischema_15deserialization_7methods_FieldsConstructor) < 0) __PYX_ERR(0, 450, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor) < 0) __PYX_ERR(0, 450, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FieldsConstructor, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor) < 0) __PYX_ERR(0, 450, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor) < 0) __PYX_ERR(0, 450, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_SimpleObjectMethod = &__pyx_vtable_9apischema_15deserialization_7methods_SimpleObjectMethod; __pyx_vtable_9apischema_15deserialization_7methods_SimpleObjectMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_SimpleObjectMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_18SimpleObjectMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod)) __PYX_ERR(0, 465, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod) < 0) __PYX_ERR(0, 465, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod = &__pyx_type_9apischema_15deserialization_7methods_SimpleObjectMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod) < 0) __PYX_ERR(0, 465, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_SimpleObjectMethod) < 0) __PYX_ERR(0, 465, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod) < 0) __PYX_ERR(0, 465, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_SimpleObjectMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod) < 0) __PYX_ERR(0, 465, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod) < 0) __PYX_ERR(0, 465, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ObjectMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ObjectMethod; __pyx_vtable_9apischema_15deserialization_7methods_ObjectMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ObjectMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_12ObjectMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ObjectMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod)) __PYX_ERR(0, 485, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ObjectMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod) < 0) __PYX_ERR(0, 485, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod = &__pyx_type_9apischema_15deserialization_7methods_ObjectMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod) < 0) __PYX_ERR(0, 485, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ObjectMethod) < 0) __PYX_ERR(0, 485, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod) < 0) __PYX_ERR(0, 485, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ObjectMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod) < 0) __PYX_ERR(0, 485, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod) < 0) __PYX_ERR(0, 485, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_NoneMethod = &__pyx_vtable_9apischema_15deserialization_7methods_NoneMethod; __pyx_vtable_9apischema_15deserialization_7methods_NoneMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_NoneMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_10NoneMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_NoneMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod)) __PYX_ERR(0, 529, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_NoneMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod) < 0) __PYX_ERR(0, 529, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod = &__pyx_type_9apischema_15deserialization_7methods_NoneMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod) < 0) __PYX_ERR(0, 529, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_NoneMethod) < 0) __PYX_ERR(0, 529, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod) < 0) __PYX_ERR(0, 529, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_NoneMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod) < 0) __PYX_ERR(0, 529, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_NoneMethod) < 0) __PYX_ERR(0, 529, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_IntMethod = &__pyx_vtable_9apischema_15deserialization_7methods_IntMethod; __pyx_vtable_9apischema_15deserialization_7methods_IntMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_9IntMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_IntMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_IntMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_IntMethod)) __PYX_ERR(0, 537, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_IntMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_IntMethod) < 0) __PYX_ERR(0, 537, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_IntMethod = &__pyx_type_9apischema_15deserialization_7methods_IntMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod) < 0) __PYX_ERR(0, 537, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_IntMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_IntMethod) < 0) __PYX_ERR(0, 537, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod) < 0) __PYX_ERR(0, 537, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_IntMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_IntMethod) < 0) __PYX_ERR(0, 537, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_IntMethod) < 0) __PYX_ERR(0, 537, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_FloatMethod = &__pyx_vtable_9apischema_15deserialization_7methods_FloatMethod; __pyx_vtable_9apischema_15deserialization_7methods_FloatMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_11FloatMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_FloatMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod)) __PYX_ERR(0, 545, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_FloatMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod) < 0) __PYX_ERR(0, 545, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod = &__pyx_type_9apischema_15deserialization_7methods_FloatMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod) < 0) __PYX_ERR(0, 545, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_FloatMethod) < 0) __PYX_ERR(0, 545, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod) < 0) __PYX_ERR(0, 545, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FloatMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod) < 0) __PYX_ERR(0, 545, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod) < 0) __PYX_ERR(0, 545, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_StrMethod = &__pyx_vtable_9apischema_15deserialization_7methods_StrMethod; __pyx_vtable_9apischema_15deserialization_7methods_StrMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_9StrMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_StrMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_StrMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_StrMethod)) __PYX_ERR(0, 553, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_StrMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_StrMethod) < 0) __PYX_ERR(0, 553, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_StrMethod = &__pyx_type_9apischema_15deserialization_7methods_StrMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod) < 0) __PYX_ERR(0, 553, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_StrMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_StrMethod) < 0) __PYX_ERR(0, 553, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod) < 0) __PYX_ERR(0, 553, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_StrMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_StrMethod) < 0) __PYX_ERR(0, 553, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_StrMethod) < 0) __PYX_ERR(0, 553, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_BoolMethod = &__pyx_vtable_9apischema_15deserialization_7methods_BoolMethod; __pyx_vtable_9apischema_15deserialization_7methods_BoolMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_BoolMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_10BoolMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_BoolMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod)) __PYX_ERR(0, 561, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_BoolMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod) < 0) __PYX_ERR(0, 561, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod = &__pyx_type_9apischema_15deserialization_7methods_BoolMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod) < 0) __PYX_ERR(0, 561, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_BoolMethod) < 0) __PYX_ERR(0, 561, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod) < 0) __PYX_ERR(0, 561, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BoolMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod) < 0) __PYX_ERR(0, 561, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_BoolMethod) < 0) __PYX_ERR(0, 561, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedIntMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ConstrainedIntMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedIntMethod.__pyx_base = *__pyx_vtabptr_9apischema_15deserialization_7methods_IntMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedIntMethod.__pyx_base.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_IntMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_20ConstrainedIntMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_IntMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod)) __PYX_ERR(0, 569, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod) < 0) __PYX_ERR(0, 569, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod = &__pyx_type_9apischema_15deserialization_7methods_ConstrainedIntMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_IntMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod) < 0) __PYX_ERR(0, 569, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedIntMethod) < 0) __PYX_ERR(0, 569, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod) < 0) __PYX_ERR(0, 569, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConstrainedIntMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod) < 0) __PYX_ERR(0, 569, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod) < 0) __PYX_ERR(0, 569, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedFloatMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ConstrainedFloatMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedFloatMethod.__pyx_base = *__pyx_vtabptr_9apischema_15deserialization_7methods_FloatMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedFloatMethod.__pyx_base.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_FloatMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod)) __PYX_ERR(0, 579, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod) < 0) __PYX_ERR(0, 579, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod = &__pyx_type_9apischema_15deserialization_7methods_ConstrainedFloatMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_FloatMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod) < 0) __PYX_ERR(0, 579, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedFloatMethod) < 0) __PYX_ERR(0, 579, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod) < 0) __PYX_ERR(0, 579, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConstrainedFloatMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod) < 0) __PYX_ERR(0, 579, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod) < 0) __PYX_ERR(0, 579, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedStrMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ConstrainedStrMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedStrMethod.__pyx_base = *__pyx_vtabptr_9apischema_15deserialization_7methods_StrMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConstrainedStrMethod.__pyx_base.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_StrMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_20ConstrainedStrMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_StrMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod)) __PYX_ERR(0, 589, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod) < 0) __PYX_ERR(0, 589, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod = &__pyx_type_9apischema_15deserialization_7methods_ConstrainedStrMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_StrMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod) < 0) __PYX_ERR(0, 589, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ConstrainedStrMethod) < 0) __PYX_ERR(0, 589, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod) < 0) __PYX_ERR(0, 589, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConstrainedStrMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod) < 0) __PYX_ERR(0, 589, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod) < 0) __PYX_ERR(0, 589, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_SubprimitiveMethod = &__pyx_vtable_9apischema_15deserialization_7methods_SubprimitiveMethod; __pyx_vtable_9apischema_15deserialization_7methods_SubprimitiveMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_SubprimitiveMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_18SubprimitiveMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod)) __PYX_ERR(0, 599, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod) < 0) __PYX_ERR(0, 599, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod = &__pyx_type_9apischema_15deserialization_7methods_SubprimitiveMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod) < 0) __PYX_ERR(0, 599, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_SubprimitiveMethod) < 0) __PYX_ERR(0, 599, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod) < 0) __PYX_ERR(0, 599, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_SubprimitiveMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod) < 0) __PYX_ERR(0, 599, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod) < 0) __PYX_ERR(0, 599, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_TupleMethod = &__pyx_vtable_9apischema_15deserialization_7methods_TupleMethod; __pyx_vtable_9apischema_15deserialization_7methods_TupleMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_TupleMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_11TupleMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_TupleMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod)) __PYX_ERR(0, 611, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_TupleMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod) < 0) __PYX_ERR(0, 611, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod = &__pyx_type_9apischema_15deserialization_7methods_TupleMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod) < 0) __PYX_ERR(0, 611, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_TupleMethod) < 0) __PYX_ERR(0, 611, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod) < 0) __PYX_ERR(0, 611, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_TupleMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod) < 0) __PYX_ERR(0, 611, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_TupleMethod) < 0) __PYX_ERR(0, 611, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_OptionalMethod = &__pyx_vtable_9apischema_15deserialization_7methods_OptionalMethod; __pyx_vtable_9apischema_15deserialization_7methods_OptionalMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_OptionalMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_14OptionalMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_OptionalMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod)) __PYX_ERR(0, 627, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_OptionalMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod = &__pyx_type_9apischema_15deserialization_7methods_OptionalMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_OptionalMethod) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_OptionalMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod) < 0) __PYX_ERR(0, 627, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_UnionByTypeMethod = &__pyx_vtable_9apischema_15deserialization_7methods_UnionByTypeMethod; __pyx_vtable_9apischema_15deserialization_7methods_UnionByTypeMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_UnionByTypeMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_17UnionByTypeMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod)) __PYX_ERR(0, 639, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod) < 0) __PYX_ERR(0, 639, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod = &__pyx_type_9apischema_15deserialization_7methods_UnionByTypeMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod) < 0) __PYX_ERR(0, 639, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_UnionByTypeMethod) < 0) __PYX_ERR(0, 639, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod) < 0) __PYX_ERR(0, 639, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_UnionByTypeMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod) < 0) __PYX_ERR(0, 639, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod) < 0) __PYX_ERR(0, 639, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_UnionMethod = &__pyx_vtable_9apischema_15deserialization_7methods_UnionMethod; __pyx_vtable_9apischema_15deserialization_7methods_UnionMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_UnionMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_11UnionMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_UnionMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod)) __PYX_ERR(0, 649, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_UnionMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod) < 0) __PYX_ERR(0, 649, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod = &__pyx_type_9apischema_15deserialization_7methods_UnionMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod) < 0) __PYX_ERR(0, 649, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_UnionMethod) < 0) __PYX_ERR(0, 649, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod) < 0) __PYX_ERR(0, 649, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_UnionMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod) < 0) __PYX_ERR(0, 649, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_UnionMethod) < 0) __PYX_ERR(0, 649, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ConversionMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConversionMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_16ConversionMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConversionMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod)) __PYX_ERR(0, 659, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConversionMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod) < 0) __PYX_ERR(0, 659, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod = &__pyx_type_9apischema_15deserialization_7methods_ConversionMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod) < 0) __PYX_ERR(0, 659, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionMethod) < 0) __PYX_ERR(0, 659, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod) < 0) __PYX_ERR(0, 659, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConversionMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod) < 0) __PYX_ERR(0, 659, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod) < 0) __PYX_ERR(0, 659, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod.__pyx_base = *__pyx_vtabptr_9apischema_15deserialization_7methods_ConversionMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod.__pyx_base.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod)) __PYX_ERR(0, 671, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod) < 0) __PYX_ERR(0, 671, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod = &__pyx_type_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod) < 0) __PYX_ERR(0, 671, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod) < 0) __PYX_ERR(0, 671, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod) < 0) __PYX_ERR(0, 671, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConversionWithValueErrorMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod) < 0) __PYX_ERR(0, 671, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod) < 0) __PYX_ERR(0, 671, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative)) __PYX_ERR(0, 681, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative) < 0) __PYX_ERR(0, 681, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative = &__pyx_type_9apischema_15deserialization_7methods_ConversionAlternative; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative) < 0) __PYX_ERR(0, 681, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConversionAlternative, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative) < 0) __PYX_ERR(0, 681, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative) < 0) __PYX_ERR(0, 681, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionUnionMethod = &__pyx_vtable_9apischema_15deserialization_7methods_ConversionUnionMethod; __pyx_vtable_9apischema_15deserialization_7methods_ConversionUnionMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_ConversionUnionMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_21ConversionUnionMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod)) __PYX_ERR(0, 691, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod) < 0) __PYX_ERR(0, 691, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod = &__pyx_type_9apischema_15deserialization_7methods_ConversionUnionMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod) < 0) __PYX_ERR(0, 691, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_ConversionUnionMethod) < 0) __PYX_ERR(0, 691, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod) < 0) __PYX_ERR(0, 691, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ConversionUnionMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod) < 0) __PYX_ERR(0, 691, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod) < 0) __PYX_ERR(0, 691, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods_Discriminated = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_Discriminated_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_Discriminated)) __PYX_ERR(0, 701, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_Discriminated_spec, __pyx_ptype_9apischema_15deserialization_7methods_Discriminated) < 0) __PYX_ERR(0, 701, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_Discriminated = &__pyx_type_9apischema_15deserialization_7methods_Discriminated; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_Discriminated) < 0) __PYX_ERR(0, 701, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_Discriminated->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_Discriminated->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_Discriminated->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_Discriminated->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Discriminated, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Discriminated) < 0) __PYX_ERR(0, 701, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_Discriminated) < 0) __PYX_ERR(0, 701, __pyx_L1_error) #endif __pyx_vtabptr_9apischema_15deserialization_7methods_DiscriminatorMethod = &__pyx_vtable_9apischema_15deserialization_7methods_DiscriminatorMethod; __pyx_vtable_9apischema_15deserialization_7methods_DiscriminatorMethod.deserialize = (PyObject *(*)(struct __pyx_obj_9apischema_15deserialization_7methods_DiscriminatorMethod *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9apischema_15deserialization_7methods_19DiscriminatorMethod_deserialize; #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod)) __PYX_ERR(0, 709, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod_spec, __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod) < 0) __PYX_ERR(0, 709, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod = &__pyx_type_9apischema_15deserialization_7methods_DiscriminatorMethod; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod->tp_base = __pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod) < 0) __PYX_ERR(0, 709, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (__Pyx_SetVtable(__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod, __pyx_vtabptr_9apischema_15deserialization_7methods_DiscriminatorMethod) < 0) __PYX_ERR(0, 709, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_MergeVtables(__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod) < 0) __PYX_ERR(0, 709, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DiscriminatorMethod, (PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod) < 0) __PYX_ERR(0, 709, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod) < 0) __PYX_ERR(0, 709, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize)) __PYX_ERR(0, 1180, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize_spec, __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize) < 0) __PYX_ERR(0, 1180, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize = &__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize) < 0) __PYX_ERR(0, 1180, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct____pyx_f_9apischema_15deserialization_7methods_UnionByTypeMethod_deserialize->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr)) __PYX_ERR(0, 1187, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr_spec, __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 1187, __pyx_L1_error) #else __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr = &__pyx_type_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 1187, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr->tp_dictoffset && __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_9apischema_15deserialization_7methods___pyx_scope_struct_1_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_type_import_code(void) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_11(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_11(PyTypeObject), #elif CYTHON_COMPILING_IN_LIMITED_API sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_11(PyTypeObject), #else sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_11(PyHeapTypeObject), #endif __Pyx_ImportType_CheckSize_Warn_3_0_11); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType_3_0_11(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_11(PyBoolObject),__Pyx_ImportType_CheckSize_Warn_3_0_11); if (!__pyx_ptype_7cpython_4bool_bool) __PYX_ERR(4, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType_3_0_11(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_11(PyComplexObject),__Pyx_ImportType_CheckSize_Warn_3_0_11); if (!__pyx_ptype_7cpython_7complex_complex) __PYX_ERR(5, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_variable_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); /*--- Variable import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } #if PY_MAJOR_VERSION >= 3 #if CYTHON_PEP489_MULTI_PHASE_INIT static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ static int __pyx_pymod_exec_methods(PyObject* module); /*proto*/ static PyModuleDef_Slot __pyx_moduledef_slots[] = { {Py_mod_create, (void*)__pyx_pymod_create}, {Py_mod_exec, (void*)__pyx_pymod_exec_methods}, {0, NULL} }; #endif #ifdef __cplusplus namespace { struct PyModuleDef __pyx_moduledef = #else static struct PyModuleDef __pyx_moduledef = #endif { PyModuleDef_HEAD_INIT, "methods", 0, /* m_doc */ #if CYTHON_PEP489_MULTI_PHASE_INIT 0, /* m_size */ #elif CYTHON_USE_MODULE_STATE sizeof(__pyx_mstate), /* m_size */ #else -1, /* m_size */ #endif __pyx_methods /* m_methods */, #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_moduledef_slots, /* m_slots */ #else NULL, /* m_reload */ #endif #if CYTHON_USE_MODULE_STATE __pyx_m_traverse, /* m_traverse */ __pyx_m_clear, /* m_clear */ NULL /* m_free */ #else NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ #endif }; #ifdef __cplusplus } /* anonymous namespace */ #endif #endif #ifndef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #elif PY_MAJOR_VERSION < 3 #ifdef __cplusplus #define __Pyx_PyMODINIT_FUNC extern "C" void #else #define __Pyx_PyMODINIT_FUNC void #endif #else #ifdef __cplusplus #define __Pyx_PyMODINIT_FUNC extern "C" PyObject * #else #define __Pyx_PyMODINIT_FUNC PyObject * #endif #endif #if PY_MAJOR_VERSION < 3 __Pyx_PyMODINIT_FUNC initmethods(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC initmethods(void) #else __Pyx_PyMODINIT_FUNC PyInit_methods(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC PyInit_methods(void) #if CYTHON_PEP489_MULTI_PHASE_INIT { return PyModuleDef_Init(&__pyx_moduledef); } static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { #if PY_VERSION_HEX >= 0x030700A1 static PY_INT64_T main_interpreter_id = -1; PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); if (main_interpreter_id == -1) { main_interpreter_id = current_id; return (unlikely(current_id == -1)) ? -1 : 0; } else if (unlikely(main_interpreter_id != current_id)) #else static PyInterpreterState *main_interpreter = NULL; PyInterpreterState *current_interpreter = PyThreadState_Get()->interp; if (!main_interpreter) { main_interpreter = current_interpreter; } else if (unlikely(main_interpreter != current_interpreter)) #endif { PyErr_SetString( PyExc_ImportError, "Interpreter change detected - this module can only be loaded into one interpreter per process."); return -1; } return 0; } #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none) #else static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) #endif { PyObject *value = PyObject_GetAttrString(spec, from_name); int result = 0; if (likely(value)) { if (allow_none || value != Py_None) { #if CYTHON_COMPILING_IN_LIMITED_API result = PyModule_AddObject(module, to_name, value); #else result = PyDict_SetItemString(moddict, to_name, value); #endif } Py_DECREF(value); } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); } else { result = -1; } return result; } static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) { PyObject *module = NULL, *moddict, *modname; CYTHON_UNUSED_VAR(def); if (__Pyx_check_single_interpreter()) return NULL; if (__pyx_m) return __Pyx_NewRef(__pyx_m); modname = PyObject_GetAttrString(spec, "name"); if (unlikely(!modname)) goto bad; module = PyModule_NewObject(modname); Py_DECREF(modname); if (unlikely(!module)) goto bad; #if CYTHON_COMPILING_IN_LIMITED_API moddict = module; #else moddict = PyModule_GetDict(module); if (unlikely(!moddict)) goto bad; #endif if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad; return module; bad: Py_XDECREF(module); return NULL; } static CYTHON_SMALL_CODE int __pyx_pymod_exec_methods(PyObject *__pyx_pyinit_module) #endif #endif { int stringtab_initialized = 0; #if CYTHON_USE_MODULE_STATE int pystate_addmodule_run = 0; #endif PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannyDeclarations #if CYTHON_PEP489_MULTI_PHASE_INIT if (__pyx_m) { if (__pyx_m == __pyx_pyinit_module) return 0; PyErr_SetString(PyExc_RuntimeError, "Module 'methods' has already been imported. Re-initialisation is not supported."); return -1; } #elif PY_MAJOR_VERSION >= 3 if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; Py_INCREF(__pyx_m); #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("methods", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #elif CYTHON_USE_MODULE_STATE __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) { int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef); __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "methods" pseudovariable */ if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error) pystate_addmodule_run = 1; } #else __pyx_m = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #endif #endif CYTHON_UNUSED_VAR(__pyx_t_1); __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_cython_runtime = __Pyx_PyImport_AddModuleRef((const char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_methods(void)", 0); if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pxy_PyFrame_Initialize_Offsets __Pxy_PyFrame_Initialize_Offsets(); #endif __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS PyEval_InitThreads(); #endif /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) stringtab_initialized = 1; if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_apischema__deserialization__methods) { if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "apischema.deserialization.methods")) { if (unlikely((PyDict_SetItemString(modules, "apischema.deserialization.methods", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global type/function init code ---*/ (void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_variable_export_code(); (void)__Pyx_modinit_function_export_code(); if (unlikely((__Pyx_modinit_type_init_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error) if (unlikely((__Pyx_modinit_type_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error) (void)__Pyx_modinit_variable_import_code(); (void)__Pyx_modinit_function_import_code(); /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "apischema/deserialization/methods.pyx":3 * cimport cython * from cpython cimport * * from dataclasses import dataclass, field # <<<<<<<<<<<<<< * from typing import ( * AbstractSet, */ __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_dataclass); __Pyx_GIVEREF(__pyx_n_s_dataclass); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_dataclass)) __PYX_ERR(0, 3, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_field); __Pyx_GIVEREF(__pyx_n_s_field); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_field)) __PYX_ERR(0, 3, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_dataclasses, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_dataclass); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dataclass, __pyx_t_2) < 0) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_field); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_field, __pyx_t_2) < 0) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":5 * from dataclasses import dataclass, field * from typing import ( * AbstractSet, # <<<<<<<<<<<<<< * Any, * Callable, */ __pyx_t_3 = PyList_New(11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_AbstractSet); __Pyx_GIVEREF(__pyx_n_s_AbstractSet); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_AbstractSet)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Any); __Pyx_GIVEREF(__pyx_n_s_Any); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_n_s_Any)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Callable); __Pyx_GIVEREF(__pyx_n_s_Callable); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 2, __pyx_n_s_Callable)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Dict); __Pyx_GIVEREF(__pyx_n_s_Dict); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 3, __pyx_n_s_Dict)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_List); __Pyx_GIVEREF(__pyx_n_s_List); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 4, __pyx_n_s_List)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Mapping); __Pyx_GIVEREF(__pyx_n_s_Mapping); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 5, __pyx_n_s_Mapping)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Optional); __Pyx_GIVEREF(__pyx_n_s_Optional); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 6, __pyx_n_s_Optional)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Pattern); __Pyx_GIVEREF(__pyx_n_s_Pattern); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 7, __pyx_n_s_Pattern)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Sequence); __Pyx_GIVEREF(__pyx_n_s_Sequence); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 8, __pyx_n_s_Sequence)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Tuple); __Pyx_GIVEREF(__pyx_n_s_Tuple); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 9, __pyx_n_s_Tuple)) __PYX_ERR(0, 5, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Union); __Pyx_GIVEREF(__pyx_n_s_Union); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 10, __pyx_n_s_Union)) __PYX_ERR(0, 5, __pyx_L1_error); /* "apischema/deserialization/methods.pyx":4 * from cpython cimport * * from dataclasses import dataclass, field * from typing import ( # <<<<<<<<<<<<<< * AbstractSet, * Any, */ __pyx_t_2 = __Pyx_Import(__pyx_n_s_typing, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_AbstractSet); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_AbstractSet, __pyx_t_3) < 0) __PYX_ERR(0, 5, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Any); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Any, __pyx_t_3) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Callable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Callable, __pyx_t_3) < 0) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Dict); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Dict, __pyx_t_3) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_List); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_List, __pyx_t_3) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Mapping); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Mapping, __pyx_t_3) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Optional); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Optional, __pyx_t_3) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Pattern); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Pattern, __pyx_t_3) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Sequence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Sequence, __pyx_t_3) < 0) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Tuple); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Tuple, __pyx_t_3) < 0) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Union); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Union, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":18 * ) * * from apischema.aliases import Aliaser # <<<<<<<<<<<<<< * from apischema.conversions.utils import Converter * from apischema.deserialization.coercion import Coercer */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Aliaser); __Pyx_GIVEREF(__pyx_n_s_Aliaser); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Aliaser)) __PYX_ERR(0, 18, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_apischema_aliases, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Aliaser); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Aliaser, __pyx_t_2) < 0) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":19 * * from apischema.aliases import Aliaser * from apischema.conversions.utils import Converter # <<<<<<<<<<<<<< * from apischema.deserialization.coercion import Coercer * from apischema.json_schema.types import bad_type */ __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_Converter); __Pyx_GIVEREF(__pyx_n_s_Converter); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_Converter)) __PYX_ERR(0, 19, __pyx_L1_error); __pyx_t_2 = __Pyx_Import(__pyx_n_s_apischema_conversions_utils, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Converter); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Converter, __pyx_t_3) < 0) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":20 * from apischema.aliases import Aliaser * from apischema.conversions.utils import Converter * from apischema.deserialization.coercion import Coercer # <<<<<<<<<<<<<< * from apischema.json_schema.types import bad_type * from apischema.types import AnyType, NoneType */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Coercer); __Pyx_GIVEREF(__pyx_n_s_Coercer); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Coercer)) __PYX_ERR(0, 20, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_apischema_deserialization_coerci, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Coercer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Coercer, __pyx_t_2) < 0) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":21 * from apischema.conversions.utils import Converter * from apischema.deserialization.coercion import Coercer * from apischema.json_schema.types import bad_type # <<<<<<<<<<<<<< * from apischema.types import AnyType, NoneType * from apischema.utils import Lazy */ __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_bad_type); __Pyx_GIVEREF(__pyx_n_s_bad_type); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_bad_type)) __PYX_ERR(0, 21, __pyx_L1_error); __pyx_t_2 = __Pyx_Import(__pyx_n_s_apischema_json_schema_types, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_bad_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_bad_type, __pyx_t_3) < 0) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":22 * from apischema.deserialization.coercion import Coercer * from apischema.json_schema.types import bad_type * from apischema.types import AnyType, NoneType # <<<<<<<<<<<<<< * from apischema.utils import Lazy * from apischema.validation.errors import ( */ __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_AnyType); __Pyx_GIVEREF(__pyx_n_s_AnyType); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_AnyType)) __PYX_ERR(0, 22, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_NoneType); __Pyx_GIVEREF(__pyx_n_s_NoneType); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_NoneType)) __PYX_ERR(0, 22, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_apischema_types, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_AnyType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_AnyType, __pyx_t_2) < 0) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_NoneType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NoneType, __pyx_t_2) < 0) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":23 * from apischema.json_schema.types import bad_type * from apischema.types import AnyType, NoneType * from apischema.utils import Lazy # <<<<<<<<<<<<<< * from apischema.validation.errors import ( * ErrorKey, */ __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_Lazy); __Pyx_GIVEREF(__pyx_n_s_Lazy); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_Lazy)) __PYX_ERR(0, 23, __pyx_L1_error); __pyx_t_2 = __Pyx_Import(__pyx_n_s_apischema_utils, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Lazy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Lazy, __pyx_t_3) < 0) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":25 * from apischema.utils import Lazy * from apischema.validation.errors import ( * ErrorKey, # <<<<<<<<<<<<<< * ErrorMsg, * ValidationError, */ __pyx_t_2 = PyList_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_ErrorKey); __Pyx_GIVEREF(__pyx_n_s_ErrorKey); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_ErrorKey)) __PYX_ERR(0, 25, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_ErrorMsg); __Pyx_GIVEREF(__pyx_n_s_ErrorMsg); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_ErrorMsg)) __PYX_ERR(0, 25, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_ValidationError); __Pyx_GIVEREF(__pyx_n_s_ValidationError); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_ValidationError)) __PYX_ERR(0, 25, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_merge_errors); __Pyx_GIVEREF(__pyx_n_s_merge_errors); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_s_merge_errors)) __PYX_ERR(0, 25, __pyx_L1_error); /* "apischema/deserialization/methods.pyx":24 * from apischema.types import AnyType, NoneType * from apischema.utils import Lazy * from apischema.validation.errors import ( # <<<<<<<<<<<<<< * ErrorKey, * ErrorMsg, */ __pyx_t_3 = __Pyx_Import(__pyx_n_s_apischema_validation_errors, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_ErrorKey); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorKey, __pyx_t_2) < 0) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_ErrorMsg); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorMsg, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_ValidationError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ValidationError, __pyx_t_2) < 0) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_merge_errors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_merge_errors, __pyx_t_2) < 0) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":30 * merge_errors, * ) * from apischema.validation.mock import ValidatorMock # <<<<<<<<<<<<<< * from apischema.validation.validators import Validator, validate * */ __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_ValidatorMock); __Pyx_GIVEREF(__pyx_n_s_ValidatorMock); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_ValidatorMock)) __PYX_ERR(0, 30, __pyx_L1_error); __pyx_t_2 = __Pyx_Import(__pyx_n_s_apischema_validation_mock, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_ValidatorMock); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ValidatorMock, __pyx_t_3) < 0) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "apischema/deserialization/methods.pyx":31 * ) * from apischema.validation.mock import ValidatorMock * from apischema.validation.validators import Validator, validate # <<<<<<<<<<<<<< * * */ __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Validator); __Pyx_GIVEREF(__pyx_n_s_Validator); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Validator)) __PYX_ERR(0, 31, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_validate); __Pyx_GIVEREF(__pyx_n_s_validate); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_validate)) __PYX_ERR(0, 31, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_apischema_validation_validators, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Validator); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Validator, __pyx_t_2) < 0) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_validate); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_validate, __pyx_t_2) < 0) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10Constraint_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Constraint___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__48)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Constraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constraint, (type(self), 0x440e33a, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10Constraint_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Constraint___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__50)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Constraint); /* "apischema/deserialization/methods.pyx":44 * cdef readonly long minimum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinimumConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17MinimumConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinimumConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__52)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17MinimumConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinimumConstraint___reduce_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinimumConstraint, (type(self), 0x14d2112, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinimumConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17MinimumConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinimumConstraint___setstate_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__54)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinimumConstraint); /* "apischema/deserialization/methods.pyx":55 * cdef readonly long maximum * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaximumConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17MaximumConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaximumConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17MaximumConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaximumConstraint___reduce_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__56)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaximumConstraint, (type(self), 0x4c9e1f1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaximumConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17MaximumConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaximumConstraint___setstate_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaximumConstraint); /* "apischema/deserialization/methods.pyx":66 * cdef readonly long exc_min * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMinimumConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExclusiveMinimumConstraint_valid, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__58)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExclusiveMinimumConstraint___red, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMinimumConstraint, (type(self), 0xd7c880b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMinimumConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMinimumConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExclusiveMinimumConstraint___set, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__60)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMinimumConstraint); /* "apischema/deserialization/methods.pyx":77 * cdef readonly long exc_max * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return ExclusiveMaximumConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExclusiveMaximumConstraint_valid, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExclusiveMaximumConstraint___red, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__62)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ExclusiveMaximumConstraint, (type(self), 0xc42ab7d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ExclusiveMaximumConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_26ExclusiveMaximumConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExclusiveMaximumConstraint___set, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__63)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ExclusiveMaximumConstraint); /* "apischema/deserialization/methods.pyx":88 * cdef readonly long mult_of * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MultipleOfConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20MultipleOfConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MultipleOfConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__64)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20MultipleOfConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MultipleOfConstraint___reduce_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__65)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MultipleOfConstraint, (type(self), 0xb71a7f6, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MultipleOfConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20MultipleOfConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MultipleOfConstraint___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__66)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MultipleOfConstraint); /* "apischema/deserialization/methods.pyx":99 * cdef readonly long min_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinLengthConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19MinLengthConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinLengthConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__67)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19MinLengthConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinLengthConstraint___reduce_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__68)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinLengthConstraint, (type(self), 0xd9fa45e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinLengthConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19MinLengthConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinLengthConstraint___setstate_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__69)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinLengthConstraint); /* "apischema/deserialization/methods.pyx":110 * cdef readonly long max_len * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxLengthConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19MaxLengthConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxLengthConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__70)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19MaxLengthConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxLengthConstraint___reduce_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__71)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxLengthConstraint, (type(self), 0xd0a67b9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxLengthConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19MaxLengthConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxLengthConstraint___setstate_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__72)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxLengthConstraint); /* "apischema/deserialization/methods.pyx":121 * cdef readonly object pattern * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return PatternConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17PatternConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PatternConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__73)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17PatternConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PatternConstraint___reduce_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__74)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternConstraint, (type(self), 0x3e9c5ea, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17PatternConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PatternConstraint___setstate_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__75)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_PatternConstraint); /* "apischema/deserialization/methods.pyx":132 * cdef readonly long min_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinItemsConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18MinItemsConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinItemsConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__76)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18MinItemsConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinItemsConstraint___reduce_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__77)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinItemsConstraint, (type(self), 0x2f68ba5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinItemsConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18MinItemsConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinItemsConstraint___setstate_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinItemsConstraint); /* "apischema/deserialization/methods.pyx":143 * cdef readonly long max_items * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxItemsConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18MaxItemsConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxItemsConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__79)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18MaxItemsConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxItemsConstraint___reduce_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__80)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxItemsConstraint, (type(self), 0x77412f8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxItemsConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18MaxItemsConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxItemsConstraint___setstate_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__81)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxItemsConstraint); /* "apischema/deserialization/methods.pyx":154 * cdef readonly bint unique * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return UniqueItemsConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21UniqueItemsConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UniqueItemsConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__82)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21UniqueItemsConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UniqueItemsConstraint___reduce_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__83)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_UniqueItemsConstraint, (type(self), 0xfeeb80b, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UniqueItemsConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21UniqueItemsConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UniqueItemsConstraint___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__84)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UniqueItemsConstraint); /* "apischema/deserialization/methods.pyx":166 * cdef readonly long min_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MinPropertiesConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23MinPropertiesConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinPropertiesConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23MinPropertiesConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinPropertiesConstraint___reduce, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__86)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MinPropertiesConstraint, (type(self), 0x3931fcc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MinPropertiesConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23MinPropertiesConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MinPropertiesConstraint___setsta, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MinPropertiesConstraint); /* "apischema/deserialization/methods.pyx":177 * cdef readonly long max_properties * * cpdef validate(self, object data): # <<<<<<<<<<<<<< * return MaxPropertiesConstraint_validate(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_1validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxPropertiesConstraint_validate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint, __pyx_n_s_validate, __pyx_t_3) < 0) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxPropertiesConstraint___reduce, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__89)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MaxPropertiesConstraint, (type(self), 0x187e4a5, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MaxPropertiesConstraint__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23MaxPropertiesConstraint_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MaxPropertiesConstraint___setsta, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__90)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MaxPropertiesConstraint); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21DeserializationMethod_1__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DeserializationMethod___reduce_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_DeserializationMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DeserializationMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21DeserializationMethod_3__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DeserializationMethod___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__92)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DeserializationMethod); /* "apischema/deserialization/methods.pyx":192 * cdef readonly object method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return RecMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9RecMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RecMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__93)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RecMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RecMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9RecMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RecMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__94)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RecMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RecMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_RecMethod, (type(self), 0x412ebe0, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RecMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9RecMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RecMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__95)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RecMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RecMethod); /* "apischema/deserialization/methods.pyx":205 * cdef readonly object aliaser * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ValidatorMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15ValidatorMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ValidatorMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__96)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15ValidatorMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ValidatorMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__97)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ValidatorMethod, (type(self), 0x05cb144, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ValidatorMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15ValidatorMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ValidatorMethod___setstate_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__98)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ValidatorMethod); /* "apischema/deserialization/methods.pyx":219 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return CoercerMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13CoercerMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CoercerMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__99)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13CoercerMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CoercerMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__100)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_CoercerMethod, (type(self), 0x10936af, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_CoercerMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13CoercerMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CoercerMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__101)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_CoercerMethod); /* "apischema/deserialization/methods.pyx":232 * cdef readonly DeserializationMethod fallback * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TypeCheckMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15TypeCheckMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TypeCheckMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__102)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15TypeCheckMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TypeCheckMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__103)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_TypeCheckMethod, (type(self), 0xec01d0d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TypeCheckMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15TypeCheckMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TypeCheckMethod___setstate_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__104)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_TypeCheckMethod); /* "apischema/deserialization/methods.pyx":243 * cdef readonly dict constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return AnyMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9AnyMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AnyMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__105)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9AnyMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AnyMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__106)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_AnyMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AnyMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9AnyMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AnyMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__107)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_AnyMethod); /* "apischema/deserialization/methods.pyx":254 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListCheckOnlyMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListCheckOnlyMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__108)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListCheckOnlyMethod___reduce_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__109)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListCheckOnlyMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListCheckOnlyMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19ListCheckOnlyMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListCheckOnlyMethod___setstate_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__110)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ListCheckOnlyMethod); /* "apischema/deserialization/methods.pyx":266 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ListMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10ListMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__111)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ListMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10ListMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__112)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ListMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ListMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ListMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10ListMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__113)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ListMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ListMethod); /* "apischema/deserialization/methods.pyx":278 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SetMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9SetMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SetMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__114)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SetMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SetMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9SetMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SetMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__115)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SetMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SetMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_SetMethod, (type(self), 0x20ce6dc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SetMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9SetMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SetMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__116)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SetMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SetMethod); /* "apischema/deserialization/methods.pyx":289 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FrozenSetMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15FrozenSetMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FrozenSetMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__117)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15FrozenSetMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FrozenSetMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__118)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_FrozenSetMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FrozenSetMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15FrozenSetMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FrozenSetMethod___setstate_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__119)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FrozenSetMethod); /* "apischema/deserialization/methods.pyx":299 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return VariadicTupleMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19VariadicTupleMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VariadicTupleMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__120)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19VariadicTupleMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VariadicTupleMethod___reduce_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__121)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_VariadicTupleMethod, (type(self), 0xb3817b2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_VariadicTupleMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19VariadicTupleMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VariadicTupleMethod___setstate_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__122)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_VariadicTupleMethod); /* "apischema/deserialization/methods.pyx":312 * cdef readonly tuple types * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return LiteralMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13LiteralMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_LiteralMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__123)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13LiteralMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_LiteralMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__124)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_LiteralMethod, (type(self), 0x82e9a7c, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_LiteralMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13LiteralMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_LiteralMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__125)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_LiteralMethod); /* "apischema/deserialization/methods.pyx":327 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingCheckOnly_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_16MappingCheckOnly_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MappingCheckOnly_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__126)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_16MappingCheckOnly_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MappingCheckOnly___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__127)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingCheckOnly, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingCheckOnly__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_16MappingCheckOnly_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MappingCheckOnly___setstate_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__128)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MappingCheckOnly); /* "apischema/deserialization/methods.pyx":341 * cdef readonly DeserializationMethod value_method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return MappingMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13MappingMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MappingMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__129)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13MappingMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MappingMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__130)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_MappingMethod, (type(self), 0x1bb7c22, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_MappingMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13MappingMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MappingMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__131)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_MappingMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_5Field_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Field___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__132)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Field, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Field); /* "(tree fragment)":16 * else: * return __pyx_unpickle_Field, (type(self), 0x8d79089, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Field__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_5Field_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Field___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__133)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Field, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Field); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14FlattenedField_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FlattenedField___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__134)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField); /* "(tree fragment)":16 * else: * return __pyx_unpickle_FlattenedField, (type(self), 0xd032e13, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FlattenedField__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14FlattenedField_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FlattenedField___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__135)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FlattenedField); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12PatternField_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PatternField___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__136)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternField, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_PatternField); /* "(tree fragment)":16 * else: * return __pyx_unpickle_PatternField, (type(self), 0x385fee3, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_PatternField__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12PatternField_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PatternField___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__137)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_PatternField, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_PatternField); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15AdditionalField_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AdditionalField___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__138)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField); /* "(tree fragment)":16 * else: * return __pyx_unpickle_AdditionalField, (type(self), 0x7fc4b55, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_AdditionalField__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15AdditionalField_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AdditionalField___setstate_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__139)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_AdditionalField); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11Constructor_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Constructor___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__140)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Constructor); /* "(tree fragment)":16 * else: * return __pyx_unpickle_Constructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Constructor__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11Constructor_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Constructor___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__141)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Constructor, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Constructor); /* "apischema/deserialization/methods.pyx":409 * cdef class NoConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return NoConstructor_construct(self, fields) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13NoConstructor_1construct, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NoConstructor_construct, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__143)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor, __pyx_n_s_construct, __pyx_t_3) < 0) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13NoConstructor_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NoConstructor___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__144)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor); /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoConstructor__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13NoConstructor_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NoConstructor___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__145)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_NoConstructor); /* "apischema/deserialization/methods.pyx":418 * cdef class RawConstructor(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructor_construct(self, fields) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14RawConstructor_1construct, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RawConstructor_construct, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__146)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor, __pyx_n_s_construct, __pyx_t_3) < 0) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14RawConstructor_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RawConstructor___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__147)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor); /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructor, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructor__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14RawConstructor_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RawConstructor___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__148)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructor); /* "apischema/deserialization/methods.pyx":427 * cdef class RawConstructorCopy(Constructor): * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return RawConstructorCopy_construct(self, fields) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18RawConstructorCopy_1construct, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RawConstructorCopy_construct, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__149)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy, __pyx_n_s_construct, __pyx_t_3) < 0) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18RawConstructorCopy_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RawConstructorCopy___reduce_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__150)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy); /* "(tree fragment)":16 * else: * return __pyx_unpickle_RawConstructorCopy, (type(self), 0x67ee66e, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_RawConstructorCopy__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18RawConstructorCopy_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RawConstructorCopy___setstate_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__151)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_RawConstructorCopy); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12DefaultField_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DefaultField___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__152)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DefaultField, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DefaultField); /* "(tree fragment)":16 * else: * return __pyx_unpickle_DefaultField, (type(self), 0x25bbacb, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DefaultField__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12DefaultField_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DefaultField___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__153)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DefaultField, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DefaultField); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12FactoryField_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FactoryField___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__154)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FactoryField, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FactoryField); /* "(tree fragment)":16 * else: * return __pyx_unpickle_FactoryField, (type(self), 0x9430622, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FactoryField__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12FactoryField_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FactoryField___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__155)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FactoryField, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FactoryField); /* "apischema/deserialization/methods.pyx":455 * cdef readonly tuple factory_fields * * cpdef construct(self, dict fields): # <<<<<<<<<<<<<< * return FieldsConstructor_construct(self, fields) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17FieldsConstructor_1construct, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FieldsConstructor_construct, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__156)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor, __pyx_n_s_construct, __pyx_t_3) < 0) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17FieldsConstructor_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FieldsConstructor___reduce_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__157)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor); /* "(tree fragment)":16 * else: * return __pyx_unpickle_FieldsConstructor, (type(self), 0x53da5a9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FieldsConstructor__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17FieldsConstructor_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FieldsConstructor___setstate_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__158)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FieldsConstructor); /* "apischema/deserialization/methods.pyx":473 * cdef readonly str unexpected * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SimpleObjectMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18SimpleObjectMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SimpleObjectMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__159)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18SimpleObjectMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SimpleObjectMethod___reduce_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__160)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_SimpleObjectMethod, (type(self), 0xa2095a2, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SimpleObjectMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18SimpleObjectMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SimpleObjectMethod___setstate_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__161)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SimpleObjectMethod); /* "apischema/deserialization/methods.pyx":503 * cdef readonly bint aggregate_fields * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ObjectMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12ObjectMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__162)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12ObjectMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__163)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ObjectMethod, (type(self), 0xc6140ed, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ObjectMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_12ObjectMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__164)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ObjectMethod); /* "apischema/deserialization/methods.pyx":531 * cdef class NoneMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return NoneMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10NoneMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NoneMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__165)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10NoneMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NoneMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__166)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_NoneMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_NoneMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10NoneMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NoneMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__167)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_NoneMethod); /* "apischema/deserialization/methods.pyx":539 * cdef class IntMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return IntMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9IntMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IntMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__168)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_IntMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9IntMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IntMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__169)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_IntMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_IntMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_IntMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9IntMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IntMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__170)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_IntMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_IntMethod); /* "apischema/deserialization/methods.pyx":547 * cdef class FloatMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return FloatMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11FloatMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FloatMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__171)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11FloatMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FloatMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__172)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_FloatMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_FloatMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11FloatMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FloatMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__173)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_FloatMethod); /* "apischema/deserialization/methods.pyx":555 * cdef class StrMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return StrMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9StrMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_StrMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__174)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_StrMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9StrMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_StrMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__175)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_StrMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_StrMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_StrMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9StrMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_StrMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__176)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_StrMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_StrMethod); /* "apischema/deserialization/methods.pyx":563 * cdef class BoolMethod(DeserializationMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return BoolMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10BoolMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BoolMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__177)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10BoolMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BoolMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__178)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_BoolMethod, (type(self), 0xdda983d, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_BoolMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_10BoolMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BoolMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__179)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_BoolMethod); /* "apischema/deserialization/methods.pyx":572 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedIntMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedIntMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedIntMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__180)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedIntMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedIntMethod___reduce_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__181)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedIntMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedIntMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedIntMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedIntMethod___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__182)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedIntMethod); /* "apischema/deserialization/methods.pyx":582 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedFloatMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedFloatMethod_deseriali, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__183)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedFloatMethod___reduce, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__184)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedFloatMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedFloatMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_22ConstrainedFloatMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedFloatMethod___setstat, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__185)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedFloatMethod); /* "apischema/deserialization/methods.pyx":592 * cdef readonly tuple constraints * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConstrainedStrMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedStrMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedStrMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__186)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedStrMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedStrMethod___reduce_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__187)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConstrainedStrMethod, (type(self), 0x25cf511, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConstrainedStrMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_20ConstrainedStrMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConstrainedStrMethod___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__188)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConstrainedStrMethod); /* "apischema/deserialization/methods.pyx":603 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return SubprimitiveMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18SubprimitiveMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SubprimitiveMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__189)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18SubprimitiveMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SubprimitiveMethod___reduce_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__190)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_SubprimitiveMethod, (type(self), 0x83f4d57, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_SubprimitiveMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_18SubprimitiveMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_SubprimitiveMethod___setstate_cy, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__191)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_SubprimitiveMethod); /* "apischema/deserialization/methods.pyx":617 * cdef readonly tuple elt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return TupleMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11TupleMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TupleMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__192)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11TupleMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TupleMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__193)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_TupleMethod, (type(self), 0x93436a4, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_TupleMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11TupleMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TupleMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__194)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_TupleMethod); /* "apischema/deserialization/methods.pyx":631 * cdef readonly object coercer * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return OptionalMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14OptionalMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OptionalMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__195)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14OptionalMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OptionalMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__196)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_OptionalMethod, (type(self), 0xe39a796, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_OptionalMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_14OptionalMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OptionalMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__197)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_OptionalMethod); /* "apischema/deserialization/methods.pyx":642 * cdef readonly dict method_by_cls * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionByTypeMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17UnionByTypeMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UnionByTypeMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__198)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17UnionByTypeMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UnionByTypeMethod___reduce_cytho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__199)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionByTypeMethod, (type(self), 0x20dc369, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionByTypeMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17UnionByTypeMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UnionByTypeMethod___setstate_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__200)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UnionByTypeMethod); /* "apischema/deserialization/methods.pyx":652 * cdef readonly tuple alt_methods * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return UnionMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11UnionMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UnionMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__201)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11UnionMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UnionMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__202)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_UnionMethod, (type(self), 0x5692acc, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_UnionMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11UnionMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_UnionMethod___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__203)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_UnionMethod); /* "apischema/deserialization/methods.pyx":663 * cdef readonly DeserializationMethod method * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_16ConversionMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__204)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_16ConversionMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionMethod___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__205)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_16ConversionMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionMethod___setstate_cyth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__206)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionMethod); /* "apischema/deserialization/methods.pyx":673 * cdef class ConversionWithValueErrorMethod(ConversionMethod): * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionWithValueErrorMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionWithValueErrorMethod_d, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__207)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionWithValueErrorMethod_2, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__208)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionWithValueErrorMethod, (type(self), 0x14e1717, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionWithValueErrorMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_30ConversionWithValueErrorMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionWithValueErrorMethod_3, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__209)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionWithValueErrorMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21ConversionAlternative_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionAlternative___reduce_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__210)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionAlternative, (type(self), 0x95bc8b8, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionAlternative__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21ConversionAlternative_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionAlternative___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__211)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionAlternative); /* "apischema/deserialization/methods.pyx":694 * cdef readonly tuple alternatives * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return ConversionUnionMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21ConversionUnionMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionUnionMethod_deserializ, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__212)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21ConversionUnionMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionUnionMethod___reduce_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__213)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_ConversionUnionMethod, (type(self), 0x87f53f9, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_ConversionUnionMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21ConversionUnionMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ConversionUnionMethod___setstate, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__214)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_ConversionUnionMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13Discriminated_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Discriminated___reduce_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__215)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Discriminated, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Discriminated); /* "(tree fragment)":16 * else: * return __pyx_unpickle_Discriminated, (type(self), 0xc52cfd1, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_Discriminated__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13Discriminated_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Discriminated___setstate_cython, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__216)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_Discriminated, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_Discriminated); /* "apischema/deserialization/methods.pyx":715 * cdef readonly object error * * cpdef deserialize(self, object data): # <<<<<<<<<<<<<< * return DiscriminatorMethod_deserialize(self, data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19DiscriminatorMethod_1deserialize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DiscriminatorMethod_deserialize, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__217)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod, __pyx_n_s_deserialize, __pyx_t_3) < 0) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod); /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * cdef tuple state * cdef object _dict */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19DiscriminatorMethod_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DiscriminatorMethod___reduce_cyt, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__218)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod, __pyx_n_s_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod); /* "(tree fragment)":16 * else: * return __pyx_unpickle_DiscriminatorMethod, (type(self), 0x4930cad, state) * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * __pyx_unpickle_DiscriminatorMethod__set_state(self, __pyx_state) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19DiscriminatorMethod_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DiscriminatorMethod___setstate_c, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__219)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod, __pyx_n_s_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(2, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; PyType_Modified(__pyx_ptype_9apischema_15deserialization_7methods_DiscriminatorMethod); /* "apischema/deserialization/methods.pyx":725 * self._dispatch = 31 * * cpdef inline to_hashable(object data): # <<<<<<<<<<<<<< * if isinstance(data, list): * return tuple(map(to_hashable, data)) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_1to_hashable, 0, __pyx_n_s_to_hashable, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__221)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_to_hashable, __pyx_t_3) < 0) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":734 * return data * * cpdef inline format_error(object err, object data): # <<<<<<<<<<<<<< * return err if isinstance(err, str) else err(data) * */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_3format_error, 0, __pyx_n_s_format_error, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__223)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_format_error, __pyx_t_3) < 0) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":737 * return err if isinstance(err, str) else err(data) * * cpdef inline validate_constraints(object data, tuple constraints, object children_errors): # <<<<<<<<<<<<<< * for i in range(len(constraints)): * constraint:Constraint= constraints[i] */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_5validate_constraints, 0, __pyx_n_s_validate_constraints, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__225)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_validate_constraints, __pyx_t_3) < 0) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":751 * return data * * cpdef inline set_child_error(object errors, object key, object error): # <<<<<<<<<<<<<< * if errors is None: * return {key: error} */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_7set_child_error, 0, __pyx_n_s_set_child_error, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__227)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_child_error, __pyx_t_3) < 0) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":758 * return errors * * cpdef inline extend_errors(object errors, object messages): # <<<<<<<<<<<<<< * if errors is None: * return list(messages) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_9extend_errors, 0, __pyx_n_s_extend_errors, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__229)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_extend_errors, __pyx_t_3) < 0) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":765 * return errors * * cpdef inline update_children_errors(object errors, dict children): # <<<<<<<<<<<<<< * if errors is None: * return dict(children) */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_11update_children_errors, 0, __pyx_n_s_update_children_errors, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__231)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_update_children_errors, __pyx_t_3) < 0) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_Constraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_13__pyx_unpickle_Constraint, 0, __pyx_n_s_pyx_unpickle_Constraint, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__233)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Constraint, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_Constraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Constraint__set_state(Constraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_15__pyx_unpickle_MinimumConstraint, 0, __pyx_n_s_pyx_unpickle_MinimumConstraint, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__234)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MinimumConstraint, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_MaximumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_17__pyx_unpickle_MaximumConstraint, 0, __pyx_n_s_pyx_unpickle_MaximumConstraint, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__235)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MaximumConstraint, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_MaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaximumConstraint__set_state(MaximumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.maximum = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_19__pyx_unpickle_ExclusiveMinimumConstraint, 0, __pyx_n_s_pyx_unpickle_ExclusiveMinimumC, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__236)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ExclusiveMinimumC, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ExclusiveMaximumConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_21__pyx_unpickle_ExclusiveMaximumConstraint, 0, __pyx_n_s_pyx_unpickle_ExclusiveMaximumC, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__237)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ExclusiveMaximumC, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ExclusiveMaximumConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ExclusiveMaximumConstraint__set_state(ExclusiveMaximumConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.exc_max = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_23__pyx_unpickle_MultipleOfConstraint, 0, __pyx_n_s_pyx_unpickle_MultipleOfConstra, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__238)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MultipleOfConstra, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_MinLengthConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_25__pyx_unpickle_MinLengthConstraint, 0, __pyx_n_s_pyx_unpickle_MinLengthConstrai, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__239)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MinLengthConstrai, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_MinLengthConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinLengthConstraint__set_state(MinLengthConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_len = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_27__pyx_unpickle_MaxLengthConstraint, 0, __pyx_n_s_pyx_unpickle_MaxLengthConstrai, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__240)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MaxLengthConstrai, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_PatternConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_29__pyx_unpickle_PatternConstraint, 0, __pyx_n_s_pyx_unpickle_PatternConstraint, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__241)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_PatternConstraint, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_PatternConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_PatternConstraint__set_state(PatternConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.pattern = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_31__pyx_unpickle_MinItemsConstraint, 0, __pyx_n_s_pyx_unpickle_MinItemsConstrain, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__242)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MinItemsConstrain, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_MaxItemsConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_33__pyx_unpickle_MaxItemsConstraint, 0, __pyx_n_s_pyx_unpickle_MaxItemsConstrain, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__243)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MaxItemsConstrain, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_MaxItemsConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MaxItemsConstraint__set_state(MaxItemsConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.max_items = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_35__pyx_unpickle_UniqueItemsConstraint, 0, __pyx_n_s_pyx_unpickle_UniqueItemsConstr, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__244)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_UniqueItemsConstr, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_MinPropertiesConstraint(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_37__pyx_unpickle_MinPropertiesConstraint, 0, __pyx_n_s_pyx_unpickle_MinPropertiesCons, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__245)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MinPropertiesCons, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_MinPropertiesConstraint__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MinPropertiesConstraint__set_state(MinPropertiesConstraint __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.error = __pyx_state[1]; __pyx_result.min_properties = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_39__pyx_unpickle_MaxPropertiesConstraint, 0, __pyx_n_s_pyx_unpickle_MaxPropertiesCons, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__246)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MaxPropertiesCons, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_DeserializationMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_41__pyx_unpickle_DeserializationMethod, 0, __pyx_n_s_pyx_unpickle_DeserializationMe, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__247)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_DeserializationMe, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_DeserializationMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DeserializationMethod__set_state(DeserializationMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_43__pyx_unpickle_RecMethod, 0, __pyx_n_s_pyx_unpickle_RecMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__248)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_RecMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ValidatorMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_45__pyx_unpickle_ValidatorMethod, 0, __pyx_n_s_pyx_unpickle_ValidatorMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__249)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ValidatorMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ValidatorMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ValidatorMethod__set_state(ValidatorMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.aliaser = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.validators = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_47__pyx_unpickle_CoercerMethod, 0, __pyx_n_s_pyx_unpickle_CoercerMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__250)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_CoercerMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_TypeCheckMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_49__pyx_unpickle_TypeCheckMethod, 0, __pyx_n_s_pyx_unpickle_TypeCheckMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__251)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_TypeCheckMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_TypeCheckMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_TypeCheckMethod__set_state(TypeCheckMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.expected = __pyx_state[1]; __pyx_result.fallback = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_51__pyx_unpickle_AnyMethod, 0, __pyx_n_s_pyx_unpickle_AnyMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__252)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_AnyMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ListCheckOnlyMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_53__pyx_unpickle_ListCheckOnlyMethod, 0, __pyx_n_s_pyx_unpickle_ListCheckOnlyMeth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__253)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ListCheckOnlyMeth, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ListCheckOnlyMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ListCheckOnlyMethod__set_state(ListCheckOnlyMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_55__pyx_unpickle_ListMethod, 0, __pyx_n_s_pyx_unpickle_ListMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__254)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ListMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_SetMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_57__pyx_unpickle_SetMethod, 0, __pyx_n_s_pyx_unpickle_SetMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__255)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_SetMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_SetMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_SetMethod__set_state(SetMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.value_method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_59__pyx_unpickle_FrozenSetMethod, 0, __pyx_n_s_pyx_unpickle_FrozenSetMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__256)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_FrozenSetMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_VariadicTupleMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_61__pyx_unpickle_VariadicTupleMethod, 0, __pyx_n_s_pyx_unpickle_VariadicTupleMeth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__257)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VariadicTupleMeth, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_VariadicTupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_VariadicTupleMethod__set_state(VariadicTupleMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_63__pyx_unpickle_LiteralMethod, 0, __pyx_n_s_pyx_unpickle_LiteralMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__258)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_LiteralMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_MappingCheckOnly(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_65__pyx_unpickle_MappingCheckOnly, 0, __pyx_n_s_pyx_unpickle_MappingCheckOnly, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__259)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MappingCheckOnly, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_MappingCheckOnly__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_MappingCheckOnly__set_state(MappingCheckOnly __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.key_method = __pyx_state[2]; __pyx_result.value_method = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_67__pyx_unpickle_MappingMethod, 0, __pyx_n_s_pyx_unpickle_MappingMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__260)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_MappingMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_Field(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_69__pyx_unpickle_Field, 0, __pyx_n_s_pyx_unpickle_Field, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__261)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Field, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_Field__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Field__set_state(Field __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.alias = __pyx_state[0]; __pyx_result.fall_back_on_default = __pyx_state[1]; __pyx_result.method = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.required = __pyx_state[4]; __pyx_result.required_by = __pyx_state[5] * if len(__pyx_state) > 6 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_71__pyx_unpickle_FlattenedField, 0, __pyx_n_s_pyx_unpickle_FlattenedField, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__262)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_FlattenedField, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_PatternField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_73__pyx_unpickle_PatternField, 0, __pyx_n_s_pyx_unpickle_PatternField, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__263)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_PatternField, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_PatternField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_PatternField__set_state(PatternField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.fall_back_on_default = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.name = __pyx_state[2]; __pyx_result.pattern = __pyx_state[3] * if len(__pyx_state) > 4 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_75__pyx_unpickle_AdditionalField, 0, __pyx_n_s_pyx_unpickle_AdditionalField, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__264)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_AdditionalField, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_Constructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_77__pyx_unpickle_Constructor, 0, __pyx_n_s_pyx_unpickle_Constructor, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__265)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Constructor, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_Constructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Constructor__set_state(Constructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_79__pyx_unpickle_NoConstructor, 0, __pyx_n_s_pyx_unpickle_NoConstructor, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__266)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_NoConstructor, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_RawConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_81__pyx_unpickle_RawConstructor, 0, __pyx_n_s_pyx_unpickle_RawConstructor, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__267)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_RawConstructor, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_RawConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_RawConstructor__set_state(RawConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_83__pyx_unpickle_RawConstructorCopy, 0, __pyx_n_s_pyx_unpickle_RawConstructorCop, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__268)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_RawConstructorCop, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_DefaultField(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_85__pyx_unpickle_DefaultField, 0, __pyx_n_s_pyx_unpickle_DefaultField, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__269)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_DefaultField, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_DefaultField__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_DefaultField__set_state(DefaultField __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.default_value = __pyx_state[0]; __pyx_result.name = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_87__pyx_unpickle_FactoryField, 0, __pyx_n_s_pyx_unpickle_FactoryField, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__270)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_FactoryField, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_FieldsConstructor(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_89__pyx_unpickle_FieldsConstructor, 0, __pyx_n_s_pyx_unpickle_FieldsConstructor, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__271)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_FieldsConstructor, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_FieldsConstructor__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_FieldsConstructor__set_state(FieldsConstructor __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.cls = __pyx_state[1]; __pyx_result.default_fields = __pyx_state[2]; __pyx_result.factory_fields = __pyx_state[3]; __pyx_result.nb_fields = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_91__pyx_unpickle_SimpleObjectMethod, 0, __pyx_n_s_pyx_unpickle_SimpleObjectMetho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__272)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_SimpleObjectMetho, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ObjectMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_93__pyx_unpickle_ObjectMethod, 0, __pyx_n_s_pyx_unpickle_ObjectMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__273)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ObjectMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ObjectMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ObjectMethod__set_state(ObjectMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.additional_field = __pyx_state[1]; __pyx_result.additional_properties = __pyx_state[2]; __pyx_result.aggregate_fields = __pyx_state[3]; __pyx_result.aliaser = __pyx_state[4]; __pyx_result.all_aliases = __pyx_state[5]; __pyx_result.constraints = __pyx_state[6]; __pyx_result.constructor = __pyx_state[7]; __pyx_result.fields = __pyx_state[8]; __pyx_result.flattened_fields = __pyx_state[9]; __pyx_result.init_defaults = __pyx_state[10]; __pyx_result.missing = __pyx_state[11]; __pyx_result.pattern_fields = __pyx_state[12]; __pyx_result.post_init_modified = __pyx_state[13]; __pyx_result.typed_dict = __pyx_state[14]; __pyx_result.unexpected = __pyx_state[15]; __pyx_result.validators = __pyx_state[16] * if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_95__pyx_unpickle_NoneMethod, 0, __pyx_n_s_pyx_unpickle_NoneMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__274)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_NoneMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_IntMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_97__pyx_unpickle_IntMethod, 0, __pyx_n_s_pyx_unpickle_IntMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__275)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_IntMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_IntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_IntMethod__set_state(IntMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_99__pyx_unpickle_FloatMethod, 0, __pyx_n_s_pyx_unpickle_FloatMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__276)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_FloatMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_StrMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_101__pyx_unpickle_StrMethod, 0, __pyx_n_s_pyx_unpickle_StrMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__277)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_StrMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_StrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_StrMethod__set_state(StrMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0] * if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_103__pyx_unpickle_BoolMethod, 0, __pyx_n_s_pyx_unpickle_BoolMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__278)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_BoolMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedIntMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_105__pyx_unpickle_ConstrainedIntMethod, 0, __pyx_n_s_pyx_unpickle_ConstrainedIntMet, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__279)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConstrainedIntMet, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedIntMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedIntMethod__set_state(ConstrainedIntMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_107__pyx_unpickle_ConstrainedFloatMethod, 0, __pyx_n_s_pyx_unpickle_ConstrainedFloatM, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__280)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConstrainedFloatM, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ConstrainedStrMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_109__pyx_unpickle_ConstrainedStrMethod, 0, __pyx_n_s_pyx_unpickle_ConstrainedStrMet, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__281)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConstrainedStrMet, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ConstrainedStrMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConstrainedStrMethod__set_state(ConstrainedStrMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_111__pyx_unpickle_SubprimitiveMethod, 0, __pyx_n_s_pyx_unpickle_SubprimitiveMetho, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__282)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_SubprimitiveMetho, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_TupleMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_113__pyx_unpickle_TupleMethod, 0, __pyx_n_s_pyx_unpickle_TupleMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__283)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_TupleMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_TupleMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_TupleMethod__set_state(TupleMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.constraints = __pyx_state[1]; __pyx_result.elt_methods = __pyx_state[2]; __pyx_result.max_len_error = __pyx_state[3]; __pyx_result.min_len_error = __pyx_state[4] * if len(__pyx_state) > 5 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_115__pyx_unpickle_OptionalMethod, 0, __pyx_n_s_pyx_unpickle_OptionalMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__284)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_OptionalMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_UnionByTypeMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_117__pyx_unpickle_UnionByTypeMethod, 0, __pyx_n_s_pyx_unpickle_UnionByTypeMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__285)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_UnionByTypeMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_UnionByTypeMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_UnionByTypeMethod__set_state(UnionByTypeMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.method_by_cls = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_119__pyx_unpickle_UnionMethod, 0, __pyx_n_s_pyx_unpickle_UnionMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__286)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_UnionMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ConversionMethod(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_121__pyx_unpickle_ConversionMethod, 0, __pyx_n_s_pyx_unpickle_ConversionMethod, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__287)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConversionMethod, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ConversionMethod__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionMethod__set_state(ConversionMethod __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result._dispatch = __pyx_state[0]; __pyx_result.converter = __pyx_state[1]; __pyx_result.method = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_123__pyx_unpickle_ConversionWithValueErrorMethod, 0, __pyx_n_s_pyx_unpickle_ConversionWithVal, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__288)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConversionWithVal, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_ConversionAlternative(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_125__pyx_unpickle_ConversionAlternative, 0, __pyx_n_s_pyx_unpickle_ConversionAlterna, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__289)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConversionAlterna, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_ConversionAlternative__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_ConversionAlternative__set_state(ConversionAlternative __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.converter = __pyx_state[0]; __pyx_result.method = __pyx_state[1]; __pyx_result.value_error = __pyx_state[2] * if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_127__pyx_unpickle_ConversionUnionMethod, 0, __pyx_n_s_pyx_unpickle_ConversionUnionMe, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__290)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ConversionUnionMe, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":1 * def __pyx_unpickle_Discriminated(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_129__pyx_unpickle_Discriminated, 0, __pyx_n_s_pyx_unpickle_Discriminated, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__291)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Discriminated, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "(tree fragment)":11 * __pyx_unpickle_Discriminated__set_state( __pyx_result, __pyx_state) * return __pyx_result * cdef __pyx_unpickle_Discriminated__set_state(Discriminated __pyx_result, tuple __pyx_state): # <<<<<<<<<<<<<< * __pyx_result.data = __pyx_state[0]; __pyx_result.discriminator = __pyx_state[1] * if len(__pyx_state) > 2 and hasattr(__pyx_result, '__dict__'): */ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_9apischema_15deserialization_7methods_131__pyx_unpickle_DiscriminatorMethod, 0, __pyx_n_s_pyx_unpickle_DiscriminatorMeth, NULL, __pyx_n_s_apischema_deserialization_method, __pyx_d, ((PyObject *)__pyx_codeobj__292)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_DiscriminatorMeth, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "apischema/deserialization/methods.pyx":1 * cimport cython # <<<<<<<<<<<<<< * from cpython cimport * * from dataclasses import dataclass, field */ __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); if (__pyx_m) { if (__pyx_d && stringtab_initialized) { __Pyx_AddTraceback("init apischema.deserialization.methods", __pyx_clineno, __pyx_lineno, __pyx_filename); } #if !CYTHON_USE_MODULE_STATE Py_CLEAR(__pyx_m); #else Py_DECREF(__pyx_m); if (pystate_addmodule_run) { PyObject *tp, *value, *tb; PyErr_Fetch(&tp, &value, &tb); PyState_RemoveModule(&__pyx_moduledef); PyErr_Restore(tp, value, tb); } #endif } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init apischema.deserialization.methods"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if CYTHON_PEP489_MULTI_PHASE_INIT return (__pyx_m != NULL) ? 0 : -1; #elif PY_MAJOR_VERSION >= 3 return __pyx_m; #else return; #endif } /* #### Code section: cleanup_globals ### */ /* #### Code section: cleanup_module ### */ /* #### Code section: main_method ### */ /* #### Code section: utility_code_pragmas ### */ #ifdef _MSC_VER #pragma warning( push ) /* Warning 4127: conditional expression is constant * Cython uses constant conditional expressions to allow in inline functions to be optimized at * compile-time, so this warning is not useful */ #pragma warning( disable : 4127 ) #endif /* #### Code section: utility_code_def ### */ /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule(modname); if (!m) goto end; p = PyObject_GetAttrString(m, "RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; i= 0x030C00A6 PyObject *current_exception = tstate->current_exception; if (unlikely(!current_exception)) return 0; exc_type = (PyObject*) Py_TYPE(current_exception); if (exc_type == err) return 1; #else exc_type = tstate->curexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; #endif #if CYTHON_AVOID_BORROWED_REFS Py_INCREF(exc_type); #endif if (unlikely(PyTuple_Check(err))) { result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); } else { result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err); } #if CYTHON_AVOID_BORROWED_REFS Py_DECREF(exc_type); #endif return result; } #endif /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { #if PY_VERSION_HEX >= 0x030C00A6 PyObject *tmp_value; assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value))); if (value) { #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb)) #endif PyException_SetTraceback(value, tb); } tmp_value = tstate->current_exception; tstate->current_exception = value; Py_XDECREF(tmp_value); Py_XDECREF(type); Py_XDECREF(tb); #else PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #endif } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #if PY_VERSION_HEX >= 0x030C00A6 PyObject* exc_value; exc_value = tstate->current_exception; tstate->current_exception = 0; *value = exc_value; *type = NULL; *tb = NULL; if (exc_value) { *type = (PyObject*) Py_TYPE(exc_value); Py_INCREF(*type); #if CYTHON_COMPILING_IN_CPYTHON *tb = ((PyBaseExceptionObject*) exc_value)->traceback; Py_XINCREF(*tb); #else *tb = PyException_GetTraceback(exc_value); #endif } #else *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #endif } #endif /* PyObjectGetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #endif /* PyObjectGetAttrStrNoError */ #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1 static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) __Pyx_PyErr_Clear(); } #endif static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) { PyObject *result; #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 (void) PyObject_GetOptionalAttr(obj, attr_name, &result); return result; #else #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1 PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) { return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1); } #endif result = __Pyx_PyObject_GetAttrStr(obj, attr_name); if (unlikely(!result)) { __Pyx_PyObject_GetAttrStr_ClearAttributeError(); } return result; #endif } /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_b, name); if (unlikely(!result) && !PyErr_Occurred()) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* TupleAndListFromArray */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) { PyObject *v; Py_ssize_t i; for (i = 0; i < length; i++) { v = dest[i] = src[i]; Py_INCREF(v); } } static CYTHON_INLINE PyObject * __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) { PyObject *res; if (n <= 0) { Py_INCREF(__pyx_empty_tuple); return __pyx_empty_tuple; } res = PyTuple_New(n); if (unlikely(res == NULL)) return NULL; __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n); return res; } static CYTHON_INLINE PyObject * __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n) { PyObject *res; if (n <= 0) { return PyList_New(0); } res = PyList_New(n); if (unlikely(res == NULL)) return NULL; __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n); return res; } #endif /* BytesEquals */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API return PyObject_RichCompareBool(s1, s2, equals); #else if (s1 == s2) { return (equals == Py_EQ); } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { const char *ps1, *ps2; Py_ssize_t length = PyBytes_GET_SIZE(s1); if (length != PyBytes_GET_SIZE(s2)) return (equals == Py_NE); ps1 = PyBytes_AS_STRING(s1); ps2 = PyBytes_AS_STRING(s2); if (ps1[0] != ps2[0]) { return (equals == Py_NE); } else if (length == 1) { return (equals == Py_EQ); } else { int result; #if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000) Py_hash_t hash1, hash2; hash1 = ((PyBytesObject*)s1)->ob_shash; hash2 = ((PyBytesObject*)s2)->ob_shash; if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { return (equals == Py_NE); } #endif result = memcmp(ps1, ps2, (size_t)length); return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { return (equals == Py_NE); } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { return (equals == Py_NE); } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } #endif } /* UnicodeEquals */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API return PyObject_RichCompareBool(s1, s2, equals); #else #if PY_MAJOR_VERSION < 3 PyObject* owned_ref = NULL; #endif int s1_is_unicode, s2_is_unicode; if (s1 == s2) { goto return_eq; } s1_is_unicode = PyUnicode_CheckExact(s1); s2_is_unicode = PyUnicode_CheckExact(s2); #if PY_MAJOR_VERSION < 3 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { owned_ref = PyUnicode_FromObject(s2); if (unlikely(!owned_ref)) return -1; s2 = owned_ref; s2_is_unicode = 1; } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { owned_ref = PyUnicode_FromObject(s1); if (unlikely(!owned_ref)) return -1; s1 = owned_ref; s1_is_unicode = 1; } else if (((!s2_is_unicode) & (!s1_is_unicode))) { return __Pyx_PyBytes_Equals(s1, s2, equals); } #endif if (s1_is_unicode & s2_is_unicode) { Py_ssize_t length; int kind; void *data1, *data2; if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) return -1; length = __Pyx_PyUnicode_GET_LENGTH(s1); if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } #if CYTHON_USE_UNICODE_INTERNALS { Py_hash_t hash1, hash2; #if CYTHON_PEP393_ENABLED hash1 = ((PyASCIIObject*)s1)->hash; hash2 = ((PyASCIIObject*)s2)->hash; #else hash1 = ((PyUnicodeObject*)s1)->hash; hash2 = ((PyUnicodeObject*)s2)->hash; #endif if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { goto return_ne; } } #endif kind = __Pyx_PyUnicode_KIND(s1); if (kind != __Pyx_PyUnicode_KIND(s2)) { goto return_ne; } data1 = __Pyx_PyUnicode_DATA(s1); data2 = __Pyx_PyUnicode_DATA(s2); if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { goto return_ne; } else if (length == 1) { goto return_eq; } else { int result = memcmp(data1, data2, (size_t)(length * kind)); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & s2_is_unicode) { goto return_ne; } else if ((s2 == Py_None) & s1_is_unicode) { goto return_ne; } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } return_eq: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ); return_ne: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_NE); #endif } /* fastcall */ #if CYTHON_METH_FASTCALL static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s) { Py_ssize_t i, n = PyTuple_GET_SIZE(kwnames); for (i = 0; i < n; i++) { if (s == PyTuple_GET_ITEM(kwnames, i)) return kwvalues[i]; } for (i = 0; i < n; i++) { int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ); if (unlikely(eq != 0)) { if (unlikely(eq < 0)) return NULL; return kwvalues[i]; } } return NULL; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) { Py_ssize_t i, nkwargs = PyTuple_GET_SIZE(kwnames); PyObject *dict; dict = PyDict_New(); if (unlikely(!dict)) return NULL; for (i=0; i= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject *const *kwvalues, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; int kwds_is_tuple = CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)); while (1) { Py_XDECREF(key); key = NULL; Py_XDECREF(value); value = NULL; if (kwds_is_tuple) { Py_ssize_t size; #if CYTHON_ASSUME_SAFE_MACROS size = PyTuple_GET_SIZE(kwds); #else size = PyTuple_Size(kwds); if (size < 0) goto bad; #endif if (pos >= size) break; #if CYTHON_AVOID_BORROWED_REFS key = __Pyx_PySequence_ITEM(kwds, pos); if (!key) goto bad; #elif CYTHON_ASSUME_SAFE_MACROS key = PyTuple_GET_ITEM(kwds, pos); #else key = PyTuple_GetItem(kwds, pos); if (!key) goto bad; #endif value = kwvalues[pos]; pos++; } else { if (!PyDict_Next(kwds, &pos, &key, &value)) break; #if CYTHON_AVOID_BORROWED_REFS Py_INCREF(key); #endif } name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS Py_INCREF(value); Py_DECREF(key); #endif key = NULL; value = NULL; continue; } #if !CYTHON_AVOID_BORROWED_REFS Py_INCREF(key); #endif Py_INCREF(value); name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS value = NULL; #endif break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = ( #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 : #endif PyUnicode_Compare(**name, key) ); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS value = NULL; #endif break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } Py_XDECREF(key); Py_XDECREF(value); return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: #if PY_MAJOR_VERSION < 3 PyErr_Format(PyExc_TypeError, "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else PyErr_Format(PyExc_TypeError, "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: Py_XDECREF(key); Py_XDECREF(value); return -1; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* KeywordStringCheck */ static int __Pyx_CheckKeywordStrings( PyObject *kw, const char* function_name, int kw_allowed) { PyObject* key = 0; Py_ssize_t pos = 0; #if CYTHON_COMPILING_IN_PYPY if (!kw_allowed && PyDict_Next(kw, &pos, &key, 0)) goto invalid_keyword; return 1; #else if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kw))) { Py_ssize_t kwsize; #if CYTHON_ASSUME_SAFE_MACROS kwsize = PyTuple_GET_SIZE(kw); #else kwsize = PyTuple_Size(kw); if (kwsize < 0) return 0; #endif if (unlikely(kwsize == 0)) return 1; if (!kw_allowed) { #if CYTHON_ASSUME_SAFE_MACROS key = PyTuple_GET_ITEM(kw, 0); #else key = PyTuple_GetItem(kw, pos); if (!key) return 0; #endif goto invalid_keyword; } #if PY_VERSION_HEX < 0x03090000 for (pos = 0; pos < kwsize; pos++) { #if CYTHON_ASSUME_SAFE_MACROS key = PyTuple_GET_ITEM(kw, pos); #else key = PyTuple_GetItem(kw, pos); if (!key) return 0; #endif if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; } #endif return 1; } while (PyDict_Next(kw, &pos, &key, 0)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyString_Check(key))) #endif if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; } if (!kw_allowed && unlikely(key)) goto invalid_keyword; return 1; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); return 0; #endif invalid_keyword: #if PY_MAJOR_VERSION < 3 PyErr_Format(PyExc_TypeError, "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else PyErr_Format(PyExc_TypeError, "%s() got an unexpected keyword argument '%U'", function_name, key); #endif return 0; } /* GetAttr3 */ #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1 static PyObject *__Pyx_GetAttr3Default(PyObject *d) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; __Pyx_PyErr_Clear(); Py_INCREF(d); return d; } #endif static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) { PyObject *r; #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 int res = PyObject_GetOptionalAttr(o, n, &r); return (res != 0) ? r : __Pyx_NewRef(d); #else #if CYTHON_USE_TYPE_SLOTS if (likely(PyString_Check(n))) { r = __Pyx_PyObject_GetAttrStrNoError(o, n); if (unlikely(!r) && likely(!PyErr_Occurred())) { r = __Pyx_NewRef(d); } return r; } #endif r = PyObject_GetAttr(o, n); return (likely(r)) ? r : __Pyx_GetAttr3Default(d); #endif } /* PyDictVersioning */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { PyObject *dict = Py_TYPE(obj)->tp_dict; return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; } static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { PyObject **dictptr = NULL; Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; if (offset) { #if CYTHON_COMPILING_IN_CPYTHON dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); #else dictptr = _PyObject_GetDictPtr(obj); #endif } return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; } static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { PyObject *dict = Py_TYPE(obj)->tp_dict; if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) return 0; return obj_dict_version == __Pyx_get_object_dict_version(obj); } #endif /* GetModuleGlobalName */ #if CYTHON_USE_DICT_VERSIONS static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value) #else static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name) #endif { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && PY_VERSION_HEX < 0x030d0000 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } else if (unlikely(PyErr_Occurred())) { return NULL; } #elif CYTHON_COMPILING_IN_LIMITED_API if (unlikely(!__pyx_m)) { return NULL; } result = PyObject_GetAttr(__pyx_m, name); if (likely(result)) { return result; } #else result = PyDict_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } #endif #else result = PyObject_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } PyErr_Clear(); #endif return __Pyx_GetBuiltinName(name); } /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL && !CYTHON_VECTORCALL static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = __Pyx_PyFrame_GetLocalsplus(f); for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; #if PY_MAJOR_VERSION < 3 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) { return NULL; } #else if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) { return NULL; } #endif if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = Py_TYPE(func)->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); #if PY_MAJOR_VERSION < 3 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; #else if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) return NULL; #endif result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func); self = __Pyx_CyOrPyCFunction_GET_SELF(func); #if PY_MAJOR_VERSION < 3 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; #else if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) return NULL; #endif result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectFastCall */ #if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs) { PyObject *argstuple; PyObject *result = 0; size_t i; argstuple = PyTuple_New((Py_ssize_t)nargs); if (unlikely(!argstuple)) return NULL; for (i = 0; i < nargs; i++) { Py_INCREF(args[i]); if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) < 0) goto bad; } result = __Pyx_PyObject_Call(func, argstuple, kwargs); bad: Py_DECREF(argstuple); return result; } #endif static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) { Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs); #if CYTHON_COMPILING_IN_CPYTHON if (nargs == 0 && kwargs == NULL) { if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS)) return __Pyx_PyObject_CallMethO(func, NULL); } else if (nargs == 1 && kwargs == NULL) { if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O)) return __Pyx_PyObject_CallMethO(func, args[0]); } #endif #if PY_VERSION_HEX < 0x030800B1 #if CYTHON_FAST_PYCCALL if (PyCFunction_Check(func)) { if (kwargs) { return _PyCFunction_FastCallDict(func, args, nargs, kwargs); } else { return _PyCFunction_FastCallKeywords(func, args, nargs, NULL); } } #if PY_VERSION_HEX >= 0x030700A1 if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)) { return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL); } #endif #endif #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs); } #endif #endif if (kwargs == NULL) { #if CYTHON_VECTORCALL #if PY_VERSION_HEX < 0x03090000 vectorcallfunc f = _PyVectorcall_Function(func); #else vectorcallfunc f = PyVectorcall_Function(func); #endif if (f) { return f(func, args, (size_t)nargs, NULL); } #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL if (__Pyx_CyFunction_CheckExact(func)) { __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func); if (f) return f(func, args, (size_t)nargs, NULL); } #endif } if (nargs == 0) { return __Pyx_PyObject_Call(func, __pyx_empty_tuple, kwargs); } #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs); #else return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs); #endif } /* PyObjectCallOneArg */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *args[2] = {NULL, arg}; return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET); } /* RaiseUnexpectedTypeError */ static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj) { __Pyx_TypeName obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj)); PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME, expected, obj_type_name); __Pyx_DECREF_TypeName(obj_type_name); return 0; } /* RaiseException */ #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { __Pyx_PyThreadState_declare CYTHON_UNUSED_VAR(cause); Py_XINCREF(type); if (!value || value == Py_None) value = NULL; else Py_INCREF(value); if (!tb || tb == Py_None) tb = NULL; else { Py_INCREF(tb); if (!PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } } if (PyType_Check(type)) { #if CYTHON_COMPILING_IN_PYPY if (!value) { Py_INCREF(Py_None); value = Py_None; } #endif PyErr_NormalizeException(&type, &value, &tb); } else { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } value = type; type = (PyObject*) Py_TYPE(type); Py_INCREF(type); if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto raise_error; } } __Pyx_PyThreadState_assign __Pyx_ErrRestore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } #else static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { PyObject* owned_instance = NULL; if (tb == Py_None) { tb = 0; } else if (tb && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto bad; } if (value == Py_None) value = 0; if (PyExceptionInstance_Check(type)) { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto bad; } value = type; type = (PyObject*) Py_TYPE(value); } else if (PyExceptionClass_Check(type)) { PyObject *instance_class = NULL; if (value && PyExceptionInstance_Check(value)) { instance_class = (PyObject*) Py_TYPE(value); if (instance_class != type) { int is_subclass = PyObject_IsSubclass(instance_class, type); if (!is_subclass) { instance_class = NULL; } else if (unlikely(is_subclass == -1)) { goto bad; } else { type = instance_class; } } } if (!instance_class) { PyObject *args; if (!value) args = PyTuple_New(0); else if (PyTuple_Check(value)) { Py_INCREF(value); args = value; } else args = PyTuple_Pack(1, value); if (!args) goto bad; owned_instance = PyObject_Call(type, args, NULL); Py_DECREF(args); if (!owned_instance) goto bad; value = owned_instance; if (!PyExceptionInstance_Check(value)) { PyErr_Format(PyExc_TypeError, "calling %R should have returned an instance of " "BaseException, not %R", type, Py_TYPE(value)); goto bad; } } } else { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto bad; } if (cause) { PyObject *fixed_cause; if (cause == Py_None) { fixed_cause = NULL; } else if (PyExceptionClass_Check(cause)) { fixed_cause = PyObject_CallObject(cause, NULL); if (fixed_cause == NULL) goto bad; } else if (PyExceptionInstance_Check(cause)) { fixed_cause = cause; Py_INCREF(fixed_cause); } else { PyErr_SetString(PyExc_TypeError, "exception causes must derive from " "BaseException"); goto bad; } PyException_SetCause(value, fixed_cause); } PyErr_SetObject(type, value); if (tb) { #if PY_VERSION_HEX >= 0x030C00A6 PyException_SetTraceback(value, tb); #elif CYTHON_FAST_THREAD_STATE PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } #else PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); Py_INCREF(tb); PyErr_Restore(tmp_type, tmp_value, tb); Py_XDECREF(tmp_tb); #endif } bad: Py_XDECREF(owned_instance); return; } #endif /* ExtTypeTest */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { __Pyx_TypeName obj_type_name; __Pyx_TypeName type_name; if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } if (likely(__Pyx_TypeCheck(obj, type))) return 1; obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj)); type_name = __Pyx_PyType_GetName(type); PyErr_Format(PyExc_TypeError, "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME, obj_type_name, type_name); __Pyx_DECREF_TypeName(obj_type_name); __Pyx_DECREF_TypeName(type_name); return 0; } /* ArgTypeTest */ static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact) { __Pyx_TypeName type_name; __Pyx_TypeName obj_type_name; if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } else if (exact) { #if PY_MAJOR_VERSION == 2 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; #endif } else { if (likely(__Pyx_TypeCheck(obj, type))) return 1; } type_name = __Pyx_PyType_GetName(type); obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj)); PyErr_Format(PyExc_TypeError, "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME ", got " __Pyx_FMT_TYPENAME ")", name, type_name, obj_type_name); __Pyx_DECREF_TypeName(type_name); __Pyx_DECREF_TypeName(obj_type_name); return 0; } /* GetItemInt */ static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (unlikely(!j)) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyList_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyTuple_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping; PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence; if (mm && mm->mp_subscript) { PyObject *r, *key = PyInt_FromSsize_t(i); if (unlikely(!key)) return NULL; r = mm->mp_subscript(o, key); Py_DECREF(key); return r; } if (likely(sm && sm->sq_item)) { if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) { Py_ssize_t l = sm->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return sm->sq_item(o, i); } } #else if (is_list || !PyMapping_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* ObjectGetItem */ #if CYTHON_USE_TYPE_SLOTS static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) { PyObject *runerr = NULL; Py_ssize_t key_value; key_value = __Pyx_PyIndex_AsSsize_t(index); if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) { return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1); } if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) { __Pyx_TypeName index_type_name = __Pyx_PyType_GetName(Py_TYPE(index)); PyErr_Clear(); PyErr_Format(PyExc_IndexError, "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer", index_type_name); __Pyx_DECREF_TypeName(index_type_name); } return NULL; } static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) { __Pyx_TypeName obj_type_name; if (likely(PyType_Check(obj))) { PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_n_s_class_getitem); if (!meth) { PyErr_Clear(); } else { PyObject *result = __Pyx_PyObject_CallOneArg(meth, key); Py_DECREF(meth); return result; } } obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj)); PyErr_Format(PyExc_TypeError, "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj_type_name); __Pyx_DECREF_TypeName(obj_type_name); return NULL; } static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) { PyTypeObject *tp = Py_TYPE(obj); PyMappingMethods *mm = tp->tp_as_mapping; PySequenceMethods *sm = tp->tp_as_sequence; if (likely(mm && mm->mp_subscript)) { return mm->mp_subscript(obj, key); } if (likely(sm && sm->sq_item)) { return __Pyx_PyObject_GetIndex(obj, key); } return __Pyx_PyObject_GetItem_Slow(obj, key); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) { CYTHON_MAYBE_UNUSED_VAR(intval); CYTHON_MAYBE_UNUSED_VAR(inplace); CYTHON_UNUSED_VAR(zerodivision_check); #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + (unsigned long)b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif if (unlikely(__Pyx_PyLong_IsZero(op1))) { return __Pyx_NewRef(op2); } if (likely(__Pyx_PyLong_IsCompact(op1))) { a = __Pyx_PyLong_CompactValue(op1); } else { const digit* digits = __Pyx_PyLong_Digits(op1); const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1); switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } CYTHON_FALLTHROUGH; default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; #if CYTHON_COMPILING_IN_LIMITED_API double a = __pyx_PyFloat_AsDouble(op1); #else double a = PyFloat_AS_DOUBLE(op1); #endif double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* DictGetItem */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { PyObject *value; value = PyDict_GetItemWithError(d, key); if (unlikely(!value)) { if (!PyErr_Occurred()) { if (unlikely(PyTuple_Check(key))) { PyObject* args = PyTuple_Pack(1, key); if (likely(args)) { PyErr_SetObject(PyExc_KeyError, args); Py_DECREF(args); } } else { PyErr_SetObject(PyExc_KeyError, key); } } return NULL; } Py_INCREF(value); return value; } #endif /* GetTopmostException */ #if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate) { _PyErr_StackItem *exc_info = tstate->exc_info; while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) && exc_info->previous_item != NULL) { exc_info = exc_info->previous_item; } return exc_info; } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); PyObject *exc_value = exc_info->exc_value; if (exc_value == NULL || exc_value == Py_None) { *value = NULL; *type = NULL; *tb = NULL; } else { *value = exc_value; Py_INCREF(*value); *type = (PyObject*) Py_TYPE(exc_value); Py_INCREF(*type); *tb = PyException_GetTraceback(exc_value); } #elif CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); *type = exc_info->exc_type; *value = exc_info->exc_value; *tb = exc_info->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); #else *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); #endif } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4 _PyErr_StackItem *exc_info = tstate->exc_info; PyObject *tmp_value = exc_info->exc_value; exc_info->exc_value = value; Py_XDECREF(tmp_value); Py_XDECREF(type); Py_XDECREF(tb); #else PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = type; exc_info->exc_value = value; exc_info->exc_traceback = tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #endif } #endif /* FastTypeChecks */ #if CYTHON_COMPILING_IN_CPYTHON static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { while (a) { a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*); if (a == b) return 1; } return b == &PyBaseObject_Type; } static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { PyObject *mro; if (a == b) return 1; mro = a->tp_mro; if (likely(mro)) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(mro); for (i = 0; i < n; i++) { if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) return 1; } return 0; } return __Pyx_InBases(a, b); } static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) { PyObject *mro; if (cls == a || cls == b) return 1; mro = cls->tp_mro; if (likely(mro)) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(mro); for (i = 0; i < n; i++) { PyObject *base = PyTuple_GET_ITEM(mro, i); if (base == (PyObject *)a || base == (PyObject *)b) return 1; } return 0; } return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b); } #if PY_MAJOR_VERSION == 2 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { PyObject *exception, *value, *tb; int res; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } if (!res) { res = PyObject_IsSubclass(err, exc_type2); if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } } __Pyx_ErrRestore(exception, value, tb); return res; } #else static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { if (exc_type1) { return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2); } else { return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); } } #endif static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; assert(PyExceptionClass_Check(exc_type)); n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; i= 0x030C00A6 local_value = tstate->current_exception; tstate->current_exception = 0; if (likely(local_value)) { local_type = (PyObject*) Py_TYPE(local_value); Py_INCREF(local_type); local_tb = PyException_GetTraceback(local_value); } #else local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #endif #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE && PY_VERSION_HEX >= 0x030C00A6 if (unlikely(tstate->current_exception)) #elif CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE #if CYTHON_USE_EXC_INFO_STACK { _PyErr_StackItem *exc_info = tstate->exc_info; #if PY_VERSION_HEX >= 0x030B00a4 tmp_value = exc_info->exc_value; exc_info->exc_value = local_value; tmp_type = NULL; tmp_tb = NULL; Py_XDECREF(local_type); Py_XDECREF(local_tb); #else tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = local_type; exc_info->exc_value = local_value; exc_info->exc_traceback = local_tb; #endif } #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4 _PyErr_StackItem *exc_info = tstate->exc_info; tmp_value = exc_info->exc_value; exc_info->exc_value = *value; if (tmp_value == NULL || tmp_value == Py_None) { Py_XDECREF(tmp_value); tmp_value = NULL; tmp_type = NULL; tmp_tb = NULL; } else { tmp_type = (PyObject*) Py_TYPE(tmp_value); Py_INCREF(tmp_type); #if CYTHON_COMPILING_IN_CPYTHON tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback; Py_XINCREF(tmp_tb); #else tmp_tb = PyException_GetTraceback(tmp_value); #endif } #elif CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = *type; exc_info->exc_value = *value; exc_info->exc_traceback = *tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; #endif *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* pyfrozenset_new */ static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it) { if (it) { PyObject* result; #if CYTHON_COMPILING_IN_PYPY PyObject* args; args = PyTuple_Pack(1, it); if (unlikely(!args)) return NULL; result = PyObject_Call((PyObject*)&PyFrozenSet_Type, args, NULL); Py_DECREF(args); return result; #else if (PyFrozenSet_CheckExact(it)) { Py_INCREF(it); return it; } result = PyFrozenSet_New(it); if (unlikely(!result)) return NULL; if ((PY_VERSION_HEX >= 0x031000A1) || likely(PySet_GET_SIZE(result))) return result; Py_DECREF(result); #endif } #if CYTHON_USE_TYPE_SLOTS return PyFrozenSet_Type.tp_new(&PyFrozenSet_Type, __pyx_empty_tuple, NULL); #else return PyObject_Call((PyObject*)&PyFrozenSet_Type, __pyx_empty_tuple, NULL); #endif } /* IterFinish */ static CYTHON_INLINE int __Pyx_IterFinish(void) { PyObject* exc_type; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign exc_type = __Pyx_PyErr_CurrentExceptionType(); if (unlikely(exc_type)) { if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) return -1; __Pyx_PyErr_Clear(); return 0; } return 0; } /* PyObjectCallNoArg */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { PyObject *arg[2] = {NULL, NULL}; return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET); } /* PyObjectGetMethod */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) { PyObject *attr; #if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP __Pyx_TypeName type_name; PyTypeObject *tp = Py_TYPE(obj); PyObject *descr; descrgetfunc f = NULL; PyObject **dictptr, *dict; int meth_found = 0; assert (*method == NULL); if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) { attr = __Pyx_PyObject_GetAttrStr(obj, name); goto try_unpack; } if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) { return 0; } descr = _PyType_Lookup(tp, name); if (likely(descr != NULL)) { Py_INCREF(descr); #if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR)) #elif PY_MAJOR_VERSION >= 3 #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type))) #endif #else #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr))) #endif #endif { meth_found = 1; } else { f = Py_TYPE(descr)->tp_descr_get; if (f != NULL && PyDescr_IsData(descr)) { attr = f(descr, obj, (PyObject *)Py_TYPE(obj)); Py_DECREF(descr); goto try_unpack; } } } dictptr = _PyObject_GetDictPtr(obj); if (dictptr != NULL && (dict = *dictptr) != NULL) { Py_INCREF(dict); attr = __Pyx_PyDict_GetItemStr(dict, name); if (attr != NULL) { Py_INCREF(attr); Py_DECREF(dict); Py_XDECREF(descr); goto try_unpack; } Py_DECREF(dict); } if (meth_found) { *method = descr; return 1; } if (f != NULL) { attr = f(descr, obj, (PyObject *)Py_TYPE(obj)); Py_DECREF(descr); goto try_unpack; } if (likely(descr != NULL)) { *method = descr; return 0; } type_name = __Pyx_PyType_GetName(tp); PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'", type_name, name); #else "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'", type_name, PyString_AS_STRING(name)); #endif __Pyx_DECREF_TypeName(type_name); return 0; #else attr = __Pyx_PyObject_GetAttrStr(obj, name); goto try_unpack; #endif try_unpack: #if CYTHON_UNPACK_METHODS if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) { PyObject *function = PyMethod_GET_FUNCTION(attr); Py_INCREF(function); Py_DECREF(attr); *method = function; return 1; } #endif *method = attr; return 0; } /* PyObjectCallMethod0 */ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { PyObject *method = NULL, *result = NULL; int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); if (likely(is_method)) { result = __Pyx_PyObject_CallOneArg(method, obj); Py_DECREF(method); return result; } if (unlikely(!method)) goto bad; result = __Pyx_PyObject_CallNoArg(method); Py_DECREF(method); bad: return result; } /* RaiseNeedMoreValuesToUnpack */ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { PyErr_Format(PyExc_ValueError, "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack", index, (index == 1) ? "" : "s"); } /* RaiseTooManyValuesToUnpack */ static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { PyErr_Format(PyExc_ValueError, "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected); } /* UnpackItemEndCheck */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { if (unlikely(retval)) { Py_DECREF(retval); __Pyx_RaiseTooManyValuesError(expected); return -1; } return __Pyx_IterFinish(); } /* RaiseNoneIterError */ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); } /* UnpackTupleError */ static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { if (t == Py_None) { __Pyx_RaiseNoneNotIterableError(); } else if (PyTuple_GET_SIZE(t) < index) { __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)); } else { __Pyx_RaiseTooManyValuesError(index); } } /* UnpackTuple2 */ static CYTHON_INLINE int __Pyx_unpack_tuple2_exact( PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) { PyObject *value1 = NULL, *value2 = NULL; #if CYTHON_COMPILING_IN_PYPY value1 = PySequence_ITEM(tuple, 0); if (unlikely(!value1)) goto bad; value2 = PySequence_ITEM(tuple, 1); if (unlikely(!value2)) goto bad; #else value1 = PyTuple_GET_ITEM(tuple, 0); Py_INCREF(value1); value2 = PyTuple_GET_ITEM(tuple, 1); Py_INCREF(value2); #endif if (decref_tuple) { Py_DECREF(tuple); } *pvalue1 = value1; *pvalue2 = value2; return 0; #if CYTHON_COMPILING_IN_PYPY bad: Py_XDECREF(value1); Py_XDECREF(value2); if (decref_tuple) { Py_XDECREF(tuple); } return -1; #endif } static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int has_known_size, int decref_tuple) { Py_ssize_t index; PyObject *value1 = NULL, *value2 = NULL, *iter = NULL; iternextfunc iternext; iter = PyObject_GetIter(tuple); if (unlikely(!iter)) goto bad; if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; } iternext = __Pyx_PyObject_GetIterNextFunc(iter); value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; } value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; } if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad; Py_DECREF(iter); *pvalue1 = value1; *pvalue2 = value2; return 0; unpacking_failed: if (!has_known_size && __Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); bad: Py_XDECREF(iter); Py_XDECREF(value1); Py_XDECREF(value2); if (decref_tuple) { Py_XDECREF(tuple); } return -1; } /* dict_iter */ #if CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 #include #endif static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, Py_ssize_t* p_orig_length, int* p_source_is_dict) { is_dict = is_dict || likely(PyDict_CheckExact(iterable)); *p_source_is_dict = is_dict; if (is_dict) { #if !CYTHON_COMPILING_IN_PYPY *p_orig_length = PyDict_Size(iterable); Py_INCREF(iterable); return iterable; #elif PY_MAJOR_VERSION >= 3 static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL; PyObject **pp = NULL; if (method_name) { const char *name = PyUnicode_AsUTF8(method_name); if (strcmp(name, "iteritems") == 0) pp = &py_items; else if (strcmp(name, "iterkeys") == 0) pp = &py_keys; else if (strcmp(name, "itervalues") == 0) pp = &py_values; if (pp) { if (!*pp) { *pp = PyUnicode_FromString(name + 4); if (!*pp) return NULL; } method_name = *pp; } } #endif } *p_orig_length = 0; if (method_name) { PyObject* iter; iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); if (!iterable) return NULL; #if !CYTHON_COMPILING_IN_PYPY if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) return iterable; #endif iter = PyObject_GetIter(iterable); Py_DECREF(iterable); return iter; } return PyObject_GetIter(iterable); } static CYTHON_INLINE int __Pyx_dict_iter_next( PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos, PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { PyObject* next_item; #if !CYTHON_COMPILING_IN_PYPY if (source_is_dict) { PyObject *key, *value; if (unlikely(orig_length != PyDict_Size(iter_obj))) { PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); return -1; } if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) { return 0; } if (pitem) { PyObject* tuple = PyTuple_New(2); if (unlikely(!tuple)) { return -1; } Py_INCREF(key); Py_INCREF(value); PyTuple_SET_ITEM(tuple, 0, key); PyTuple_SET_ITEM(tuple, 1, value); *pitem = tuple; } else { if (pkey) { Py_INCREF(key); *pkey = key; } if (pvalue) { Py_INCREF(value); *pvalue = value; } } return 1; } else if (PyTuple_CheckExact(iter_obj)) { Py_ssize_t pos = *ppos; if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0; *ppos = pos + 1; next_item = PyTuple_GET_ITEM(iter_obj, pos); Py_INCREF(next_item); } else if (PyList_CheckExact(iter_obj)) { Py_ssize_t pos = *ppos; if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0; *ppos = pos + 1; next_item = PyList_GET_ITEM(iter_obj, pos); Py_INCREF(next_item); } else #endif { next_item = PyIter_Next(iter_obj); if (unlikely(!next_item)) { return __Pyx_IterFinish(); } } if (pitem) { *pitem = next_item; } else if (pkey && pvalue) { if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)) return -1; } else if (pkey) { *pkey = next_item; } else { *pvalue = next_item; } return 1; } /* JoinPyUnicode */ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength, Py_UCS4 max_char) { #if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS PyObject *result_uval; int result_ukind, kind_shift; Py_ssize_t i, char_pos; void *result_udata; CYTHON_MAYBE_UNUSED_VAR(max_char); #if CYTHON_PEP393_ENABLED result_uval = PyUnicode_New(result_ulength, max_char); if (unlikely(!result_uval)) return NULL; result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND; kind_shift = (result_ukind == PyUnicode_4BYTE_KIND) ? 2 : result_ukind - 1; result_udata = PyUnicode_DATA(result_uval); #else result_uval = PyUnicode_FromUnicode(NULL, result_ulength); if (unlikely(!result_uval)) return NULL; result_ukind = sizeof(Py_UNICODE); kind_shift = (result_ukind == 4) ? 2 : result_ukind - 1; result_udata = PyUnicode_AS_UNICODE(result_uval); #endif assert(kind_shift == 2 || kind_shift == 1 || kind_shift == 0); char_pos = 0; for (i=0; i < value_count; i++) { int ukind; Py_ssize_t ulength; void *udata; PyObject *uval = PyTuple_GET_ITEM(value_tuple, i); if (unlikely(__Pyx_PyUnicode_READY(uval))) goto bad; ulength = __Pyx_PyUnicode_GET_LENGTH(uval); if (unlikely(!ulength)) continue; if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - ulength < char_pos)) goto overflow; ukind = __Pyx_PyUnicode_KIND(uval); udata = __Pyx_PyUnicode_DATA(uval); if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) { memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift)); } else { #if PY_VERSION_HEX >= 0x030d0000 if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad; #elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters) _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength); #else Py_ssize_t j; for (j=0; j < ulength; j++) { Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j); __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar); } #endif } char_pos += ulength; } return result_uval; overflow: PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string"); bad: Py_DECREF(result_uval); return NULL; #else CYTHON_UNUSED_VAR(max_char); CYTHON_UNUSED_VAR(result_ulength); CYTHON_UNUSED_VAR(value_count); return PyUnicode_Join(__pyx_empty_unicode, value_tuple); #endif } /* UnpackUnboundCMethod */ static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) { PyObject *result; PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args)); if (unlikely(!selfless_args)) return NULL; result = PyObject_Call(method, selfless_args, kwargs); Py_DECREF(selfless_args); return result; } static PyMethodDef __Pyx_UnboundCMethod_Def = { "CythonUnboundCMethod", __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall), METH_VARARGS | METH_KEYWORDS, NULL }; static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { PyObject *method; method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name); if (unlikely(!method)) return -1; target->method = method; #if CYTHON_COMPILING_IN_CPYTHON #if PY_MAJOR_VERSION >= 3 if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type))) #else if (likely(!__Pyx_CyOrPyCFunction_Check(method))) #endif { PyMethodDescrObject *descr = (PyMethodDescrObject*) method; target->func = descr->d_method->ml_meth; target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS); } else #endif #if CYTHON_COMPILING_IN_PYPY #else if (PyCFunction_Check(method)) #endif { PyObject *self; int self_found; #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY self = PyObject_GetAttrString(method, "__self__"); if (!self) { PyErr_Clear(); } #else self = PyCFunction_GET_SELF(method); #endif self_found = (self && self != Py_None); #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY Py_XDECREF(self); #endif if (self_found) { PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method); if (unlikely(!unbound_method)) return -1; Py_DECREF(method); target->method = unbound_method; } } return 0; } /* CallUnboundCMethod0 */ static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) { PyObject *args, *result = NULL; if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; #if CYTHON_ASSUME_SAFE_MACROS args = PyTuple_New(1); if (unlikely(!args)) goto bad; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); #else args = PyTuple_Pack(1, self); if (unlikely(!args)) goto bad; #endif result = __Pyx_PyObject_Call(cfunc->method, args, NULL); Py_DECREF(args); bad: return result; } /* py_dict_keys */ static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d) { if (PY_MAJOR_VERSION >= 3) return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_keys, d); else return PyDict_Keys(d); } /* pybytes_as_double */ static double __Pyx_SlowPyString_AsDouble(PyObject *obj) { PyObject *float_value; #if PY_MAJOR_VERSION >= 3 float_value = PyFloat_FromString(obj); #else float_value = PyFloat_FromString(obj, 0); #endif if (likely(float_value)) { #if CYTHON_ASSUME_SAFE_MACROS double value = PyFloat_AS_DOUBLE(float_value); #else double value = PyFloat_AsDouble(float_value); #endif Py_DECREF(float_value); return value; } return (double)-1; } static const char* __Pyx__PyBytes_AsDouble_Copy(const char* start, char* buffer, Py_ssize_t length) { int last_was_punctuation = 1; Py_ssize_t i; for (i=0; i < length; i++) { char chr = start[i]; int is_punctuation = (chr == '_') | (chr == '.') | (chr == 'e') | (chr == 'E'); *buffer = chr; buffer += (chr != '_'); if (unlikely(last_was_punctuation & is_punctuation)) goto parse_failure; last_was_punctuation = is_punctuation; } if (unlikely(last_was_punctuation)) goto parse_failure; *buffer = '\0'; return buffer; parse_failure: return NULL; } static double __Pyx__PyBytes_AsDouble_inf_nan(const char* start, Py_ssize_t length) { int matches = 1; char sign = start[0]; int is_signed = (sign == '+') | (sign == '-'); start += is_signed; length -= is_signed; switch (start[0]) { #ifdef Py_NAN case 'n': case 'N': if (unlikely(length != 3)) goto parse_failure; matches &= (start[1] == 'a' || start[1] == 'A'); matches &= (start[2] == 'n' || start[2] == 'N'); if (unlikely(!matches)) goto parse_failure; return (sign == '-') ? -Py_NAN : Py_NAN; #endif case 'i': case 'I': if (unlikely(length < 3)) goto parse_failure; matches &= (start[1] == 'n' || start[1] == 'N'); matches &= (start[2] == 'f' || start[2] == 'F'); if (likely(length == 3 && matches)) return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL; if (unlikely(length != 8)) goto parse_failure; matches &= (start[3] == 'i' || start[3] == 'I'); matches &= (start[4] == 'n' || start[4] == 'N'); matches &= (start[5] == 'i' || start[5] == 'I'); matches &= (start[6] == 't' || start[6] == 'T'); matches &= (start[7] == 'y' || start[7] == 'Y'); if (unlikely(!matches)) goto parse_failure; return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL; case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; default: goto parse_failure; } return 0.0; parse_failure: return -1.0; } static CYTHON_INLINE int __Pyx__PyBytes_AsDouble_IsSpace(char ch) { return (ch == 0x20) | !((ch < 0x9) | (ch > 0xd)); } CYTHON_UNUSED static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length) { double value; Py_ssize_t i, digits; const char *last = start + length; char *end; while (__Pyx__PyBytes_AsDouble_IsSpace(*start)) start++; while (start < last - 1 && __Pyx__PyBytes_AsDouble_IsSpace(last[-1])) last--; length = last - start; if (unlikely(length <= 0)) goto fallback; value = __Pyx__PyBytes_AsDouble_inf_nan(start, length); if (unlikely(value == -1.0)) goto fallback; if (value != 0.0) return value; digits = 0; for (i=0; i < length; digits += start[i++] != '_'); if (likely(digits == length)) { value = PyOS_string_to_double(start, &end, NULL); } else if (digits < 40) { char number[40]; last = __Pyx__PyBytes_AsDouble_Copy(start, number, length); if (unlikely(!last)) goto fallback; value = PyOS_string_to_double(number, &end, NULL); } else { char *number = (char*) PyMem_Malloc((digits + 1) * sizeof(char)); if (unlikely(!number)) goto fallback; last = __Pyx__PyBytes_AsDouble_Copy(start, number, length); if (unlikely(!last)) { PyMem_Free(number); goto fallback; } value = PyOS_string_to_double(number, &end, NULL); PyMem_Free(number); } if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) { return value; } fallback: return __Pyx_SlowPyString_AsDouble(obj); } /* pynumber_float */ static CYTHON_INLINE PyObject* __Pyx__PyNumber_Float(PyObject* obj) { double val; if (PyLong_CheckExact(obj)) { #if CYTHON_USE_PYLONG_INTERNALS if (likely(__Pyx_PyLong_IsCompact(obj))) { val = (double) __Pyx_PyLong_CompactValue(obj); goto no_error; } #endif val = PyLong_AsDouble(obj); } else if (PyUnicode_CheckExact(obj)) { val = __Pyx_PyUnicode_AsDouble(obj); } else if (PyBytes_CheckExact(obj)) { val = __Pyx_PyBytes_AsDouble(obj); } else if (PyByteArray_CheckExact(obj)) { val = __Pyx_PyByteArray_AsDouble(obj); } else { return PyNumber_Float(obj); } if (unlikely(val == -1 && PyErr_Occurred())) { return NULL; } #if CYTHON_USE_PYLONG_INTERNALS no_error: #endif return PyFloat_FromDouble(val); } /* SetItemInt */ static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { int r; if (unlikely(!j)) return -1; r = PyObject_SetItem(o, j, v); Py_DECREF(j); return r; } static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o)); if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) { PyObject* old = PyList_GET_ITEM(o, n); Py_INCREF(v); PyList_SET_ITEM(o, n, v); Py_DECREF(old); return 1; } } else { PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping; PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence; if (mm && mm->mp_ass_subscript) { int r; PyObject *key = PyInt_FromSsize_t(i); if (unlikely(!key)) return -1; r = mm->mp_ass_subscript(o, key, v); Py_DECREF(key); return r; } if (likely(sm && sm->sq_ass_item)) { if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) { Py_ssize_t l = sm->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return -1; PyErr_Clear(); } } return sm->sq_ass_item(o, i, v); } } #else if (is_list || !PyMapping_Check(o)) { return PySequence_SetItem(o, i, v); } #endif return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v); } /* RaiseUnboundLocalError */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname); } /* RaiseClosureNameError */ static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname) { PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname); } /* pep479 */ static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) { PyObject *exc, *val, *tb, *cur_exc; __Pyx_PyThreadState_declare #ifdef __Pyx_StopAsyncIteration_USED int is_async_stopiteration = 0; #endif CYTHON_MAYBE_UNUSED_VAR(in_async_gen); cur_exc = PyErr_Occurred(); if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))) { #ifdef __Pyx_StopAsyncIteration_USED if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, __Pyx_PyExc_StopAsyncIteration))) { is_async_stopiteration = 1; } else #endif return; } __Pyx_PyThreadState_assign __Pyx_GetException(&exc, &val, &tb); Py_XDECREF(exc); Py_XDECREF(val); Py_XDECREF(tb); PyErr_SetString(PyExc_RuntimeError, #ifdef __Pyx_StopAsyncIteration_USED is_async_stopiteration ? "async generator raised StopAsyncIteration" : in_async_gen ? "async generator raised StopIteration" : #endif "generator raised StopIteration"); } /* CallUnboundCMethod1 */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) { if (likely(cfunc->func)) { int flag = cfunc->flag; if (flag == METH_O) { return (*(cfunc->func))(self, arg); } else if ((PY_VERSION_HEX >= 0x030600B1) && flag == METH_FASTCALL) { #if PY_VERSION_HEX >= 0x030700A0 return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1); #else return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL); #endif } else if ((PY_VERSION_HEX >= 0x030700A0) && flag == (METH_FASTCALL | METH_KEYWORDS)) { return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL); } } return __Pyx__CallUnboundCMethod1(cfunc, self, arg); } #endif static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){ PyObject *args, *result = NULL; if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; #if CYTHON_COMPILING_IN_CPYTHON if (cfunc->func && (cfunc->flag & METH_VARARGS)) { args = PyTuple_New(1); if (unlikely(!args)) goto bad; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); if (cfunc->flag & METH_KEYWORDS) result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL); else result = (*cfunc->func)(self, args); } else { args = PyTuple_New(2); if (unlikely(!args)) goto bad; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); Py_INCREF(arg); PyTuple_SET_ITEM(args, 1, arg); result = __Pyx_PyObject_Call(cfunc->method, args, NULL); } #else args = PyTuple_Pack(2, self, arg); if (unlikely(!args)) goto bad; result = __Pyx_PyObject_Call(cfunc->method, args, NULL); #endif bad: Py_XDECREF(args); return result; } /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *module = 0; PyObject *empty_dict = 0; PyObject *empty_list = 0; #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (unlikely(!py_import)) goto bad; if (!from_list) { empty_list = PyList_New(0); if (unlikely(!empty_list)) goto bad; from_list = empty_list; } #endif empty_dict = PyDict_New(); if (unlikely(!empty_dict)) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.') != NULL) { module = PyImport_ImportModuleLevelObject( name, __pyx_d, empty_dict, from_list, 1); if (unlikely(!module)) { if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError))) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (unlikely(!py_level)) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, __pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, __pyx_d, empty_dict, from_list, level); #endif } } bad: Py_XDECREF(empty_dict); Py_XDECREF(empty_list); #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { const char* module_name_str = 0; PyObject* module_name = 0; PyObject* module_dot = 0; PyObject* full_name = 0; PyErr_Clear(); module_name_str = PyModule_GetName(module); if (unlikely(!module_name_str)) { goto modbad; } module_name = PyUnicode_FromString(module_name_str); if (unlikely(!module_name)) { goto modbad; } module_dot = PyUnicode_Concat(module_name, __pyx_kp_u__3); if (unlikely(!module_dot)) { goto modbad; } full_name = PyUnicode_Concat(module_dot, name); if (unlikely(!full_name)) { goto modbad; } #if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400) { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) goto modbad; value = PyObject_GetItem(modules, full_name); } #else value = PyImport_GetModule(full_name); #endif modbad: Py_XDECREF(full_name); Py_XDECREF(module_dot); Py_XDECREF(module_name); } if (unlikely(!value)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* GetAttr */ static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) { #if CYTHON_USE_TYPE_SLOTS #if PY_MAJOR_VERSION >= 3 if (likely(PyUnicode_Check(n))) #else if (likely(PyString_Check(n))) #endif return __Pyx_PyObject_GetAttrStr(o, n); #endif return PyObject_GetAttr(o, n); } /* HasAttr */ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) { PyObject *r; if (unlikely(!__Pyx_PyBaseString_Check(n))) { PyErr_SetString(PyExc_TypeError, "hasattr(): attribute name must be string"); return -1; } r = __Pyx_GetAttr(o, n); if (!r) { PyErr_Clear(); return 0; } else { Py_DECREF(r); return 1; } } /* CallNextTpTraverse */ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) { PyTypeObject* type = Py_TYPE(obj); traverseproc tp_traverse = NULL; while (type && __Pyx_PyType_GetSlot(type, tp_traverse, traverseproc) != current_tp_traverse) type = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*); while (type && (tp_traverse = __Pyx_PyType_GetSlot(type, tp_traverse, traverseproc)) == current_tp_traverse) type = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*); if (type && tp_traverse) return tp_traverse(obj, v, a); return 0; } /* CallNextTpClear */ static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) { PyTypeObject* type = Py_TYPE(obj); inquiry tp_clear = NULL; while (type && __Pyx_PyType_GetSlot(type, tp_clear, inquiry) != current_tp_clear) type = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*); while (type && (tp_clear = __Pyx_PyType_GetSlot(type, tp_clear, inquiry)) == current_tp_clear) type = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*); if (type && tp_clear) tp_clear(obj); } /* FixUpExtensionType */ #if CYTHON_USE_TYPE_SPECS static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) { #if PY_VERSION_HEX > 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API CYTHON_UNUSED_VAR(spec); CYTHON_UNUSED_VAR(type); #else const PyType_Slot *slot = spec->slots; while (slot && slot->slot && slot->slot != Py_tp_members) slot++; if (slot && slot->slot == Py_tp_members) { int changed = 0; #if !(PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON) const #endif PyMemberDef *memb = (PyMemberDef*) slot->pfunc; while (memb && memb->name) { if (memb->name[0] == '_' && memb->name[1] == '_') { #if PY_VERSION_HEX < 0x030900b1 if (strcmp(memb->name, "__weaklistoffset__") == 0) { assert(memb->type == T_PYSSIZET); assert(memb->flags == READONLY); type->tp_weaklistoffset = memb->offset; changed = 1; } else if (strcmp(memb->name, "__dictoffset__") == 0) { assert(memb->type == T_PYSSIZET); assert(memb->flags == READONLY); type->tp_dictoffset = memb->offset; changed = 1; } #if CYTHON_METH_FASTCALL else if (strcmp(memb->name, "__vectorcalloffset__") == 0) { assert(memb->type == T_PYSSIZET); assert(memb->flags == READONLY); #if PY_VERSION_HEX >= 0x030800b4 type->tp_vectorcall_offset = memb->offset; #else type->tp_print = (printfunc) memb->offset; #endif changed = 1; } #endif #else if ((0)); #endif #if PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON else if (strcmp(memb->name, "__module__") == 0) { PyObject *descr; assert(memb->type == T_OBJECT); assert(memb->flags == 0 || memb->flags == READONLY); descr = PyDescr_NewMember(type, memb); if (unlikely(!descr)) return -1; if (unlikely(PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr) < 0)) { Py_DECREF(descr); return -1; } Py_DECREF(descr); changed = 1; } #endif } memb++; } if (changed) PyType_Modified(type); } #endif return 0; } #endif /* ValidateBasesTuple */ #if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) { Py_ssize_t i, n; #if CYTHON_ASSUME_SAFE_MACROS n = PyTuple_GET_SIZE(bases); #else n = PyTuple_Size(bases); if (n < 0) return -1; #endif for (i = 1; i < n; i++) { #if CYTHON_AVOID_BORROWED_REFS PyObject *b0 = PySequence_GetItem(bases, i); if (!b0) return -1; #elif CYTHON_ASSUME_SAFE_MACROS PyObject *b0 = PyTuple_GET_ITEM(bases, i); #else PyObject *b0 = PyTuple_GetItem(bases, i); if (!b0) return -1; #endif PyTypeObject *b; #if PY_MAJOR_VERSION < 3 if (PyClass_Check(b0)) { PyErr_Format(PyExc_TypeError, "base class '%.200s' is an old-style class", PyString_AS_STRING(((PyClassObject*)b0)->cl_name)); #if CYTHON_AVOID_BORROWED_REFS Py_DECREF(b0); #endif return -1; } #endif b = (PyTypeObject*) b0; if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE)) { __Pyx_TypeName b_name = __Pyx_PyType_GetName(b); PyErr_Format(PyExc_TypeError, "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name); __Pyx_DECREF_TypeName(b_name); #if CYTHON_AVOID_BORROWED_REFS Py_DECREF(b0); #endif return -1; } if (dictoffset == 0) { Py_ssize_t b_dictoffset = 0; #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY b_dictoffset = b->tp_dictoffset; #else PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__"); if (!py_b_dictoffset) goto dictoffset_return; b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset); Py_DECREF(py_b_dictoffset); if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return; #endif if (b_dictoffset) { { __Pyx_TypeName b_name = __Pyx_PyType_GetName(b); PyErr_Format(PyExc_TypeError, "extension type '%.200s' has no __dict__ slot, " "but base type '" __Pyx_FMT_TYPENAME "' has: " "either add 'cdef dict __dict__' to the extension type " "or add '__slots__ = [...]' to the base type", type_name, b_name); __Pyx_DECREF_TypeName(b_name); } #if !(CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY) dictoffset_return: #endif #if CYTHON_AVOID_BORROWED_REFS Py_DECREF(b0); #endif return -1; } } #if CYTHON_AVOID_BORROWED_REFS Py_DECREF(b0); #endif } return 0; } #endif /* PyType_Ready */ static int __Pyx_PyType_Ready(PyTypeObject *t) { #if CYTHON_USE_TYPE_SPECS || !(CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API) || defined(PYSTON_MAJOR_VERSION) (void)__Pyx_PyObject_CallMethod0; #if CYTHON_USE_TYPE_SPECS (void)__Pyx_validate_bases_tuple; #endif return PyType_Ready(t); #else int r; PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*); if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1)) return -1; #if PY_VERSION_HEX >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION) { int gc_was_enabled; #if PY_VERSION_HEX >= 0x030A00b1 gc_was_enabled = PyGC_Disable(); (void)__Pyx_PyObject_CallMethod0; #else PyObject *ret, *py_status; PyObject *gc = NULL; #if PY_VERSION_HEX >= 0x030700a1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) gc = PyImport_GetModule(__pyx_kp_u_gc); #endif if (unlikely(!gc)) gc = PyImport_Import(__pyx_kp_u_gc); if (unlikely(!gc)) return -1; py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_isenabled); if (unlikely(!py_status)) { Py_DECREF(gc); return -1; } gc_was_enabled = __Pyx_PyObject_IsTrue(py_status); Py_DECREF(py_status); if (gc_was_enabled > 0) { ret = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_disable); if (unlikely(!ret)) { Py_DECREF(gc); return -1; } Py_DECREF(ret); } else if (unlikely(gc_was_enabled == -1)) { Py_DECREF(gc); return -1; } #endif t->tp_flags |= Py_TPFLAGS_HEAPTYPE; #if PY_VERSION_HEX >= 0x030A0000 t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE; #endif #else (void)__Pyx_PyObject_CallMethod0; #endif r = PyType_Ready(t); #if PY_VERSION_HEX >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION) t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE; #if PY_VERSION_HEX >= 0x030A00b1 if (gc_was_enabled) PyGC_Enable(); #else if (gc_was_enabled) { PyObject *tp, *v, *tb; PyErr_Fetch(&tp, &v, &tb); ret = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_enable); if (likely(ret || r == -1)) { Py_XDECREF(ret); PyErr_Restore(tp, v, tb); } else { Py_XDECREF(tp); Py_XDECREF(v); Py_XDECREF(tb); r = -1; } } Py_DECREF(gc); #endif } #endif return r; #endif } /* PyObject_GenericGetAttrNoDict */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) { __Pyx_TypeName type_name = __Pyx_PyType_GetName(tp); PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'", type_name, attr_name); #else "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'", type_name, PyString_AS_STRING(attr_name)); #endif __Pyx_DECREF_TypeName(type_name); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) { PyObject *descr; PyTypeObject *tp = Py_TYPE(obj); if (unlikely(!PyString_Check(attr_name))) { return PyObject_GenericGetAttr(obj, attr_name); } assert(!tp->tp_dictoffset); descr = _PyType_Lookup(tp, attr_name); if (unlikely(!descr)) { return __Pyx_RaiseGenericGetAttributeError(tp, attr_name); } Py_INCREF(descr); #if PY_MAJOR_VERSION < 3 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS))) #endif { descrgetfunc f = Py_TYPE(descr)->tp_descr_get; if (unlikely(f)) { PyObject *res = f(descr, obj, (PyObject *)tp); Py_DECREF(descr); return res; } } return descr; } #endif /* PyObject_GenericGetAttr */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) { if (unlikely(Py_TYPE(obj)->tp_dictoffset)) { return PyObject_GenericGetAttr(obj, attr_name); } return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name); } #endif /* SetupReduce */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { int ret; PyObject *name_attr; name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_n_s_name_2); if (likely(name_attr)) { ret = PyObject_RichCompareBool(name_attr, name, Py_EQ); } else { ret = -1; } if (unlikely(ret < 0)) { PyErr_Clear(); ret = 0; } Py_XDECREF(name_attr); return ret; } static int __Pyx_setup_reduce(PyObject* type_obj) { int ret = 0; PyObject *object_reduce = NULL; PyObject *object_getstate = NULL; PyObject *object_reduce_ex = NULL; PyObject *reduce = NULL; PyObject *reduce_ex = NULL; PyObject *reduce_cython = NULL; PyObject *setstate = NULL; PyObject *setstate_cython = NULL; PyObject *getstate = NULL; #if CYTHON_USE_PYTYPE_LOOKUP getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate); #else getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate); if (!getstate && PyErr_Occurred()) { goto __PYX_BAD; } #endif if (getstate) { #if CYTHON_USE_PYTYPE_LOOKUP object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate); #else object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate); if (!object_getstate && PyErr_Occurred()) { goto __PYX_BAD; } #endif if (object_getstate != getstate) { goto __PYX_GOOD; } } #if CYTHON_USE_PYTYPE_LOOKUP object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #else object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #endif reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD; if (reduce_ex == object_reduce_ex) { #if CYTHON_USE_PYTYPE_LOOKUP object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD; #else object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD; #endif reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD; if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) { reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython); if (likely(reduce_cython)) { ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD; } else if (reduce == object_reduce || PyErr_Occurred()) { goto __PYX_BAD; } setstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate); if (!setstate) PyErr_Clear(); if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) { setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython); if (likely(setstate_cython)) { ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD; } else if (!setstate || PyErr_Occurred()) { goto __PYX_BAD; } } PyType_Modified((PyTypeObject*)type_obj); } } goto __PYX_GOOD; __PYX_BAD: if (!PyErr_Occurred()) { __Pyx_TypeName type_obj_name = __Pyx_PyType_GetName((PyTypeObject*)type_obj); PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name); __Pyx_DECREF_TypeName(type_obj_name); } ret = -1; __PYX_GOOD: #if !CYTHON_USE_PYTYPE_LOOKUP Py_XDECREF(object_reduce); Py_XDECREF(object_reduce_ex); Py_XDECREF(object_getstate); Py_XDECREF(getstate); #endif Py_XDECREF(reduce); Py_XDECREF(reduce_ex); Py_XDECREF(reduce_cython); Py_XDECREF(setstate); Py_XDECREF(setstate_cython); return ret; } #endif /* SetVTable */ static int __Pyx_SetVtable(PyTypeObject *type, void *vtable) { PyObject *ob = PyCapsule_New(vtable, 0, 0); if (unlikely(!ob)) goto bad; #if CYTHON_COMPILING_IN_LIMITED_API if (unlikely(PyObject_SetAttr((PyObject *) type, __pyx_n_s_pyx_vtable, ob) < 0)) #else if (unlikely(PyDict_SetItem(type->tp_dict, __pyx_n_s_pyx_vtable, ob) < 0)) #endif goto bad; Py_DECREF(ob); return 0; bad: Py_XDECREF(ob); return -1; } /* GetVTable */ static void* __Pyx_GetVtable(PyTypeObject *type) { void* ptr; #if CYTHON_COMPILING_IN_LIMITED_API PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_n_s_pyx_vtable); #else PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_n_s_pyx_vtable); #endif if (!ob) goto bad; ptr = PyCapsule_GetPointer(ob, 0); if (!ptr && !PyErr_Occurred()) PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type"); Py_DECREF(ob); return ptr; bad: Py_XDECREF(ob); return NULL; } /* MergeVTables */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __Pyx_MergeVtables(PyTypeObject *type) { int i; void** base_vtables; __Pyx_TypeName tp_base_name; __Pyx_TypeName base_name; void* unknown = (void*)-1; PyObject* bases = type->tp_bases; int base_depth = 0; { PyTypeObject* base = type->tp_base; while (base) { base_depth += 1; base = base->tp_base; } } base_vtables = (void**) malloc(sizeof(void*) * (size_t)(base_depth + 1)); base_vtables[0] = unknown; for (i = 1; i < PyTuple_GET_SIZE(bases); i++) { void* base_vtable = __Pyx_GetVtable(((PyTypeObject*)PyTuple_GET_ITEM(bases, i))); if (base_vtable != NULL) { int j; PyTypeObject* base = type->tp_base; for (j = 0; j < base_depth; j++) { if (base_vtables[j] == unknown) { base_vtables[j] = __Pyx_GetVtable(base); base_vtables[j + 1] = unknown; } if (base_vtables[j] == base_vtable) { break; } else if (base_vtables[j] == NULL) { goto bad; } base = base->tp_base; } } } PyErr_Clear(); free(base_vtables); return 0; bad: tp_base_name = __Pyx_PyType_GetName(type->tp_base); base_name = __Pyx_PyType_GetName((PyTypeObject*)PyTuple_GET_ITEM(bases, i)); PyErr_Format(PyExc_TypeError, "multiple bases have vtable conflict: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'", tp_base_name, base_name); __Pyx_DECREF_TypeName(tp_base_name); __Pyx_DECREF_TypeName(base_name); free(base_vtables); return -1; } #endif /* TypeImport */ #ifndef __PYX_HAVE_RT_ImportType_3_0_11 #define __PYX_HAVE_RT_ImportType_3_0_11 static PyTypeObject *__Pyx_ImportType_3_0_11(PyObject *module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_11 check_size) { PyObject *result = 0; char warning[200]; Py_ssize_t basicsize; Py_ssize_t itemsize; #if CYTHON_COMPILING_IN_LIMITED_API PyObject *py_basicsize; PyObject *py_itemsize; #endif result = PyObject_GetAttrString(module, class_name); if (!result) goto bad; if (!PyType_Check(result)) { PyErr_Format(PyExc_TypeError, "%.200s.%.200s is not a type object", module_name, class_name); goto bad; } #if !CYTHON_COMPILING_IN_LIMITED_API basicsize = ((PyTypeObject *)result)->tp_basicsize; itemsize = ((PyTypeObject *)result)->tp_itemsize; #else py_basicsize = PyObject_GetAttrString(result, "__basicsize__"); if (!py_basicsize) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; py_itemsize = PyObject_GetAttrString(result, "__itemsize__"); if (!py_itemsize) goto bad; itemsize = PyLong_AsSsize_t(py_itemsize); Py_DECREF(py_itemsize); py_itemsize = 0; if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; #endif if (itemsize) { if (size % alignment) { alignment = size % alignment; } if (itemsize < (Py_ssize_t)alignment) itemsize = (Py_ssize_t)alignment; } if ((size_t)(basicsize + itemsize) < size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize+itemsize); goto bad; } if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_11 && ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd-%zd from PyObject", module_name, class_name, size, basicsize, basicsize+itemsize); goto bad; } else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_11 && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; } return (PyTypeObject *)result; bad: Py_XDECREF(result); return NULL; } #endif /* FetchSharedCythonModule */ static PyObject *__Pyx_FetchSharedCythonABIModule(void) { return __Pyx_PyImport_AddModuleRef((char*) __PYX_ABI_MODULE_NAME); } /* FetchCommonType */ static int __Pyx_VerifyCachedType(PyObject *cached_type, const char *name, Py_ssize_t basicsize, Py_ssize_t expected_basicsize) { if (!PyType_Check(cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", name); return -1; } if (basicsize != expected_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", name); return -1; } return 0; } #if !CYTHON_USE_TYPE_SPECS static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* abi_module; const char* object_name; PyTypeObject *cached_type = NULL; abi_module = __Pyx_FetchSharedCythonABIModule(); if (!abi_module) return NULL; object_name = strrchr(type->tp_name, '.'); object_name = object_name ? object_name+1 : type->tp_name; cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name); if (cached_type) { if (__Pyx_VerifyCachedType( (PyObject *)cached_type, object_name, cached_type->tp_basicsize, type->tp_basicsize) < 0) { goto bad; } goto done; } if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0) goto bad; Py_INCREF(type); cached_type = type; done: Py_DECREF(abi_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } #else static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) { PyObject *abi_module, *cached_type = NULL; const char* object_name = strrchr(spec->name, '.'); object_name = object_name ? object_name+1 : spec->name; abi_module = __Pyx_FetchSharedCythonABIModule(); if (!abi_module) return NULL; cached_type = PyObject_GetAttrString(abi_module, object_name); if (cached_type) { Py_ssize_t basicsize; #if CYTHON_COMPILING_IN_LIMITED_API PyObject *py_basicsize; py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__"); if (unlikely(!py_basicsize)) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; #else basicsize = likely(PyType_Check(cached_type)) ? ((PyTypeObject*) cached_type)->tp_basicsize : -1; #endif if (__Pyx_VerifyCachedType( cached_type, object_name, basicsize, spec->basicsize) < 0) { goto bad; } goto done; } if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); CYTHON_UNUSED_VAR(module); cached_type = __Pyx_PyType_FromModuleAndSpec(abi_module, spec, bases); if (unlikely(!cached_type)) goto bad; if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad; if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad; done: Py_DECREF(abi_module); assert(cached_type == NULL || PyType_Check(cached_type)); return (PyTypeObject *) cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } #endif /* PyVectorcallFastCallDict */ #if CYTHON_METH_FASTCALL static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw) { PyObject *res = NULL; PyObject *kwnames; PyObject **newargs; PyObject **kwvalues; Py_ssize_t i, pos; size_t j; PyObject *key, *value; unsigned long keys_are_strings; Py_ssize_t nkw = PyDict_GET_SIZE(kw); newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0])); if (unlikely(newargs == NULL)) { PyErr_NoMemory(); return NULL; } for (j = 0; j < nargs; j++) newargs[j] = args[j]; kwnames = PyTuple_New(nkw); if (unlikely(kwnames == NULL)) { PyMem_Free(newargs); return NULL; } kwvalues = newargs + nargs; pos = i = 0; keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS; while (PyDict_Next(kw, &pos, &key, &value)) { keys_are_strings &= Py_TYPE(key)->tp_flags; Py_INCREF(key); Py_INCREF(value); PyTuple_SET_ITEM(kwnames, i, key); kwvalues[i] = value; i++; } if (unlikely(!keys_are_strings)) { PyErr_SetString(PyExc_TypeError, "keywords must be strings"); goto cleanup; } res = vc(func, newargs, nargs, kwnames); cleanup: Py_DECREF(kwnames); for (i = 0; i < nkw; i++) Py_DECREF(kwvalues[i]); PyMem_Free(newargs); return res; } static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw) { if (likely(kw == NULL) || PyDict_GET_SIZE(kw) == 0) { return vc(func, args, nargs, NULL); } return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw); } #endif /* CythonFunctionShared */ #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) { if (__Pyx_CyFunction_Check(func)) { return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc; } else if (PyCFunction_Check(func)) { return PyCFunction_GetFunction(func) == (PyCFunction) cfunc; } return 0; } #else static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) { return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc; } #endif static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) { #if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API __Pyx_Py_XDECREF_SET( __Pyx_CyFunction_GetClassObj(f), ((classobj) ? __Pyx_NewRef(classobj) : NULL)); #else __Pyx_Py_XDECREF_SET( ((PyCMethodObject *) (f))->mm_class, (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL)); #endif } static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) { CYTHON_UNUSED_VAR(closure); if (unlikely(op->func_doc == NULL)) { #if CYTHON_COMPILING_IN_LIMITED_API op->func_doc = PyObject_GetAttrString(op->func, "__doc__"); if (unlikely(!op->func_doc)) return NULL; #else if (((PyCFunctionObject*)op)->m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); #else op->func_doc = PyString_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } #endif } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); if (value == NULL) { value = Py_None; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_doc, value); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); if (unlikely(op->func_name == NULL)) { #if CYTHON_COMPILING_IN_LIMITED_API op->func_name = PyObject_GetAttrString(op->func, "__name__"); #elif PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name); #else op->func_name = PyString_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_name, value); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_qualname, value); return 0; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_dict, value); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(op); CYTHON_UNUSED_VAR(context); Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context) { PyObject* result = (op->func_code) ? op->func_code : Py_None; CYTHON_UNUSED_VAR(context); Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) { CYTHON_UNUSED_VAR(context); if (!value) { value = Py_None; } else if (unlikely(value != Py_None && !PyTuple_Check(value))) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not " "currently affect the values used in function calls", 1); Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->defaults_tuple, value); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) { PyObject* result = op->defaults_tuple; CYTHON_UNUSED_VAR(context); if (unlikely(!result)) { if (op->defaults_getter) { if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) { CYTHON_UNUSED_VAR(context); if (!value) { value = Py_None; } else if (unlikely(value != Py_None && !PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not " "currently affect the values used in function calls", 1); Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) { PyObject* result = op->defaults_kwdict; CYTHON_UNUSED_VAR(context); if (unlikely(!result)) { if (op->defaults_getter) { if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) { CYTHON_UNUSED_VAR(context); if (!value || value == Py_None) { value = NULL; } else if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); __Pyx_Py_XDECREF_SET(op->func_annotations, value); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) { PyObject* result = op->func_annotations; CYTHON_UNUSED_VAR(context); if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyObject * __Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) { int is_coroutine; CYTHON_UNUSED_VAR(context); if (op->func_is_coroutine) { return __Pyx_NewRef(op->func_is_coroutine); } is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE; #if PY_VERSION_HEX >= 0x03050000 if (is_coroutine) { PyObject *module, *fromlist, *marker = __pyx_n_s_is_coroutine; fromlist = PyList_New(1); if (unlikely(!fromlist)) return NULL; Py_INCREF(marker); #if CYTHON_ASSUME_SAFE_MACROS PyList_SET_ITEM(fromlist, 0, marker); #else if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) { Py_DECREF(marker); Py_DECREF(fromlist); return NULL; } #endif module = PyImport_ImportModuleLevelObject(__pyx_n_s_asyncio_coroutines, NULL, NULL, fromlist, 0); Py_DECREF(fromlist); if (unlikely(!module)) goto ignore; op->func_is_coroutine = __Pyx_PyObject_GetAttrStr(module, marker); Py_DECREF(module); if (likely(op->func_is_coroutine)) { return __Pyx_NewRef(op->func_is_coroutine); } ignore: PyErr_Clear(); } #endif op->func_is_coroutine = __Pyx_PyBool_FromLong(is_coroutine); return __Pyx_NewRef(op->func_is_coroutine); } #if CYTHON_COMPILING_IN_LIMITED_API static PyObject * __Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); return PyObject_GetAttrString(op->func, "__module__"); } static int __Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) { CYTHON_UNUSED_VAR(context); return PyObject_SetAttrString(op->func, "__module__", value); } #endif static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {(char *) "_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0}, #if CYTHON_COMPILING_IN_LIMITED_API {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0}, #endif {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { #if !CYTHON_COMPILING_IN_LIMITED_API {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0}, #endif #if CYTHON_USE_TYPE_SPECS {(char *) "__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0}, #if CYTHON_METH_FASTCALL #if CYTHON_BACKPORT_VECTORCALL {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0}, #else #if !CYTHON_COMPILING_IN_LIMITED_API {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0}, #endif #endif #endif #if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0}, #else {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0}, #endif #endif {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args) { CYTHON_UNUSED_VAR(args); #if PY_MAJOR_VERSION >= 3 Py_INCREF(m->func_qualname); return m->func_qualname; #else return PyString_FromString(((PyCFunctionObject*)m)->m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist) #endif static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { #if !CYTHON_COMPILING_IN_LIMITED_API PyCFunctionObject *cf = (PyCFunctionObject*) op; #endif if (unlikely(op == NULL)) return NULL; #if CYTHON_COMPILING_IN_LIMITED_API op->func = PyCFunction_NewEx(ml, (PyObject*)op, module); if (unlikely(!op->func)) return NULL; #endif op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; #if !CYTHON_COMPILING_IN_LIMITED_API cf->m_ml = ml; cf->m_self = (PyObject *) op; #endif Py_XINCREF(closure); op->func_closure = closure; #if !CYTHON_COMPILING_IN_LIMITED_API Py_XINCREF(module); cf->m_module = module; #endif op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; #if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API op->func_classobj = NULL; #else ((PyCMethodObject*)op)->mm_class = NULL; #endif op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults_size = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; op->func_is_coroutine = NULL; #if CYTHON_METH_FASTCALL switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) { case METH_NOARGS: __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS; break; case METH_O: __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O; break; case METH_METHOD | METH_FASTCALL | METH_KEYWORDS: __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD; break; case METH_FASTCALL | METH_KEYWORDS: __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS; break; case METH_VARARGS | METH_KEYWORDS: __Pyx_CyFunction_func_vectorcall(op) = NULL; break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); Py_DECREF(op); return NULL; } #endif return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); #if CYTHON_COMPILING_IN_LIMITED_API Py_CLEAR(m->func); #else Py_CLEAR(((PyCFunctionObject*)m)->m_module); #endif Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); #if !CYTHON_COMPILING_IN_LIMITED_API #if PY_VERSION_HEX < 0x030900B1 Py_CLEAR(__Pyx_CyFunction_GetClassObj(m)); #else { PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class; ((PyCMethodObject *) (m))->mm_class = NULL; Py_XDECREF(cls); } #endif #endif Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); Py_CLEAR(m->func_is_coroutine); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m) { if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); __Pyx_PyHeapTypeObject_GC_Del(m); } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); __Pyx__CyFunction_dealloc(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); #if CYTHON_COMPILING_IN_LIMITED_API Py_VISIT(m->func); #else Py_VISIT(((PyCFunctionObject*)m)->m_module); #endif Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); #if !CYTHON_COMPILING_IN_LIMITED_API Py_VISIT(__Pyx_CyFunction_GetClassObj(m)); #endif Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); Py_VISIT(m->func_is_coroutine); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("", op->func_qualname, (void *)op); #else return PyString_FromFormat("", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { #if CYTHON_COMPILING_IN_LIMITED_API PyObject *f = ((__pyx_CyFunctionObject*)func)->func; PyObject *py_name = NULL; PyCFunction meth; int flags; meth = PyCFunction_GetFunction(f); if (unlikely(!meth)) return NULL; flags = PyCFunction_GetFlags(f); if (unlikely(flags < 0)) return NULL; #else PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; int flags = f->m_ml->ml_flags; #endif Py_ssize_t size; switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { #if CYTHON_ASSUME_SAFE_MACROS size = PyTuple_GET_SIZE(arg); #else size = PyTuple_Size(arg); if (unlikely(size < 0)) return NULL; #endif if (likely(size == 0)) return (*meth)(self, NULL); #if CYTHON_COMPILING_IN_LIMITED_API py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL); if (!py_name) return NULL; PyErr_Format(PyExc_TypeError, "%.200S() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", py_name, size); Py_DECREF(py_name); #else PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); #endif return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { #if CYTHON_ASSUME_SAFE_MACROS size = PyTuple_GET_SIZE(arg); #else size = PyTuple_Size(arg); if (unlikely(size < 0)) return NULL; #endif if (likely(size == 1)) { PyObject *result, *arg0; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS arg0 = PyTuple_GET_ITEM(arg, 0); #else arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; #endif result = (*meth)(self, arg0); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_DECREF(arg0); #endif return result; } #if CYTHON_COMPILING_IN_LIMITED_API py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL); if (!py_name) return NULL; PyErr_Format(PyExc_TypeError, "%.200S() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", py_name, size); Py_DECREF(py_name); #else PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); #endif return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); return NULL; } #if CYTHON_COMPILING_IN_LIMITED_API py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL); if (!py_name) return NULL; PyErr_Format(PyExc_TypeError, "%.200S() takes no keyword arguments", py_name); Py_DECREF(py_name); #else PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); #endif return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *self, *result; #if CYTHON_COMPILING_IN_LIMITED_API self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func); if (unlikely(!self) && PyErr_Occurred()) return NULL; #else self = ((PyCFunctionObject*)func)->m_self; #endif result = __Pyx_CyFunction_CallMethod(func, self, arg, kw); return result; } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; #if CYTHON_METH_FASTCALL __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc); if (vc) { #if CYTHON_ASSUME_SAFE_MACROS return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw); #else (void) &__Pyx_PyVectorcall_FastCallDict; return PyVectorcall_Call(func, args, kw); #endif } #endif if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; #if CYTHON_ASSUME_SAFE_MACROS argc = PyTuple_GET_SIZE(args); #else argc = PyTuple_Size(args); if (unlikely(!argc) < 0) return NULL; #endif new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); #if PY_MAJOR_VERSION > 2 PyErr_Format(PyExc_TypeError, "unbound method %.200S() needs an argument", cyfunc->func_qualname); #else PyErr_SetString(PyExc_TypeError, "unbound method needs an argument"); #endif return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } #if CYTHON_METH_FASTCALL static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames) { int ret = 0; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { if (unlikely(nargs < 1)) { PyErr_Format(PyExc_TypeError, "%.200s() needs an argument", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name); return -1; } ret = 1; } if (unlikely(kwnames) && unlikely(PyTuple_GET_SIZE(kwnames))) { PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name); return -1; } return ret; } static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } if (unlikely(nargs != 0)) { PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", def->ml_name, nargs); return NULL; } return def->ml_meth(self, NULL); } static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } if (unlikely(nargs != 1)) { PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", def->ml_name, nargs); return NULL; } return def->ml_meth(self, args[0]); } static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); } static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc); #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } return ((__Pyx_PyCMethod)(void(*)(void))def->ml_meth)(self, cls, args, (size_t)nargs, kwnames); } #endif #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_CyFunctionType_slots[] = { {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc}, {Py_tp_repr, (void *)__Pyx_CyFunction_repr}, {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod}, {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse}, {Py_tp_clear, (void *)__Pyx_CyFunction_clear}, {Py_tp_methods, (void *)__pyx_CyFunction_methods}, {Py_tp_members, (void *)__pyx_CyFunction_members}, {Py_tp_getset, (void *)__pyx_CyFunction_getsets}, {Py_tp_descr_get, (void *)__Pyx_PyMethod_New}, {0, 0}, }; static PyType_Spec __pyx_CyFunctionType_spec = { __PYX_TYPE_MODULE_PREFIX "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, #ifdef Py_TPFLAGS_METHOD_DESCRIPTOR Py_TPFLAGS_METHOD_DESCRIPTOR | #endif #if (defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL) _Py_TPFLAGS_HAVE_VECTORCALL | #endif Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, __pyx_CyFunctionType_slots }; #else static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) __PYX_TYPE_MODULE_PREFIX "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, #if !CYTHON_METH_FASTCALL 0, #elif CYTHON_BACKPORT_VECTORCALL (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall), #else offsetof(PyCFunctionObject, vectorcall), #endif 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, #ifdef Py_TPFLAGS_METHOD_DESCRIPTOR Py_TPFLAGS_METHOD_DESCRIPTOR | #endif #if defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL _Py_TPFLAGS_HAVE_VECTORCALL | #endif Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_PyMethod_New, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if __PYX_NEED_TP_PRINT_SLOT 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if PY_VERSION_HEX >= 0x030d00A4 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; #endif static int __pyx_CyFunction_init(PyObject *module) { #if CYTHON_USE_TYPE_SPECS __pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_CyFunctionType_spec, NULL); #else CYTHON_UNUSED_VAR(module); __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); #endif if (unlikely(__pyx_CyFunctionType == NULL)) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (unlikely(!m->defaults)) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; m->defaults_size = size; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* CythonFunction */ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { PyObject *op = __Pyx_CyFunction_Init( PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType), ml, flags, qualname, closure, module, globals, code ); if (likely(op)) { PyObject_GC_Track(op); } return op; } /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON PyObject **cython_runtime_dict; #endif CYTHON_MAYBE_UNUSED_VAR(tstate); if (unlikely(!__pyx_cython_runtime)) { return c_line; } __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); #if CYTHON_COMPILING_IN_CPYTHON cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); if (likely(cython_runtime_dict)) { __PYX_PY_DICT_LOOKUP_IF_MODIFIED( use_cline, *cython_runtime_dict, __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)) } else #endif { PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); if (use_cline_obj) { use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; Py_DECREF(use_cline_obj); } else { PyErr_Clear(); use_cline = NULL; } } if (!use_cline) { c_line = 0; (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { c_line = 0; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); return c_line; } #endif /* CodeObjectCache */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } #endif /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif #if CYTHON_COMPILING_IN_LIMITED_API static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict, PyObject *firstlineno, PyObject *name) { PyObject *replace = NULL; if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL; if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL; replace = PyObject_GetAttrString(code, "replace"); if (likely(replace)) { PyObject *result; result = PyObject_Call(replace, __pyx_empty_tuple, scratch_dict); Py_DECREF(replace); return result; } PyErr_Clear(); #if __PYX_LIMITED_VERSION_HEX < 0x030780000 { PyObject *compiled = NULL, *result = NULL; if (unlikely(PyDict_SetItemString(scratch_dict, "code", code))) return NULL; if (unlikely(PyDict_SetItemString(scratch_dict, "type", (PyObject*)(&PyType_Type)))) return NULL; compiled = Py_CompileString( "out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "", Py_file_input); if (!compiled) return NULL; result = PyEval_EvalCode(compiled, scratch_dict, scratch_dict); Py_DECREF(compiled); if (!result) PyErr_Print(); Py_DECREF(result); result = PyDict_GetItemString(scratch_dict, "out"); if (result) Py_INCREF(result); return result; } #else return NULL; #endif } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL; PyObject *replace = NULL, *getframe = NULL, *frame = NULL; PyObject *exc_type, *exc_value, *exc_traceback; int success = 0; if (c_line) { (void) __pyx_cfilenm; (void) __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line); } PyErr_Fetch(&exc_type, &exc_value, &exc_traceback); code_object = Py_CompileString("_getframe()", filename, Py_eval_input); if (unlikely(!code_object)) goto bad; py_py_line = PyLong_FromLong(py_line); if (unlikely(!py_py_line)) goto bad; py_funcname = PyUnicode_FromString(funcname); if (unlikely(!py_funcname)) goto bad; dict = PyDict_New(); if (unlikely(!dict)) goto bad; { PyObject *old_code_object = code_object; code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname); Py_DECREF(old_code_object); } if (unlikely(!code_object)) goto bad; getframe = PySys_GetObject("_getframe"); if (unlikely(!getframe)) goto bad; if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad; frame = PyEval_EvalCode(code_object, dict, dict); if (unlikely(!frame) || frame == Py_None) goto bad; success = 1; bad: PyErr_Restore(exc_type, exc_value, exc_traceback); Py_XDECREF(code_object); Py_XDECREF(py_py_line); Py_XDECREF(py_funcname); Py_XDECREF(dict); Py_XDECREF(replace); if (success) { PyTraceBack_Here( (struct _frame*)frame); } Py_XDECREF(frame); } #else static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = NULL; PyObject *py_funcname = NULL; #if PY_MAJOR_VERSION < 3 PyObject *py_srcfile = NULL; py_srcfile = PyString_FromString(filename); if (!py_srcfile) goto bad; #endif if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); if (!py_funcname) goto bad; #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); if (!py_funcname) goto bad; funcname = PyUnicode_AsUTF8(py_funcname); if (!funcname) goto bad; #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); if (!py_funcname) goto bad; #endif } #if PY_MAJOR_VERSION < 3 py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); #else py_code = PyCode_NewEmpty(filename, funcname, py_line); #endif Py_XDECREF(py_funcname); return py_code; bad: Py_XDECREF(py_funcname); #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_srcfile); #endif return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject *ptype, *pvalue, *ptraceback; if (c_line) { c_line = __Pyx_CLineForTraceback(tstate, c_line); } py_code = __pyx_find_code_object(c_line ? -c_line : py_line); if (!py_code) { __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) { /* If the code object creation fails, then we should clear the fetched exception references and propagate the new exception */ Py_XDECREF(ptype); Py_XDECREF(pvalue); Py_XDECREF(ptraceback); goto bad; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); } py_frame = PyFrame_New( tstate, /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } #endif /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const int neg_one = (int) -1, const_zero = (int) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(int) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(int) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { unsigned char *bytes = (unsigned char *)&value; #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 if (is_unsigned) { return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); } else { return PyLong_FromNativeBytes(bytes, sizeof(value), -1); } #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 int one = 1; int little = (int)*(unsigned char *)&one; return _PyLong_FromByteArray(bytes, sizeof(int), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL; from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); if (!from_bytes) return NULL; py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const int neg_one = (int) -1, const_zero = (int) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(int) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } #endif if (unlikely(!PyLong_Check(x))) { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS if (unlikely(__Pyx_PyLong_IsNeg(x))) { goto raise_neg_overflow; } else if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)) } else { const digit* digits = __Pyx_PyLong_Digits(x); assert(__Pyx_PyLong_DigitCount(x) > 1); switch (__Pyx_PyLong_DigitCount(x)) { case 2: if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if ((sizeof(int) <= sizeof(unsigned long))) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)) } else { const digit* digits = __Pyx_PyLong_Digits(x); assert(__Pyx_PyLong_DigitCount(x) > 1); switch (__Pyx_PyLong_SignedDigitCount(x)) { case -2: if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } } #endif if ((sizeof(int) <= sizeof(long))) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { int val; int ret = -1; #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API Py_ssize_t bytes_copied = PyLong_AsNativeBytes( x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0)); if (unlikely(bytes_copied == -1)) { } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) { goto raise_overflow; } else { ret = 0; } #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray) int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; ret = _PyLong_AsByteArray((PyLongObject *)x, bytes, sizeof(val), is_little, !is_unsigned); #else PyObject *v; PyObject *stepval = NULL, *mask = NULL, *shift = NULL; int bits, remaining_bits, is_negative = 0; int chunk_size = (sizeof(long) < 8) ? 30 : 62; if (likely(PyLong_CheckExact(x))) { v = __Pyx_NewRef(x); } else { v = PyNumber_Long(x); if (unlikely(!v)) return (int) -1; assert(PyLong_CheckExact(v)); } { int result = PyObject_RichCompareBool(v, Py_False, Py_LT); if (unlikely(result < 0)) { Py_DECREF(v); return (int) -1; } is_negative = result == 1; } if (is_unsigned && unlikely(is_negative)) { Py_DECREF(v); goto raise_neg_overflow; } else if (is_negative) { stepval = PyNumber_Invert(v); Py_DECREF(v); if (unlikely(!stepval)) return (int) -1; } else { stepval = v; } v = NULL; val = (int) 0; mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done; shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done; for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) { PyObject *tmp, *digit; long idigit; digit = PyNumber_And(stepval, mask); if (unlikely(!digit)) goto done; idigit = PyLong_AsLong(digit); Py_DECREF(digit); if (unlikely(idigit < 0)) goto done; val |= ((int) idigit) << bits; tmp = PyNumber_Rshift(stepval, shift); if (unlikely(!tmp)) goto done; Py_DECREF(stepval); stepval = tmp; } Py_DECREF(shift); shift = NULL; Py_DECREF(mask); mask = NULL; { long idigit = PyLong_AsLong(stepval); if (unlikely(idigit < 0)) goto done; remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1); if (unlikely(idigit >= (1L << remaining_bits))) goto raise_overflow; val |= ((int) idigit) << bits; } if (!is_unsigned) { if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1)))) goto raise_overflow; if (is_negative) val = ~val; } ret = 0; done: Py_XDECREF(shift); Py_XDECREF(mask); Py_XDECREF(stepval); #endif if (unlikely(ret)) return (int) -1; return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const long neg_one = (long) -1, const_zero = (long) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { unsigned char *bytes = (unsigned char *)&value; #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4 if (is_unsigned) { return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1); } else { return PyLong_FromNativeBytes(bytes, sizeof(value), -1); } #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000 int one = 1; int little = (int)*(unsigned char *)&one; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL; from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); if (!from_bytes) return NULL; py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const long neg_one = (long) -1, const_zero = (long) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(long) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } #endif if (unlikely(!PyLong_Check(x))) { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS if (unlikely(__Pyx_PyLong_IsNeg(x))) { goto raise_neg_overflow; } else if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)) } else { const digit* digits = __Pyx_PyLong_Digits(x); assert(__Pyx_PyLong_DigitCount(x) > 1); switch (__Pyx_PyLong_DigitCount(x)) { case 2: if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } } #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if ((sizeof(long) <= sizeof(unsigned long))) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)) } else { const digit* digits = __Pyx_PyLong_Digits(x); assert(__Pyx_PyLong_DigitCount(x) > 1); switch (__Pyx_PyLong_SignedDigitCount(x)) { case -2: if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } } #endif if ((sizeof(long) <= sizeof(long))) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { long val; int ret = -1; #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API Py_ssize_t bytes_copied = PyLong_AsNativeBytes( x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0)); if (unlikely(bytes_copied == -1)) { } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) { goto raise_overflow; } else { ret = 0; } #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray) int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; ret = _PyLong_AsByteArray((PyLongObject *)x, bytes, sizeof(val), is_little, !is_unsigned); #else PyObject *v; PyObject *stepval = NULL, *mask = NULL, *shift = NULL; int bits, remaining_bits, is_negative = 0; int chunk_size = (sizeof(long) < 8) ? 30 : 62; if (likely(PyLong_CheckExact(x))) { v = __Pyx_NewRef(x); } else { v = PyNumber_Long(x); if (unlikely(!v)) return (long) -1; assert(PyLong_CheckExact(v)); } { int result = PyObject_RichCompareBool(v, Py_False, Py_LT); if (unlikely(result < 0)) { Py_DECREF(v); return (long) -1; } is_negative = result == 1; } if (is_unsigned && unlikely(is_negative)) { Py_DECREF(v); goto raise_neg_overflow; } else if (is_negative) { stepval = PyNumber_Invert(v); Py_DECREF(v); if (unlikely(!stepval)) return (long) -1; } else { stepval = v; } v = NULL; val = (long) 0; mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done; shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done; for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) { PyObject *tmp, *digit; long idigit; digit = PyNumber_And(stepval, mask); if (unlikely(!digit)) goto done; idigit = PyLong_AsLong(digit); Py_DECREF(digit); if (unlikely(idigit < 0)) goto done; val |= ((long) idigit) << bits; tmp = PyNumber_Rshift(stepval, shift); if (unlikely(!tmp)) goto done; Py_DECREF(stepval); stepval = tmp; } Py_DECREF(shift); shift = NULL; Py_DECREF(mask); mask = NULL; { long idigit = PyLong_AsLong(stepval); if (unlikely(idigit < 0)) goto done; remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1); if (unlikely(idigit >= (1L << remaining_bits))) goto raise_overflow; val |= ((long) idigit) << bits; } if (!is_unsigned) { if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1)))) goto raise_overflow; if (is_negative) val = ~val; } ret = 0; done: Py_XDECREF(shift); Py_XDECREF(mask); Py_XDECREF(stepval); #endif if (unlikely(ret)) return (long) -1; return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* FormatTypeName */ #if CYTHON_COMPILING_IN_LIMITED_API static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp) { PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp, __pyx_n_s_name_2); if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) { PyErr_Clear(); Py_XDECREF(name); name = __Pyx_NewRef(__pyx_n_s__293); } return name; } #endif /* PyObjectCall2Args */ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) { PyObject *args[3] = {NULL, arg1, arg2}; return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET); } /* PyObjectCallMethod1 */ #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C00A2) static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) { PyObject *result = __Pyx_PyObject_CallOneArg(method, arg); Py_DECREF(method); return result; } #endif static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C00A2 PyObject *args[2] = {obj, arg}; (void) __Pyx_PyObject_GetMethod; (void) __Pyx_PyObject_CallOneArg; (void) __Pyx_PyObject_Call2Args; return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL); #else PyObject *method = NULL, *result; int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); if (likely(is_method)) { result = __Pyx_PyObject_Call2Args(method, obj, arg); Py_DECREF(method); return result; } if (unlikely(!method)) return NULL; return __Pyx__PyObject_CallMethod1(method, arg); #endif } /* CoroutineBase */ #include #if PY_VERSION_HEX >= 0x030b00a6 #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif #define __Pyx_Coroutine_Undelegate(gen) Py_CLEAR((gen)->yieldfrom) static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *__pyx_tstate, PyObject **pvalue) { PyObject *et, *ev, *tb; PyObject *value = NULL; CYTHON_UNUSED_VAR(__pyx_tstate); __Pyx_ErrFetch(&et, &ev, &tb); if (!et) { Py_XDECREF(tb); Py_XDECREF(ev); Py_INCREF(Py_None); *pvalue = Py_None; return 0; } if (likely(et == PyExc_StopIteration)) { if (!ev) { Py_INCREF(Py_None); value = Py_None; } #if PY_VERSION_HEX >= 0x030300A0 else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))) { value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); } #endif else if (unlikely(PyTuple_Check(ev))) { if (PyTuple_GET_SIZE(ev) >= 1) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS value = PyTuple_GET_ITEM(ev, 0); Py_INCREF(value); #else value = PySequence_ITEM(ev, 0); #endif } else { Py_INCREF(Py_None); value = Py_None; } Py_DECREF(ev); } else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) { value = ev; } if (likely(value)) { Py_XDECREF(tb); Py_DECREF(et); *pvalue = value; return 0; } } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) { __Pyx_ErrRestore(et, ev, tb); return -1; } PyErr_NormalizeException(&et, &ev, &tb); if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) { __Pyx_ErrRestore(et, ev, tb); return -1; } Py_XDECREF(tb); Py_DECREF(et); #if PY_VERSION_HEX >= 0x030300A0 value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); #else { PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args); Py_DECREF(ev); if (likely(args)) { value = PySequence_GetItem(args, 0); Py_DECREF(args); } if (unlikely(!value)) { __Pyx_ErrRestore(NULL, NULL, NULL); Py_INCREF(Py_None); value = Py_None; } } #endif *pvalue = value; return 0; } static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) { #if PY_VERSION_HEX >= 0x030B00a4 Py_CLEAR(exc_state->exc_value); #else PyObject *t, *v, *tb; t = exc_state->exc_type; v = exc_state->exc_value; tb = exc_state->exc_traceback; exc_state->exc_type = NULL; exc_state->exc_value = NULL; exc_state->exc_traceback = NULL; Py_XDECREF(t); Py_XDECREF(v); Py_XDECREF(tb); #endif } #define __Pyx_Coroutine_AlreadyRunningError(gen) (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_AlreadyRunningError(__pyx_CoroutineObject *gen) { const char *msg; CYTHON_MAYBE_UNUSED_VAR(gen); if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check((PyObject*)gen)) { msg = "coroutine already executing"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) { msg = "async generator already executing"; #endif } else { msg = "generator already executing"; } PyErr_SetString(PyExc_ValueError, msg); } #define __Pyx_Coroutine_NotStartedError(gen) (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_NotStartedError(PyObject *gen) { const char *msg; CYTHON_MAYBE_UNUSED_VAR(gen); if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(gen)) { msg = "can't send non-None value to a just-started coroutine"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(gen)) { msg = "can't send non-None value to a just-started async generator"; #endif } else { msg = "can't send non-None value to a just-started generator"; } PyErr_SetString(PyExc_TypeError, msg); } #define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing) (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL) static void __Pyx__Coroutine_AlreadyTerminatedError(PyObject *gen, PyObject *value, int closing) { CYTHON_MAYBE_UNUSED_VAR(gen); CYTHON_MAYBE_UNUSED_VAR(closing); #ifdef __Pyx_Coroutine_USED if (!closing && __Pyx_Coroutine_Check(gen)) { PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine"); } else #endif if (value) { #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) PyErr_SetNone(__Pyx_PyExc_StopAsyncIteration); else #endif PyErr_SetNone(PyExc_StopIteration); } } static PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) { __Pyx_PyThreadState_declare PyThreadState *tstate; __Pyx_ExcInfoStruct *exc_state; PyObject *retval; assert(!self->is_running); if (unlikely(self->resume_label == 0)) { if (unlikely(value && value != Py_None)) { return __Pyx_Coroutine_NotStartedError((PyObject*)self); } } if (unlikely(self->resume_label == -1)) { return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing); } #if CYTHON_FAST_THREAD_STATE __Pyx_PyThreadState_assign tstate = __pyx_tstate; #else tstate = __Pyx_PyThreadState_Current; #endif exc_state = &self->gi_exc_state; if (exc_state->exc_value) { #if CYTHON_COMPILING_IN_PYPY #else PyObject *exc_tb; #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON exc_tb = PyException_GetTraceback(exc_state->exc_value); #elif PY_VERSION_HEX >= 0x030B00a4 exc_tb = ((PyBaseExceptionObject*) exc_state->exc_value)->traceback; #else exc_tb = exc_state->exc_traceback; #endif if (exc_tb) { PyTracebackObject *tb = (PyTracebackObject *) exc_tb; PyFrameObject *f = tb->tb_frame; assert(f->f_back == NULL); #if PY_VERSION_HEX >= 0x030B00A1 f->f_back = PyThreadState_GetFrame(tstate); #else Py_XINCREF(tstate->frame); f->f_back = tstate->frame; #endif #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON Py_DECREF(exc_tb); #endif } #endif } #if CYTHON_USE_EXC_INFO_STACK exc_state->previous_item = tstate->exc_info; tstate->exc_info = exc_state; #else if (exc_state->exc_type) { __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback); } else { __Pyx_Coroutine_ExceptionClear(exc_state); __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback); } #endif self->is_running = 1; retval = self->body(self, tstate, value); self->is_running = 0; #if CYTHON_USE_EXC_INFO_STACK exc_state = &self->gi_exc_state; tstate->exc_info = exc_state->previous_item; exc_state->previous_item = NULL; __Pyx_Coroutine_ResetFrameBackpointer(exc_state); #endif return retval; } static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) { #if CYTHON_COMPILING_IN_PYPY CYTHON_UNUSED_VAR(exc_state); #else PyObject *exc_tb; #if PY_VERSION_HEX >= 0x030B00a4 if (!exc_state->exc_value) return; exc_tb = PyException_GetTraceback(exc_state->exc_value); #else exc_tb = exc_state->exc_traceback; #endif if (likely(exc_tb)) { PyTracebackObject *tb = (PyTracebackObject *) exc_tb; PyFrameObject *f = tb->tb_frame; Py_CLEAR(f->f_back); #if PY_VERSION_HEX >= 0x030B00a4 Py_DECREF(exc_tb); #endif } #endif } static CYTHON_INLINE PyObject *__Pyx_Coroutine_MethodReturn(PyObject* gen, PyObject *retval) { CYTHON_MAYBE_UNUSED_VAR(gen); if (unlikely(!retval)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (!__Pyx_PyErr_Occurred()) { PyObject *exc = PyExc_StopIteration; #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) exc = __Pyx_PyExc_StopAsyncIteration; #endif __Pyx_PyErr_SetNone(exc); } } return retval; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) static CYTHON_INLINE PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) { #if PY_VERSION_HEX <= 0x030A00A1 return _PyGen_Send(gen, arg); #else PyObject *result; if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) { if (PyAsyncGen_CheckExact(gen)) { assert(result == Py_None); PyErr_SetNone(PyExc_StopAsyncIteration); } else if (result == Py_None) { PyErr_SetNone(PyExc_StopIteration); } else { #if PY_VERSION_HEX < 0x030d00A1 _PyGen_SetStopIterationValue(result); #else if (!PyTuple_Check(result) && !PyExceptionInstance_Check(result)) { PyErr_SetObject(PyExc_StopIteration, result); } else { PyObject *exc = __Pyx_PyObject_CallOneArg(PyExc_StopIteration, result); if (likely(exc != NULL)) { PyErr_SetObject(PyExc_StopIteration, exc); Py_DECREF(exc); } } #endif } Py_DECREF(result); result = NULL; } return result; #endif } #endif static CYTHON_INLINE PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) { PyObject *ret; PyObject *val = NULL; __Pyx_Coroutine_Undelegate(gen); __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val); ret = __Pyx_Coroutine_SendEx(gen, val, 0); Py_XDECREF(val); return ret; } static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) { PyObject *retval; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Coroutine_Send(yf, value); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, value); } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { ret = __Pyx_async_gen_asend_send(yf, value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyCoro_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif { if (value == Py_None) ret = __Pyx_PyObject_GetIterNextFunc(yf)(yf); else ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value); } gen->is_running = 0; if (likely(ret)) { return ret; } retval = __Pyx_Coroutine_FinishDelegation(gen); } else { retval = __Pyx_Coroutine_SendEx(gen, value, 0); } return __Pyx_Coroutine_MethodReturn(self, retval); } static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) { PyObject *retval = NULL; int err = 0; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL); if (!retval) return -1; } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { retval = __Pyx_async_gen_asend_close(yf, NULL); } else if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) { retval = __Pyx_async_gen_athrow_close(yf, NULL); } else #endif { PyObject *meth; gen->is_running = 1; meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_n_s_close); if (unlikely(!meth)) { if (unlikely(PyErr_Occurred())) { PyErr_WriteUnraisable(yf); } } else { retval = __Pyx_PyObject_CallNoArg(meth); Py_DECREF(meth); if (unlikely(!retval)) err = -1; } gen->is_running = 0; } Py_XDECREF(retval); return err; } static PyObject *__Pyx_Generator_Next(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Generator_Next(yf); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, Py_None); } else #endif ret = __Pyx_PyObject_GetIterNextFunc(yf)(yf); gen->is_running = 0; if (likely(ret)) { return ret; } return __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_SendEx(gen, Py_None, 0); } static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) { CYTHON_UNUSED_VAR(arg); return __Pyx_Coroutine_Close(self); } static PyObject *__Pyx_Coroutine_Close(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *retval, *raised_exception; PyObject *yf = gen->yieldfrom; int err = 0; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { Py_INCREF(yf); err = __Pyx_Coroutine_CloseIter(gen, yf); __Pyx_Coroutine_Undelegate(gen); Py_DECREF(yf); } if (err == 0) PyErr_SetNone(PyExc_GeneratorExit); retval = __Pyx_Coroutine_SendEx(gen, NULL, 1); if (unlikely(retval)) { const char *msg; Py_DECREF(retval); if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(self)) { msg = "coroutine ignored GeneratorExit"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(self)) { #if PY_VERSION_HEX < 0x03060000 msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)"; #else msg = "async generator ignored GeneratorExit"; #endif #endif } else { msg = "generator ignored GeneratorExit"; } PyErr_SetString(PyExc_RuntimeError, msg); return NULL; } raised_exception = PyErr_Occurred(); if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))) { if (raised_exception) PyErr_Clear(); Py_INCREF(Py_None); return Py_None; } return NULL; } static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb, PyObject *args, int close_on_genexit) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; Py_INCREF(yf); if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) { int err = __Pyx_Coroutine_CloseIter(gen, yf); Py_DECREF(yf); __Pyx_Coroutine_Undelegate(gen); if (err < 0) return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); goto throw_here; } gen->is_running = 1; if (0 #ifdef __Pyx_Generator_USED || __Pyx_Generator_CheckExact(yf) #endif #ifdef __Pyx_Coroutine_USED || __Pyx_Coroutine_Check(yf) #endif ) { ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit); #ifdef __Pyx_Coroutine_USED } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit); #endif } else { PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_n_s_throw); if (unlikely(!meth)) { Py_DECREF(yf); if (unlikely(PyErr_Occurred())) { gen->is_running = 0; return NULL; } __Pyx_Coroutine_Undelegate(gen); gen->is_running = 0; goto throw_here; } if (likely(args)) { ret = __Pyx_PyObject_Call(meth, args, NULL); } else { PyObject *cargs[4] = {NULL, typ, val, tb}; ret = __Pyx_PyObject_FastCall(meth, cargs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET); } Py_DECREF(meth); } gen->is_running = 0; Py_DECREF(yf); if (!ret) { ret = __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_MethodReturn(self, ret); } throw_here: __Pyx_Raise(typ, val, tb, NULL); return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); } static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) { PyObject *typ; PyObject *val = NULL; PyObject *tb = NULL; if (unlikely(!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb))) return NULL; return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1); } static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) { #if PY_VERSION_HEX >= 0x030B00a4 Py_VISIT(exc_state->exc_value); #else Py_VISIT(exc_state->exc_type); Py_VISIT(exc_state->exc_value); Py_VISIT(exc_state->exc_traceback); #endif return 0; } static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) { Py_VISIT(gen->closure); Py_VISIT(gen->classobj); Py_VISIT(gen->yieldfrom); return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg); } static int __Pyx_Coroutine_clear(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; Py_CLEAR(gen->closure); Py_CLEAR(gen->classobj); Py_CLEAR(gen->yieldfrom); __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state); #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer); } #endif Py_CLEAR(gen->gi_code); Py_CLEAR(gen->gi_frame); Py_CLEAR(gen->gi_name); Py_CLEAR(gen->gi_qualname); Py_CLEAR(gen->gi_modulename); return 0; } static void __Pyx_Coroutine_dealloc(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject_GC_UnTrack(gen); if (gen->gi_weakreflist != NULL) PyObject_ClearWeakRefs(self); if (gen->resume_label >= 0) { PyObject_GC_Track(self); #if PY_VERSION_HEX >= 0x030400a1 && CYTHON_USE_TP_FINALIZE if (unlikely(PyObject_CallFinalizerFromDealloc(self))) #else Py_TYPE(gen)->tp_del(self); if (unlikely(Py_REFCNT(self) > 0)) #endif { return; } PyObject_GC_UnTrack(self); } #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { /* We have to handle this case for asynchronous generators right here, because this code has to be between UNTRACK and GC_Del. */ Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer); } #endif __Pyx_Coroutine_clear(self); __Pyx_PyHeapTypeObject_GC_Del(gen); } static void __Pyx_Coroutine_del(PyObject *self) { PyObject *error_type, *error_value, *error_traceback; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; __Pyx_PyThreadState_declare if (gen->resume_label < 0) { return; } #if !CYTHON_USE_TP_FINALIZE assert(self->ob_refcnt == 0); __Pyx_SET_REFCNT(self, 1); #endif __Pyx_PyThreadState_assign __Pyx_ErrFetch(&error_type, &error_value, &error_traceback); #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self; PyObject *finalizer = agen->ag_finalizer; if (finalizer && !agen->ag_closed) { PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self); if (unlikely(!res)) { PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } __Pyx_ErrRestore(error_type, error_value, error_traceback); return; } } #endif if (unlikely(gen->resume_label == 0 && !error_value)) { #ifdef __Pyx_Coroutine_USED #ifdef __Pyx_Generator_USED if (!__Pyx_Generator_CheckExact(self)) #endif { PyObject_GC_UnTrack(self); #if PY_MAJOR_VERSION >= 3 || defined(PyErr_WarnFormat) if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0)) PyErr_WriteUnraisable(self); #else {PyObject *msg; char *cmsg; #if CYTHON_COMPILING_IN_PYPY msg = NULL; cmsg = (char*) "coroutine was never awaited"; #else char *cname; PyObject *qualname; qualname = gen->gi_qualname; cname = PyString_AS_STRING(qualname); msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname); if (unlikely(!msg)) { PyErr_Clear(); cmsg = (char*) "coroutine was never awaited"; } else { cmsg = PyString_AS_STRING(msg); } #endif if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0)) PyErr_WriteUnraisable(self); Py_XDECREF(msg);} #endif PyObject_GC_Track(self); } #endif } else { PyObject *res = __Pyx_Coroutine_Close(self); if (unlikely(!res)) { if (PyErr_Occurred()) PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } } __Pyx_ErrRestore(error_type, error_value, error_traceback); #if !CYTHON_USE_TP_FINALIZE assert(Py_REFCNT(self) > 0); if (likely(--self->ob_refcnt == 0)) { return; } { Py_ssize_t refcnt = Py_REFCNT(self); _Py_NewReference(self); __Pyx_SET_REFCNT(self, refcnt); } #if CYTHON_COMPILING_IN_CPYTHON assert(PyType_IS_GC(Py_TYPE(self)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); _Py_DEC_REFTOTAL; #endif #ifdef COUNT_ALLOCS --Py_TYPE(self)->tp_frees; --Py_TYPE(self)->tp_allocs; #endif #endif } static PyObject * __Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, void *context) { PyObject *name = self->gi_name; CYTHON_UNUSED_VAR(context); if (unlikely(!name)) name = Py_None; Py_INCREF(name); return name; } static int __Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(self->gi_name, value); return 0; } static PyObject * __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, void *context) { PyObject *name = self->gi_qualname; CYTHON_UNUSED_VAR(context); if (unlikely(!name)) name = Py_None; Py_INCREF(name); return name; } static int __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(self->gi_qualname, value); return 0; } static PyObject * __Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, void *context) { PyObject *frame = self->gi_frame; CYTHON_UNUSED_VAR(context); if (!frame) { if (unlikely(!self->gi_code)) { Py_RETURN_NONE; } frame = (PyObject *) PyFrame_New( PyThreadState_Get(), /*PyThreadState *tstate,*/ (PyCodeObject*) self->gi_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (unlikely(!frame)) return NULL; self->gi_frame = frame; } Py_INCREF(frame); return frame; } static __pyx_CoroutineObject *__Pyx__Coroutine_New( PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name) { __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type); if (unlikely(!gen)) return NULL; return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name); } static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name) { gen->body = body; gen->closure = closure; Py_XINCREF(closure); gen->is_running = 0; gen->resume_label = 0; gen->classobj = NULL; gen->yieldfrom = NULL; #if PY_VERSION_HEX >= 0x030B00a4 gen->gi_exc_state.exc_value = NULL; #else gen->gi_exc_state.exc_type = NULL; gen->gi_exc_state.exc_value = NULL; gen->gi_exc_state.exc_traceback = NULL; #endif #if CYTHON_USE_EXC_INFO_STACK gen->gi_exc_state.previous_item = NULL; #endif gen->gi_weakreflist = NULL; Py_XINCREF(qualname); gen->gi_qualname = qualname; Py_XINCREF(name); gen->gi_name = name; Py_XINCREF(module_name); gen->gi_modulename = module_name; Py_XINCREF(code); gen->gi_code = code; gen->gi_frame = NULL; PyObject_GC_Track(gen); return gen; } /* PatchModuleWithCoroutine */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) int result; PyObject *globals, *result_obj; globals = PyDict_New(); if (unlikely(!globals)) goto ignore; result = PyDict_SetItemString(globals, "_cython_coroutine_type", #ifdef __Pyx_Coroutine_USED (PyObject*)__pyx_CoroutineType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; result = PyDict_SetItemString(globals, "_cython_generator_type", #ifdef __Pyx_Generator_USED (PyObject*)__pyx_GeneratorType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)) goto ignore; result_obj = PyRun_String(py_code, Py_file_input, globals, globals); if (unlikely(!result_obj)) goto ignore; Py_DECREF(result_obj); Py_DECREF(globals); return module; ignore: Py_XDECREF(globals); PyErr_WriteUnraisable(module); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)) { Py_DECREF(module); module = NULL; } #else py_code++; #endif return module; } /* PatchGeneratorABC */ #ifndef CYTHON_REGISTER_ABCS #define CYTHON_REGISTER_ABCS 1 #endif #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static PyObject* __Pyx_patch_abc_module(PyObject *module); static PyObject* __Pyx_patch_abc_module(PyObject *module) { module = __Pyx_Coroutine_patch_module( module, "" "if _cython_generator_type is not None:\n" " try: Generator = _module.Generator\n" " except AttributeError: pass\n" " else: Generator.register(_cython_generator_type)\n" "if _cython_coroutine_type is not None:\n" " try: Coroutine = _module.Coroutine\n" " except AttributeError: pass\n" " else: Coroutine.register(_cython_coroutine_type)\n" ); return module; } #endif static int __Pyx_patch_abc(void) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static int abc_patched = 0; if (CYTHON_REGISTER_ABCS && !abc_patched) { PyObject *module; module = PyImport_ImportModule((PY_MAJOR_VERSION >= 3) ? "collections.abc" : "collections"); if (unlikely(!module)) { PyErr_WriteUnraisable(NULL); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, ((PY_MAJOR_VERSION >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module"), 1) < 0)) { return -1; } } else { module = __Pyx_patch_abc_module(module); abc_patched = 1; if (unlikely(!module)) return -1; Py_DECREF(module); } module = PyImport_ImportModule("backports_abc"); if (module) { module = __Pyx_patch_abc_module(module); Py_XDECREF(module); } if (!module) { PyErr_Clear(); } } #else if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL); #endif return 0; } /* Generator */ static PyMethodDef __pyx_Generator_methods[] = { {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O, (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")}, {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS, (char*) PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")}, {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS, (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")}, {0, 0, 0, 0} }; static PyMemberDef __pyx_Generator_memberlist[] = { {(char *) "gi_running", T_BOOL, offsetof(__pyx_CoroutineObject, is_running), READONLY, NULL}, {(char*) "gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY, (char*) PyDoc_STR("object being iterated by 'yield from', or None")}, {(char*) "gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL}, {(char *) "__module__", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0}, #if CYTHON_USE_TYPE_SPECS {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY, 0}, #endif {0, 0, 0, 0, 0} }; static PyGetSetDef __pyx_Generator_getsets[] = { {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name, (char*) PyDoc_STR("name of the generator"), 0}, {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname, (char*) PyDoc_STR("qualified name of the generator"), 0}, {(char *) "gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL, (char*) PyDoc_STR("Frame of the generator"), 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_GeneratorType_slots[] = { {Py_tp_dealloc, (void *)__Pyx_Coroutine_dealloc}, {Py_tp_traverse, (void *)__Pyx_Coroutine_traverse}, {Py_tp_iter, (void *)PyObject_SelfIter}, {Py_tp_iternext, (void *)__Pyx_Generator_Next}, {Py_tp_methods, (void *)__pyx_Generator_methods}, {Py_tp_members, (void *)__pyx_Generator_memberlist}, {Py_tp_getset, (void *)__pyx_Generator_getsets}, {Py_tp_getattro, (void *) __Pyx_PyObject_GenericGetAttrNoDict}, #if CYTHON_USE_TP_FINALIZE {Py_tp_finalize, (void *)__Pyx_Coroutine_del}, #endif {0, 0}, }; static PyType_Spec __pyx_GeneratorType_spec = { __PYX_TYPE_MODULE_PREFIX "generator", sizeof(__pyx_CoroutineObject), 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE, __pyx_GeneratorType_slots }; #else static PyTypeObject __pyx_GeneratorType_type = { PyVarObject_HEAD_INIT(0, 0) __PYX_TYPE_MODULE_PREFIX "generator", sizeof(__pyx_CoroutineObject), 0, (destructor) __Pyx_Coroutine_dealloc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE, 0, (traverseproc) __Pyx_Coroutine_traverse, 0, 0, offsetof(__pyx_CoroutineObject, gi_weakreflist), 0, (iternextfunc) __Pyx_Generator_Next, __pyx_Generator_methods, __pyx_Generator_memberlist, __pyx_Generator_getsets, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if CYTHON_USE_TP_FINALIZE 0, #else __Pyx_Coroutine_del, #endif 0, #if CYTHON_USE_TP_FINALIZE __Pyx_Coroutine_del, #elif PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if __PYX_NEED_TP_PRINT_SLOT 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if PY_VERSION_HEX >= 0x030d00A4 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; #endif static int __pyx_Generator_init(PyObject *module) { #if CYTHON_USE_TYPE_SPECS __pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_GeneratorType_spec, NULL); #else CYTHON_UNUSED_VAR(module); __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter; __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type); #endif if (unlikely(!__pyx_GeneratorType)) { return -1; } return 0; } /* CheckBinaryVersion */ static unsigned long __Pyx_get_runtime_version(void) { #if __PYX_LIMITED_VERSION_HEX >= 0x030B00A4 return Py_Version & ~0xFFUL; #else const char* rt_version = Py_GetVersion(); unsigned long version = 0; unsigned long factor = 0x01000000UL; unsigned int digit = 0; int i = 0; while (factor) { while ('0' <= rt_version[i] && rt_version[i] <= '9') { digit = digit * 10 + (unsigned int) (rt_version[i] - '0'); ++i; } version += factor * digit; if (rt_version[i] != '.') break; digit = 0; factor >>= 8; ++i; } return version; #endif } static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) { const unsigned long MAJOR_MINOR = 0xFFFF0000UL; if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR)) return 0; if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR))) return 1; { char message[200]; PyOS_snprintf(message, sizeof(message), "compile time Python version %d.%d " "of module '%.100s' " "%s " "runtime version %d.%d", (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF), __Pyx_MODULE_NAME, (allow_newer) ? "was newer than" : "does not match", (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF) ); return PyErr_WarnEx(NULL, message, 1); } } /* InitStrings */ #if PY_MAJOR_VERSION >= 3 static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) { if (t.is_unicode | t.is_str) { if (t.intern) { *str = PyUnicode_InternFromString(t.s); } else if (t.encoding) { *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL); } else { *str = PyUnicode_FromStringAndSize(t.s, t.n - 1); } } else { *str = PyBytes_FromStringAndSize(t.s, t.n - 1); } if (!*str) return -1; if (PyObject_Hash(*str) == -1) return -1; return 0; } #endif static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION >= 3 __Pyx_InitString(*t, t->p); #else if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } if (!*t->p) return -1; if (PyObject_Hash(*t->p) == -1) return -1; #endif ++t; } return 0; } #include static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) { size_t len = strlen(s); if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) { PyErr_SetString(PyExc_OverflowError, "byte string is too long"); return -1; } return (Py_ssize_t) len; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { Py_ssize_t len = __Pyx_ssize_strlen(c_str); if (unlikely(len < 0)) return NULL; return __Pyx_PyUnicode_FromStringAndSize(c_str, len); } static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) { Py_ssize_t len = __Pyx_ssize_strlen(c_str); if (unlikely(len < 0)) return NULL; return PyByteArray_FromStringAndSize(c_str, len); } static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #if !CYTHON_PEP393_ENABLED static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; } #else static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (likely(PyUnicode_IS_ASCII(o))) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif } #endif #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_LIMITED_API) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) { int retval; if (unlikely(!x)) return -1; retval = __Pyx_PyObject_IsTrue(x); Py_DECREF(x); return retval; } static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result)); #if PY_MAJOR_VERSION >= 3 if (PyLong_Check(result)) { if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "__int__ returned non-int (type " __Pyx_FMT_TYPENAME "). " "The ability to return an instance of a strict subclass of int is deprecated, " "and may be removed in a future version of Python.", result_type_name)) { __Pyx_DECREF_TypeName(result_type_name); Py_DECREF(result); return NULL; } __Pyx_DECREF_TypeName(result_type_name); return result; } #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME ")", type_name, type_name, result_type_name); __Pyx_DECREF_TypeName(result_type_name); Py_DECREF(result); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x) || PyLong_Check(x))) #else if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; res = m->nb_long(x); } #else if (likely(m && m->nb_int)) { name = "int"; res = m->nb_int(x); } #endif #else if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { res = PyNumber_Int(x); } #endif if (likely(res)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else if (unlikely(!PyLong_CheckExact(res))) { #endif return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(b); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS if (likely(__Pyx_PyLong_IsCompact(b))) { return __Pyx_PyLong_CompactValue(b); } else { const digit* digits = __Pyx_PyLong_Digits(b); const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b); switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) { if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) { return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o); #if PY_MAJOR_VERSION < 3 } else if (likely(PyInt_CheckExact(o))) { return PyInt_AS_LONG(o); #endif } else { Py_ssize_t ival; PyObject *x; x = PyNumber_Index(o); if (!x) return -1; ival = PyInt_AsLong(x); Py_DECREF(x); return ival; } } static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } /* #### Code section: utility_code_pragmas_end ### */ #ifdef _MSC_VER #pragma warning( pop ) #endif /* #### Code section: end ### */ #endif /* Py_PYTHON_H */