Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/10353/head
pre-commit-ci[bot] 2 years ago
committed by Alexander Pushkov
parent
commit
4ef801a817
  1. 1
      docs_src/dependencies/tutorial010_ctx.py
  2. 2
      tests/test_dependency_contextmanager.py

1
docs_src/dependencies/tutorial010_ctx.py

@ -1,5 +1,6 @@
from contextlib import asynccontextmanager
@asynccontextmanager
async def get_db():
db = DBSession()

2
tests/test_dependency_contextmanager.py

@ -1,5 +1,5 @@
from typing import Dict
from contextlib import asynccontextmanager, contextmanager
from typing import Dict
import pytest
from fastapi import BackgroundTasks, Depends, FastAPI

Loading…
Cancel
Save