Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/app/dao/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections.abc import AsyncGenerator, Sequence
from contextlib import asynccontextmanager, contextmanager
from contextvars import ContextVar
from typing import Any, Generic, Type, TypeVar
from typing import Any, Generic, TypeVar

from sqlalchemy import event, select
from sqlalchemy.ext.asyncio import AsyncSession
Expand All @@ -16,7 +16,7 @@
class BaseDAO(Generic[ModelType]):
"""Base class for data access objects, managing session context and basic CRUD."""

def __init__(self, model: Type[ModelType]):
def __init__(self, model: type[ModelType]):
self.model = model

@asynccontextmanager
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/test_base_dao.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from types import SimpleNamespace
import uuid
from types import SimpleNamespace

import pytest
from sqlalchemy import String, create_engine, select
Expand Down