Update project configuration and codebase
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from typing import Callable, Awaitable, Any
|
||||
from collections.abc import Awaitable, Callable
|
||||
from typing import Any
|
||||
|
||||
from aiogram import BaseMiddleware
|
||||
from aiogram.types import TelegramObject
|
||||
from sqlalchemy.ext.asyncio import async_sessionmaker
|
||||
@@ -7,9 +9,7 @@ from schemas.di import DependenciesDTO
|
||||
|
||||
|
||||
class DIMiddleware(BaseMiddleware):
|
||||
def __init__(
|
||||
self, deps: DependenciesDTO, session_factory: async_sessionmaker
|
||||
) -> None:
|
||||
def __init__(self, deps: DependenciesDTO, session_factory: async_sessionmaker) -> None:
|
||||
self.deps = deps
|
||||
self.session_factory = session_factory
|
||||
|
||||
|
||||
Reference in New Issue
Block a user