Merge branch 'main' into docs/create_docs

This commit is contained in:
2025-10-17 22:06:03 +03:00
4 changed files with 326 additions and 7 deletions
+22 -1
View File
@@ -1,4 +1,5 @@
__all__ = ["Response"]
from typing import Any
from dishka import Container
@@ -8,7 +9,27 @@ from argenta.response.status import ResponseStatus
EMPTY_INPUT_FLAGS: InputFlags = InputFlags()
class Response:
class DataBridge:
_data: dict[str, Any] = {}
@classmethod
def update_data(cls, data: dict[str, Any]) -> None:
cls._data.update(data)
@classmethod
def get_data(cls) -> dict[str, Any]:
return cls._data
@classmethod
def clear_data(cls) -> None:
cls._data.clear()
@classmethod
def delete_from_data(cls, key: str) -> None:
cls._data.pop(key)
class Response(DataBridge):
_dishka_container: Container
def __init__(