feat: функционал первой лабы перенос

This commit is contained in:
Enterxx2
2026-10-11 13:24:29 +03:00
parent 65003b6119
commit a6c74c9bb0
90 changed files with 2746 additions and 1 deletions
@@ -0,0 +1,9 @@
from starlette.requests import HTTPConnection
from infrastructure.storage import InMemoryStorage
def get_storage(connection: HTTPConnection) -> InMemoryStorage:
"""Получение in-memory хранилища, созданного в lifespan."""
storage: InMemoryStorage = connection.app.state.storage
return storage