From 6164b4f45dc21130c4751b202b389e49f8c81242 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Sat, 9 Jul 2022 21:43:40 -0400 Subject: [PATCH] Move get/set_ini_files() methods upper --- src/dependency_injector/providers.c | 338 +++++++++++++------------- src/dependency_injector/providers.pyx | 18 +- 2 files changed, 178 insertions(+), 178 deletions(-) diff --git a/src/dependency_injector/providers.c b/src/dependency_injector/providers.c index 4fab4eca..b43876a1 100644 --- a/src/dependency_injector/providers.c +++ b/src/dependency_injector/providers.c @@ -5030,10 +5030,10 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_22get static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_24set_strict(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_strict); /* proto */ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_26get_children(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_28set_children(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_children); /* proto */ -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_30get_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_32set_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files); /* proto */ -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files); /* proto */ +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_30get_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_32set_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files); /* proto */ +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files); /* proto */ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_38get_pydantic_settings(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_40set_pydantic_settings(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_settings); /* proto */ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_42load(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_required, PyObject *__pyx_v_envs_required); /* proto */ @@ -42628,7 +42628,7 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_28set * self.__children = children * return self # <<<<<<<<<<<<<< * - * def get_yaml_files(self): + * def get_ini_files(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); @@ -42655,147 +42655,6 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_28set } /* "dependency_injector/providers.pyx":2037 - * return self - * - * def get_yaml_files(self): # <<<<<<<<<<<<<< - * """Return list of YAML files.""" - * return list(self.__yaml_files) - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_31get_yaml_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_19dependency_injector_9providers_13Configuration_30get_yaml_files[] = "Return list of YAML files."; -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_31get_yaml_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("get_yaml_files (wrapper)", 0); - __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_30get_yaml_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_30get_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__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_yaml_files", 0); - - /* "dependency_injector/providers.pyx":2039 - * def get_yaml_files(self): - * """Return list of YAML files.""" - * return list(self.__yaml_files) # <<<<<<<<<<<<<< - * - * def set_yaml_files(self, files): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PySequence_List(__pyx_v_self->__pyx___yaml_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2039, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "dependency_injector/providers.pyx":2037 - * return self - * - * def get_yaml_files(self): # <<<<<<<<<<<<<< - * """Return list of YAML files.""" - * return list(self.__yaml_files) - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("dependency_injector.providers.Configuration.get_yaml_files", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "dependency_injector/providers.pyx":2041 - * return list(self.__yaml_files) - * - * def set_yaml_files(self, files): # <<<<<<<<<<<<<< - * """Set list of YAML files.""" - * self.__yaml_files = list(files) - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_33set_yaml_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files); /*proto*/ -static char __pyx_doc_19dependency_injector_9providers_13Configuration_32set_yaml_files[] = "Set list of YAML files."; -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_33set_yaml_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("set_yaml_files (wrapper)", 0); - __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_32set_yaml_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self), ((PyObject *)__pyx_v_files)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_32set_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files) { - 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_yaml_files", 0); - - /* "dependency_injector/providers.pyx":2043 - * def set_yaml_files(self, files): - * """Set list of YAML files.""" - * self.__yaml_files = list(files) # <<<<<<<<<<<<<< - * return self - * - */ - __pyx_t_1 = PySequence_List(__pyx_v_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2043, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GIVEREF(__pyx_t_1); - __Pyx_GOTREF(__pyx_v_self->__pyx___yaml_files); - __Pyx_DECREF(__pyx_v_self->__pyx___yaml_files); - __pyx_v_self->__pyx___yaml_files = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "dependency_injector/providers.pyx":2044 - * """Set list of YAML files.""" - * self.__yaml_files = list(files) - * return self # <<<<<<<<<<<<<< - * - * def get_ini_files(self): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_self)); - __pyx_r = ((PyObject *)__pyx_v_self); - goto __pyx_L0; - - /* "dependency_injector/providers.pyx":2041 - * return list(self.__yaml_files) - * - * def set_yaml_files(self, files): # <<<<<<<<<<<<<< - * """Set list of YAML files.""" - * self.__yaml_files = list(files) - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("dependency_injector.providers.Configuration.set_yaml_files", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "dependency_injector/providers.pyx":2046 * return self * * def get_ini_files(self): # <<<<<<<<<<<<<< @@ -42804,20 +42663,20 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_32set */ /* Python wrapper */ -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_35get_ini_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_19dependency_injector_9providers_13Configuration_34get_ini_files[] = "Return list of INI files."; -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_35get_ini_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_31get_ini_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_19dependency_injector_9providers_13Configuration_30get_ini_files[] = "Return list of INI files."; +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_31get_ini_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_ini_files (wrapper)", 0); - __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_34get_ini_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self)); + __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_30get_ini_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self) { +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_30get_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -42826,7 +42685,7 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_ini_files", 0); - /* "dependency_injector/providers.pyx":2048 + /* "dependency_injector/providers.pyx":2039 * def get_ini_files(self): * """Return list of INI files.""" * return list(self.__ini_files) # <<<<<<<<<<<<<< @@ -42834,13 +42693,13 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get * def set_ini_files(self, files): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PySequence_List(__pyx_v_self->__pyx___ini_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2048, __pyx_L1_error) + __pyx_t_1 = PySequence_List(__pyx_v_self->__pyx___ini_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "dependency_injector/providers.pyx":2046 + /* "dependency_injector/providers.pyx":2037 * return self * * def get_ini_files(self): # <<<<<<<<<<<<<< @@ -42859,7 +42718,7 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get return __pyx_r; } -/* "dependency_injector/providers.pyx":2050 +/* "dependency_injector/providers.pyx":2041 * return list(self.__ini_files) * * def set_ini_files(self, files): # <<<<<<<<<<<<<< @@ -42868,20 +42727,20 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get */ /* Python wrapper */ -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_37set_ini_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files); /*proto*/ -static char __pyx_doc_19dependency_injector_9providers_13Configuration_36set_ini_files[] = "Set list of INI files."; -static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_37set_ini_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files) { +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_33set_ini_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files); /*proto*/ +static char __pyx_doc_19dependency_injector_9providers_13Configuration_32set_ini_files[] = "Set list of INI files."; +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_33set_ini_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_ini_files (wrapper)", 0); - __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_36set_ini_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self), ((PyObject *)__pyx_v_files)); + __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_32set_ini_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self), ((PyObject *)__pyx_v_files)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files) { +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_32set_ini_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -42890,14 +42749,14 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_ini_files", 0); - /* "dependency_injector/providers.pyx":2052 + /* "dependency_injector/providers.pyx":2043 * def set_ini_files(self, files): * """Set list of INI files.""" * self.__ini_files = list(files) # <<<<<<<<<<<<<< * return self * */ - __pyx_t_1 = PySequence_List(__pyx_v_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2052, __pyx_L1_error) + __pyx_t_1 = PySequence_List(__pyx_v_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->__pyx___ini_files); @@ -42905,19 +42764,19 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set __pyx_v_self->__pyx___ini_files = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "dependency_injector/providers.pyx":2053 + /* "dependency_injector/providers.pyx":2044 * """Set list of INI files.""" * self.__ini_files = list(files) * return self # <<<<<<<<<<<<<< * - * def get_pydantic_settings(self): + * def get_yaml_files(self): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "dependency_injector/providers.pyx":2050 + /* "dependency_injector/providers.pyx":2041 * return list(self.__ini_files) * * def set_ini_files(self, files): # <<<<<<<<<<<<<< @@ -42936,6 +42795,147 @@ static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set return __pyx_r; } +/* "dependency_injector/providers.pyx":2046 + * return self + * + * def get_yaml_files(self): # <<<<<<<<<<<<<< + * """Return list of YAML files.""" + * return list(self.__yaml_files) + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_35get_yaml_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_19dependency_injector_9providers_13Configuration_34get_yaml_files[] = "Return list of YAML files."; +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_35get_yaml_files(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("get_yaml_files (wrapper)", 0); + __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_34get_yaml_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_34get_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__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_yaml_files", 0); + + /* "dependency_injector/providers.pyx":2048 + * def get_yaml_files(self): + * """Return list of YAML files.""" + * return list(self.__yaml_files) # <<<<<<<<<<<<<< + * + * def set_yaml_files(self, files): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = PySequence_List(__pyx_v_self->__pyx___yaml_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2048, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "dependency_injector/providers.pyx":2046 + * return self + * + * def get_yaml_files(self): # <<<<<<<<<<<<<< + * """Return list of YAML files.""" + * return list(self.__yaml_files) + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("dependency_injector.providers.Configuration.get_yaml_files", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "dependency_injector/providers.pyx":2050 + * return list(self.__yaml_files) + * + * def set_yaml_files(self, files): # <<<<<<<<<<<<<< + * """Set list of YAML files.""" + * self.__yaml_files = list(files) + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_37set_yaml_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files); /*proto*/ +static char __pyx_doc_19dependency_injector_9providers_13Configuration_36set_yaml_files[] = "Set list of YAML files."; +static PyObject *__pyx_pw_19dependency_injector_9providers_13Configuration_37set_yaml_files(PyObject *__pyx_v_self, PyObject *__pyx_v_files) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("set_yaml_files (wrapper)", 0); + __pyx_r = __pyx_pf_19dependency_injector_9providers_13Configuration_36set_yaml_files(((struct __pyx_obj_19dependency_injector_9providers_Configuration *)__pyx_v_self), ((PyObject *)__pyx_v_files)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_19dependency_injector_9providers_13Configuration_36set_yaml_files(struct __pyx_obj_19dependency_injector_9providers_Configuration *__pyx_v_self, PyObject *__pyx_v_files) { + 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_yaml_files", 0); + + /* "dependency_injector/providers.pyx":2052 + * def set_yaml_files(self, files): + * """Set list of YAML files.""" + * self.__yaml_files = list(files) # <<<<<<<<<<<<<< + * return self + * + */ + __pyx_t_1 = PySequence_List(__pyx_v_files); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2052, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GIVEREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_v_self->__pyx___yaml_files); + __Pyx_DECREF(__pyx_v_self->__pyx___yaml_files); + __pyx_v_self->__pyx___yaml_files = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "dependency_injector/providers.pyx":2053 + * """Set list of YAML files.""" + * self.__yaml_files = list(files) + * return self # <<<<<<<<<<<<<< + * + * def get_pydantic_settings(self): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_self)); + __pyx_r = ((PyObject *)__pyx_v_self); + goto __pyx_L0; + + /* "dependency_injector/providers.pyx":2050 + * return list(self.__yaml_files) + * + * def set_yaml_files(self, files): # <<<<<<<<<<<<<< + * """Set list of YAML files.""" + * self.__yaml_files = list(files) + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("dependency_injector.providers.Configuration.set_yaml_files", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + /* "dependency_injector/providers.pyx":2055 * return self * @@ -131603,10 +131603,10 @@ static PyMethodDef __pyx_methods_19dependency_injector_9providers_Configuration[ {"set_strict", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_25set_strict, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_24set_strict}, {"get_children", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_27get_children, METH_NOARGS, __pyx_doc_19dependency_injector_9providers_13Configuration_26get_children}, {"set_children", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_29set_children, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_28set_children}, - {"get_yaml_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_31get_yaml_files, METH_NOARGS, __pyx_doc_19dependency_injector_9providers_13Configuration_30get_yaml_files}, - {"set_yaml_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_33set_yaml_files, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_32set_yaml_files}, - {"get_ini_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_35get_ini_files, METH_NOARGS, __pyx_doc_19dependency_injector_9providers_13Configuration_34get_ini_files}, - {"set_ini_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_37set_ini_files, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_36set_ini_files}, + {"get_ini_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_31get_ini_files, METH_NOARGS, __pyx_doc_19dependency_injector_9providers_13Configuration_30get_ini_files}, + {"set_ini_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_33set_ini_files, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_32set_ini_files}, + {"get_yaml_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_35get_yaml_files, METH_NOARGS, __pyx_doc_19dependency_injector_9providers_13Configuration_34get_yaml_files}, + {"set_yaml_files", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_37set_yaml_files, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_36set_yaml_files}, {"get_pydantic_settings", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_39get_pydantic_settings, METH_NOARGS, __pyx_doc_19dependency_injector_9providers_13Configuration_38get_pydantic_settings}, {"set_pydantic_settings", (PyCFunction)__pyx_pw_19dependency_injector_9providers_13Configuration_41set_pydantic_settings, METH_O, __pyx_doc_19dependency_injector_9providers_13Configuration_40set_pydantic_settings}, {"load", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_19dependency_injector_9providers_13Configuration_43load, METH_VARARGS|METH_KEYWORDS, __pyx_doc_19dependency_injector_9providers_13Configuration_42load}, diff --git a/src/dependency_injector/providers.pyx b/src/dependency_injector/providers.pyx index 302fa618..9fe9333f 100644 --- a/src/dependency_injector/providers.pyx +++ b/src/dependency_injector/providers.pyx @@ -2034,15 +2034,6 @@ cdef class Configuration(Object): self.__children = children return self - def get_yaml_files(self): - """Return list of YAML files.""" - return list(self.__yaml_files) - - def set_yaml_files(self, files): - """Set list of YAML files.""" - self.__yaml_files = list(files) - return self - def get_ini_files(self): """Return list of INI files.""" return list(self.__ini_files) @@ -2052,6 +2043,15 @@ cdef class Configuration(Object): self.__ini_files = list(files) return self + def get_yaml_files(self): + """Return list of YAML files.""" + return list(self.__yaml_files) + + def set_yaml_files(self, files): + """Set list of YAML files.""" + self.__yaml_files = list(files) + return self + def get_pydantic_settings(self): """Return list of Pydantic settings.""" return list(self.__pydantic_settings)