mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Upgrade Cython to 0.29.24
This commit is contained in:
parent
fe01ad41d9
commit
99d858e2fb
|
@ -23,6 +23,7 @@ Develop
|
||||||
- Fix ``envs_required=False`` behavior in ``Configuration.from_*()`` methods
|
- Fix ``envs_required=False`` behavior in ``Configuration.from_*()`` methods
|
||||||
to give a priority to the explicitly provided value.
|
to give a priority to the explicitly provided value.
|
||||||
- Update documentation and fix typos.
|
- Update documentation and fix typos.
|
||||||
|
- Regenerate C sources using Cython 0.29.24.
|
||||||
- Migrate tests to ``pytest``.
|
- Migrate tests to ``pytest``.
|
||||||
|
|
||||||
4.36.2
|
4.36.2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cython==0.29.22
|
cython==0.29.24
|
||||||
pytest
|
pytest
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
tox
|
tox
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
/* Generated by Cython 0.29.22 */
|
/* Generated by Cython 0.29.24 */
|
||||||
|
|
||||||
|
#ifndef PY_SSIZE_T_CLEAN
|
||||||
#define PY_SSIZE_T_CLEAN
|
#define PY_SSIZE_T_CLEAN
|
||||||
|
#endif /* PY_SSIZE_T_CLEAN */
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#ifndef Py_PYTHON_H
|
#ifndef Py_PYTHON_H
|
||||||
#error Python headers needed to compile C extensions, please install development version of Python.
|
#error Python headers needed to compile C extensions, please install development version of Python.
|
||||||
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
|
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
|
||||||
#error Cython requires Python 2.6+ or Python 3.3+.
|
#error Cython requires Python 2.6+ or Python 3.3+.
|
||||||
#else
|
#else
|
||||||
#define CYTHON_ABI "0_29_22"
|
#define CYTHON_ABI "0_29_24"
|
||||||
#define CYTHON_HEX_VERSION 0x001D16F0
|
#define CYTHON_HEX_VERSION 0x001D18F0
|
||||||
#define CYTHON_FUTURE_DIVISION 0
|
#define CYTHON_FUTURE_DIVISION 0
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#ifndef offsetof
|
#ifndef offsetof
|
||||||
|
@ -426,8 +428,12 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
|
||||||
#endif
|
#endif
|
||||||
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
|
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
|
||||||
#define CYTHON_PEP393_ENABLED 1
|
#define CYTHON_PEP393_ENABLED 1
|
||||||
|
#if defined(PyUnicode_IS_READY)
|
||||||
#define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
|
#define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
|
||||||
0 : _PyUnicode_Ready((PyObject *)(op)))
|
0 : _PyUnicode_Ready((PyObject *)(op)))
|
||||||
|
#else
|
||||||
|
#define __Pyx_PyUnicode_READY(op) (0)
|
||||||
|
#endif
|
||||||
#define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
|
#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_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
|
||||||
#define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
|
#define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
|
||||||
|
@ -436,7 +442,11 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
|
||||||
#define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
|
#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, ch)
|
#define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
|
||||||
#if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
|
#if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
|
||||||
|
#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)))
|
#define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
|
#define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
|
||||||
#endif
|
#endif
|
||||||
|
@ -2672,6 +2682,7 @@ typedef struct {
|
||||||
PyObject *gi_qualname;
|
PyObject *gi_qualname;
|
||||||
PyObject *gi_modulename;
|
PyObject *gi_modulename;
|
||||||
PyObject *gi_code;
|
PyObject *gi_code;
|
||||||
|
PyObject *gi_frame;
|
||||||
int resume_label;
|
int resume_label;
|
||||||
char is_running;
|
char is_running;
|
||||||
} __pyx_CoroutineObject;
|
} __pyx_CoroutineObject;
|
||||||
|
@ -10525,6 +10536,7 @@ static PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_
|
||||||
|
|
||||||
static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_3_async_ordered_shutdown(PyObject *__pyx_self, PyObject *__pyx_v_resources) {
|
static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_3_async_ordered_shutdown(PyObject *__pyx_self, PyObject *__pyx_v_resources) {
|
||||||
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_3__async_ordered_shutdown *__pyx_cur_scope;
|
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_3__async_ordered_shutdown *__pyx_cur_scope;
|
||||||
|
PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_23_async_ordered_shutdown_2generator4 = 0;
|
||||||
PyObject *__pyx_r = NULL;
|
PyObject *__pyx_r = NULL;
|
||||||
__Pyx_RefNannyDeclarations
|
__Pyx_RefNannyDeclarations
|
||||||
int __pyx_lineno = 0;
|
int __pyx_lineno = 0;
|
||||||
|
@ -10556,6 +10568,7 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
||||||
__pyx_L1_error:;
|
__pyx_L1_error:;
|
||||||
__Pyx_AddTraceback("dependency_injector.containers.DynamicContainer.shutdown_resources._async_ordered_shutdown", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
__Pyx_AddTraceback("dependency_injector.containers.DynamicContainer.shutdown_resources._async_ordered_shutdown", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
||||||
__pyx_r = NULL;
|
__pyx_r = NULL;
|
||||||
|
__Pyx_XDECREF(__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_23_async_ordered_shutdown_2generator4);
|
||||||
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
||||||
__Pyx_XGIVEREF(__pyx_r);
|
__Pyx_XGIVEREF(__pyx_r);
|
||||||
__Pyx_RefNannyFinishContext();
|
__Pyx_RefNannyFinishContext();
|
||||||
|
@ -11014,6 +11027,7 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
||||||
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_5__sync_ordered_shutdown *__pyx_cur_scope;
|
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_5__sync_ordered_shutdown *__pyx_cur_scope;
|
||||||
PyObject *__pyx_v_resources_to_shutdown = NULL;
|
PyObject *__pyx_v_resources_to_shutdown = NULL;
|
||||||
PyObject *__pyx_v_resource = NULL;
|
PyObject *__pyx_v_resource = NULL;
|
||||||
|
PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_22_sync_ordered_shutdown_2generator5 = 0;
|
||||||
PyObject *__pyx_r = NULL;
|
PyObject *__pyx_r = NULL;
|
||||||
__Pyx_RefNannyDeclarations
|
__Pyx_RefNannyDeclarations
|
||||||
PyObject *__pyx_t_1 = NULL;
|
PyObject *__pyx_t_1 = NULL;
|
||||||
|
@ -11188,6 +11202,7 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
||||||
__pyx_L0:;
|
__pyx_L0:;
|
||||||
__Pyx_XDECREF(__pyx_v_resources_to_shutdown);
|
__Pyx_XDECREF(__pyx_v_resources_to_shutdown);
|
||||||
__Pyx_XDECREF(__pyx_v_resource);
|
__Pyx_XDECREF(__pyx_v_resource);
|
||||||
|
__Pyx_XDECREF(__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_22_sync_ordered_shutdown_2generator5);
|
||||||
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
||||||
__Pyx_XGIVEREF(__pyx_r);
|
__Pyx_XGIVEREF(__pyx_r);
|
||||||
__Pyx_RefNannyFinishContext();
|
__Pyx_RefNannyFinishContext();
|
||||||
|
@ -11346,8 +11361,11 @@ static PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_
|
||||||
|
|
||||||
static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_33shutdown_resources(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
|
static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_33shutdown_resources(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
|
||||||
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_1_shutdown_resources *__pyx_cur_scope;
|
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_1_shutdown_resources *__pyx_cur_scope;
|
||||||
|
PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_2generator2 = 0;
|
||||||
PyObject *__pyx_v__async_ordered_shutdown = 0;
|
PyObject *__pyx_v__async_ordered_shutdown = 0;
|
||||||
|
PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_5generator3 = 0;
|
||||||
PyObject *__pyx_v__sync_ordered_shutdown = 0;
|
PyObject *__pyx_v__sync_ordered_shutdown = 0;
|
||||||
|
PyObject *__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_10generator6 = 0;
|
||||||
PyObject *__pyx_r = NULL;
|
PyObject *__pyx_r = NULL;
|
||||||
__Pyx_RefNannyDeclarations
|
__Pyx_RefNannyDeclarations
|
||||||
PyObject *__pyx_t_1 = NULL;
|
PyObject *__pyx_t_1 = NULL;
|
||||||
|
@ -11517,8 +11535,11 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
||||||
__Pyx_AddTraceback("dependency_injector.containers.DynamicContainer.shutdown_resources", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
__Pyx_AddTraceback("dependency_injector.containers.DynamicContainer.shutdown_resources", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
||||||
__pyx_r = NULL;
|
__pyx_r = NULL;
|
||||||
__pyx_L0:;
|
__pyx_L0:;
|
||||||
|
__Pyx_XDECREF(__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_2generator2);
|
||||||
__Pyx_XDECREF(__pyx_v__async_ordered_shutdown);
|
__Pyx_XDECREF(__pyx_v__async_ordered_shutdown);
|
||||||
|
__Pyx_XDECREF(__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_5generator3);
|
||||||
__Pyx_XDECREF(__pyx_v__sync_ordered_shutdown);
|
__Pyx_XDECREF(__pyx_v__sync_ordered_shutdown);
|
||||||
|
__Pyx_XDECREF(__pyx_gb_19dependency_injector_10containers_16DynamicContainer_18shutdown_resources_10generator6);
|
||||||
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
||||||
__Pyx_XGIVEREF(__pyx_r);
|
__Pyx_XGIVEREF(__pyx_r);
|
||||||
__Pyx_RefNannyFinishContext();
|
__Pyx_RefNannyFinishContext();
|
||||||
|
@ -18128,10 +18149,13 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
||||||
*/
|
*/
|
||||||
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_override_providers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L1_error)
|
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_override_providers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L1_error)
|
||||||
__Pyx_GOTREF(__pyx_t_1);
|
__Pyx_GOTREF(__pyx_t_1);
|
||||||
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_v_overriding_providers); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 735, __pyx_L1_error)
|
__pyx_t_2 = PyDict_Copy(__pyx_v_overriding_providers); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 735, __pyx_L1_error)
|
||||||
__Pyx_GOTREF(__pyx_t_2);
|
__Pyx_GOTREF(__pyx_t_2);
|
||||||
|
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 735, __pyx_L1_error)
|
||||||
|
__Pyx_GOTREF(__pyx_t_8);
|
||||||
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||||||
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||||||
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
||||||
|
|
||||||
/* "dependency_injector/containers.pyx":736
|
/* "dependency_injector/containers.pyx":736
|
||||||
*
|
*
|
||||||
|
@ -18140,24 +18164,24 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
||||||
*
|
*
|
||||||
* if container.is_auto_wiring_enabled():
|
* if container.is_auto_wiring_enabled():
|
||||||
*/
|
*/
|
||||||
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_apply_container_providers_overri); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
|
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_apply_container_providers_overri); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
|
||||||
__Pyx_GOTREF(__pyx_t_1);
|
|
||||||
__pyx_t_8 = NULL;
|
|
||||||
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
|
|
||||||
__pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
|
|
||||||
if (likely(__pyx_t_8)) {
|
|
||||||
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
|
|
||||||
__Pyx_INCREF(__pyx_t_8);
|
|
||||||
__Pyx_INCREF(function);
|
|
||||||
__Pyx_DECREF_SET(__pyx_t_1, function);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
__pyx_t_2 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
|
|
||||||
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
||||||
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
|
|
||||||
__Pyx_GOTREF(__pyx_t_2);
|
__Pyx_GOTREF(__pyx_t_2);
|
||||||
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
__pyx_t_1 = NULL;
|
||||||
|
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
|
||||||
|
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
|
||||||
|
if (likely(__pyx_t_1)) {
|
||||||
|
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
|
||||||
|
__Pyx_INCREF(__pyx_t_1);
|
||||||
|
__Pyx_INCREF(function);
|
||||||
|
__Pyx_DECREF_SET(__pyx_t_2, function);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
__pyx_t_8 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
|
||||||
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||||||
|
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 736, __pyx_L1_error)
|
||||||
|
__Pyx_GOTREF(__pyx_t_8);
|
||||||
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||||||
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
||||||
|
|
||||||
/* "dependency_injector/containers.pyx":738
|
/* "dependency_injector/containers.pyx":738
|
||||||
* container.apply_container_providers_overridings()
|
* container.apply_container_providers_overridings()
|
||||||
|
@ -18166,25 +18190,25 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
||||||
* container.wire()
|
* container.wire()
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_is_auto_wiring_enabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 738, __pyx_L1_error)
|
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_is_auto_wiring_enabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
|
||||||
__Pyx_GOTREF(__pyx_t_1);
|
|
||||||
__pyx_t_8 = NULL;
|
|
||||||
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
|
|
||||||
__pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
|
|
||||||
if (likely(__pyx_t_8)) {
|
|
||||||
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
|
|
||||||
__Pyx_INCREF(__pyx_t_8);
|
|
||||||
__Pyx_INCREF(function);
|
|
||||||
__Pyx_DECREF_SET(__pyx_t_1, function);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
__pyx_t_2 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
|
|
||||||
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
||||||
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
|
|
||||||
__Pyx_GOTREF(__pyx_t_2);
|
__Pyx_GOTREF(__pyx_t_2);
|
||||||
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
__pyx_t_1 = NULL;
|
||||||
__pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 738, __pyx_L1_error)
|
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
|
||||||
|
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
|
||||||
|
if (likely(__pyx_t_1)) {
|
||||||
|
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
|
||||||
|
__Pyx_INCREF(__pyx_t_1);
|
||||||
|
__Pyx_INCREF(function);
|
||||||
|
__Pyx_DECREF_SET(__pyx_t_2, function);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
__pyx_t_8 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
|
||||||
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||||||
|
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 738, __pyx_L1_error)
|
||||||
|
__Pyx_GOTREF(__pyx_t_8);
|
||||||
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||||||
|
__pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 738, __pyx_L1_error)
|
||||||
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
||||||
if (__pyx_t_10) {
|
if (__pyx_t_10) {
|
||||||
|
|
||||||
/* "dependency_injector/containers.pyx":739
|
/* "dependency_injector/containers.pyx":739
|
||||||
|
@ -18194,24 +18218,24 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
||||||
*
|
*
|
||||||
* return container
|
* return container
|
||||||
*/
|
*/
|
||||||
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_wire); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 739, __pyx_L1_error)
|
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_container, __pyx_n_s_wire); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 739, __pyx_L1_error)
|
||||||
__Pyx_GOTREF(__pyx_t_1);
|
|
||||||
__pyx_t_8 = NULL;
|
|
||||||
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
|
|
||||||
__pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
|
|
||||||
if (likely(__pyx_t_8)) {
|
|
||||||
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
|
|
||||||
__Pyx_INCREF(__pyx_t_8);
|
|
||||||
__Pyx_INCREF(function);
|
|
||||||
__Pyx_DECREF_SET(__pyx_t_1, function);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
__pyx_t_2 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
|
|
||||||
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
||||||
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 739, __pyx_L1_error)
|
|
||||||
__Pyx_GOTREF(__pyx_t_2);
|
__Pyx_GOTREF(__pyx_t_2);
|
||||||
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
__pyx_t_1 = NULL;
|
||||||
|
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
|
||||||
|
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
|
||||||
|
if (likely(__pyx_t_1)) {
|
||||||
|
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
|
||||||
|
__Pyx_INCREF(__pyx_t_1);
|
||||||
|
__Pyx_INCREF(function);
|
||||||
|
__Pyx_DECREF_SET(__pyx_t_2, function);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
__pyx_t_8 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
|
||||||
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
||||||
|
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 739, __pyx_L1_error)
|
||||||
|
__Pyx_GOTREF(__pyx_t_8);
|
||||||
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
||||||
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
||||||
|
|
||||||
/* "dependency_injector/containers.pyx":738
|
/* "dependency_injector/containers.pyx":738
|
||||||
* container.apply_container_providers_overridings()
|
* container.apply_container_providers_overridings()
|
||||||
|
@ -22314,6 +22338,7 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___get_va
|
||||||
__Pyx_RefNannyDeclarations
|
__Pyx_RefNannyDeclarations
|
||||||
int __pyx_t_1;
|
int __pyx_t_1;
|
||||||
PyObject *__pyx_t_2 = NULL;
|
PyObject *__pyx_t_2 = NULL;
|
||||||
|
PyObject *__pyx_t_3 = NULL;
|
||||||
int __pyx_lineno = 0;
|
int __pyx_lineno = 0;
|
||||||
const char *__pyx_filename = NULL;
|
const char *__pyx_filename = NULL;
|
||||||
int __pyx_clineno = 0;
|
int __pyx_clineno = 0;
|
||||||
|
@ -22362,10 +22387,13 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___get_va
|
||||||
PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType");
|
PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType");
|
||||||
__PYX_ERR(1, 354, __pyx_L1_error)
|
__PYX_ERR(1, 354, __pyx_L1_error)
|
||||||
}
|
}
|
||||||
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_self->__pyx___value, __pyx_empty_tuple, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 354, __pyx_L1_error)
|
__pyx_t_2 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 354, __pyx_L1_error)
|
||||||
__Pyx_GOTREF(__pyx_t_2);
|
__Pyx_GOTREF(__pyx_t_2);
|
||||||
__pyx_r = __pyx_t_2;
|
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_self->__pyx___value, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 354, __pyx_L1_error)
|
||||||
__pyx_t_2 = 0;
|
__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;
|
goto __pyx_L0;
|
||||||
|
|
||||||
/* "providers.pxd":351
|
/* "providers.pxd":351
|
||||||
|
@ -22379,6 +22407,7 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___get_va
|
||||||
/* function exit code */
|
/* function exit code */
|
||||||
__pyx_L1_error:;
|
__pyx_L1_error:;
|
||||||
__Pyx_XDECREF(__pyx_t_2);
|
__Pyx_XDECREF(__pyx_t_2);
|
||||||
|
__Pyx_XDECREF(__pyx_t_3);
|
||||||
__Pyx_AddTraceback("dependency_injector.providers.__get_value_kwargs", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
__Pyx_AddTraceback("dependency_injector.providers.__get_value_kwargs", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
||||||
__pyx_r = 0;
|
__pyx_r = 0;
|
||||||
__pyx_L0:;
|
__pyx_L0:;
|
||||||
|
@ -31093,11 +31122,9 @@ if (!__Pyx_RefNanny) {
|
||||||
#endif
|
#endif
|
||||||
/*--- Library function declarations ---*/
|
/*--- Library function declarations ---*/
|
||||||
/*--- Threads initialization code ---*/
|
/*--- Threads initialization code ---*/
|
||||||
#if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
|
#if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
|
||||||
#ifdef WITH_THREAD /* Python build with threading support? */
|
|
||||||
PyEval_InitThreads();
|
PyEval_InitThreads();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
/*--- Module creation code ---*/
|
/*--- Module creation code ---*/
|
||||||
#if CYTHON_PEP489_MULTI_PHASE_INIT
|
#if CYTHON_PEP489_MULTI_PHASE_INIT
|
||||||
__pyx_m = __pyx_pyinit_module;
|
__pyx_m = __pyx_pyinit_module;
|
||||||
|
@ -32744,7 +32771,7 @@ invalid_keyword:
|
||||||
#if CYTHON_COMPILING_IN_CPYTHON
|
#if CYTHON_COMPILING_IN_CPYTHON
|
||||||
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
|
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
|
||||||
PyObject *result;
|
PyObject *result;
|
||||||
ternaryfunc call = func->ob_type->tp_call;
|
ternaryfunc call = Py_TYPE(func)->tp_call;
|
||||||
if (unlikely(!call))
|
if (unlikely(!call))
|
||||||
return PyObject_Call(func, arg, kw);
|
return PyObject_Call(func, arg, kw);
|
||||||
if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
|
if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
|
||||||
|
@ -34404,6 +34431,7 @@ static int __Pyx_Coroutine_clear(PyObject *self) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Py_CLEAR(gen->gi_code);
|
Py_CLEAR(gen->gi_code);
|
||||||
|
Py_CLEAR(gen->gi_frame);
|
||||||
Py_CLEAR(gen->gi_name);
|
Py_CLEAR(gen->gi_name);
|
||||||
Py_CLEAR(gen->gi_qualname);
|
Py_CLEAR(gen->gi_qualname);
|
||||||
Py_CLEAR(gen->gi_modulename);
|
Py_CLEAR(gen->gi_modulename);
|
||||||
|
@ -34420,7 +34448,7 @@ static void __Pyx_Coroutine_dealloc(PyObject *self) {
|
||||||
if (PyObject_CallFinalizerFromDealloc(self))
|
if (PyObject_CallFinalizerFromDealloc(self))
|
||||||
#else
|
#else
|
||||||
Py_TYPE(gen)->tp_del(self);
|
Py_TYPE(gen)->tp_del(self);
|
||||||
if (self->ob_refcnt > 0)
|
if (Py_REFCNT(self) > 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -34514,17 +34542,17 @@ static void __Pyx_Coroutine_del(PyObject *self) {
|
||||||
}
|
}
|
||||||
__Pyx_ErrRestore(error_type, error_value, error_traceback);
|
__Pyx_ErrRestore(error_type, error_value, error_traceback);
|
||||||
#if !CYTHON_USE_TP_FINALIZE
|
#if !CYTHON_USE_TP_FINALIZE
|
||||||
assert(self->ob_refcnt > 0);
|
assert(Py_REFCNT(self) > 0);
|
||||||
if (--self->ob_refcnt == 0) {
|
if (--self->ob_refcnt == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
Py_ssize_t refcnt = self->ob_refcnt;
|
Py_ssize_t refcnt = Py_REFCNT(self);
|
||||||
_Py_NewReference(self);
|
_Py_NewReference(self);
|
||||||
__Pyx_SET_REFCNT(self, refcnt);
|
__Pyx_SET_REFCNT(self, refcnt);
|
||||||
}
|
}
|
||||||
#if CYTHON_COMPILING_IN_CPYTHON
|
#if CYTHON_COMPILING_IN_CPYTHON
|
||||||
assert(PyType_IS_GC(self->ob_type) &&
|
assert(PyType_IS_GC(Py_TYPE(self)) &&
|
||||||
_Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);
|
_Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);
|
||||||
_Py_DEC_REFTOTAL;
|
_Py_DEC_REFTOTAL;
|
||||||
#endif
|
#endif
|
||||||
|
@ -34590,6 +34618,27 @@ __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, CYTHO
|
||||||
Py_XDECREF(tmp);
|
Py_XDECREF(tmp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
static PyObject *
|
||||||
|
__Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context)
|
||||||
|
{
|
||||||
|
PyObject *frame = self->gi_frame;
|
||||||
|
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(
|
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
|
||||||
PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
|
PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
|
||||||
PyObject *name, PyObject *qualname, PyObject *module_name) {
|
PyObject *name, PyObject *qualname, PyObject *module_name) {
|
||||||
|
@ -34623,6 +34672,7 @@ static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
|
||||||
gen->gi_modulename = module_name;
|
gen->gi_modulename = module_name;
|
||||||
Py_XINCREF(code);
|
Py_XINCREF(code);
|
||||||
gen->gi_code = code;
|
gen->gi_code = code;
|
||||||
|
gen->gi_frame = NULL;
|
||||||
PyObject_GC_Track(gen);
|
PyObject_GC_Track(gen);
|
||||||
return gen;
|
return gen;
|
||||||
}
|
}
|
||||||
|
@ -34786,6 +34836,8 @@ static PyGetSetDef __pyx_Generator_getsets[] = {
|
||||||
(char*) PyDoc_STR("name of the generator"), 0},
|
(char*) PyDoc_STR("name of the generator"), 0},
|
||||||
{(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
|
{(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
|
||||||
(char*) PyDoc_STR("qualified name of the generator"), 0},
|
(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}
|
{0, 0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
static PyTypeObject __pyx_GeneratorType_type = {
|
static PyTypeObject __pyx_GeneratorType_type = {
|
||||||
|
@ -35254,11 +35306,6 @@ static PyObject *__Pyx_Coroutine_await(PyObject *coroutine) {
|
||||||
return __Pyx__Coroutine_await(coroutine);
|
return __Pyx__Coroutine_await(coroutine);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
static PyObject *
|
|
||||||
__Pyx_Coroutine_get_frame(CYTHON_UNUSED __pyx_CoroutineObject *self, CYTHON_UNUSED void *context)
|
|
||||||
{
|
|
||||||
Py_RETURN_NONE;
|
|
||||||
}
|
|
||||||
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3 && PY_VERSION_HEX < 0x030500B1
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3 && PY_VERSION_HEX < 0x030500B1
|
||||||
static PyObject *__Pyx_Coroutine_compare(PyObject *obj, PyObject *other, int op) {
|
static PyObject *__Pyx_Coroutine_compare(PyObject *obj, PyObject *other, int op) {
|
||||||
PyObject* result;
|
PyObject* result;
|
||||||
|
@ -35841,7 +35888,8 @@ static PyObject *
|
||||||
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args)
|
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args)
|
||||||
{
|
{
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
return PyUnicode_FromString(m->func.m_ml->ml_name);
|
Py_INCREF(m->func_qualname);
|
||||||
|
return m->func_qualname;
|
||||||
#else
|
#else
|
||||||
return PyString_FromString(m->func.m_ml->ml_name);
|
return PyString_FromString(m->func.m_ml->ml_name);
|
||||||
#endif
|
#endif
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user