This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| from typing import TYPE_CHECKING, Annotated, Any | |
| from fastapi import Depends, FastAPI, Response | |
| from pydantic import BaseModel | |
| from fastapi_views import ViewRouter | |
| from fastapi_views.exceptions import Conflict, NotFound | |
| from fastapi_views.views.generics import AsyncGenericViewSet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import os | |
| from logging.config import fileConfig | |
| # import alembic_postgresql_enum | |
| from alembic import context | |
| from sqlalchemy.ext.asyncio import create_async_engine | |
| # TODO: change import patch | |
| from app.models import Base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import functools | |
| from collections.abc import AsyncGenerator, Awaitable | |
| from contextlib import AbstractAsyncContextManager, asynccontextmanager | |
| from typing import Callable, Generic, ParamSpec, TypeVar | |
| from anyio import create_task_group | |
| from anyio.abc import TaskGroup | |
| R = TypeVar("R") | |
| P = ParamSpec("P") |