Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Nov 16, 2024
1 parent 38664d6 commit 1d771a1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/injection/providers/base_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ def _resolve(self, *args: Any, **kwargs: Any) -> Union[T, Awaitable[T]]:
"""
final_args, final_kwargs = self._get_final_args_and_kwargs(*args, **kwargs)
instance = self._factory(*final_args, **final_kwargs)
# return cast(Callable[P, T], instance)
return instance
5 changes: 0 additions & 5 deletions tests/container_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ class Container(DeclarativeContainer):
num = providers.Object(settings.provided.nested_settings.some_const)
num2 = providers.Object(9402)
callable_obj = providers.Callable(func, 1, c="string2", nums=num, d={"d": 500})
# transient_obj = providers.Transient(
# Redis,
# port=settings.provided.redis_port,
# url=settings.provided.redis_url,
# )
coroutine_provider = providers.Coroutine(coroutine, arg1=1, arg2=2)


Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_drf/drf_test_project/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from pathlib import Path

# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.integration.test_drf.drf_test_project.settings')
BASE_DIR = Path(__file__).resolve().parent

SECRET_KEY = "django-insecure-u20tyumpwc)g21=fjy5nl9u@ih!28()dfvwr4%#cigz$ktop@^" # noqa: S105
Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_litestar/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from litestar.di import Provide
from litestar.testing import TestClient

# from injection import Provide
from tests.container_objects import Container, Redis


Expand Down

0 comments on commit 1d771a1

Please sign in to comment.