From d7c5abf15605ae79e69ee5ba54cb109681d25923 Mon Sep 17 00:00:00 2001 From: Thomas Rabaix Date: Mon, 30 Jun 2025 22:43:13 +0000 Subject: [PATCH] fix(recusion): fix wrong indetation for the return --- Makefile | 4 ++-- ioc/component.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fe99a50..ae21410 100755 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -all: build upload +all: build -build: +build: clean pip install build twine rm -rf dist/ python -m build diff --git a/ioc/component.py b/ioc/component.py index 382b0a2..45e8080 100644 --- a/ioc/component.py +++ b/ioc/component.py @@ -121,10 +121,10 @@ def walk_and_modify(model): setattr(model, field, parameter) - return model + return model return walk_and_modify(parameter) - + if isinstance(parameter, (tuple)): parameter = list(parameter) for key in get_keys(parameter): diff --git a/pyproject.toml b/pyproject.toml index 7dd39f5..8c3c141 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ioc" -version = "0.1.0" +version = "0.1.1" description = "A small dependency injection container based on Symfony2 Dependency Component" readme = "README.md" license = "Apache-2.0"