Browse Source

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

pull/10353/head
pre-commit-ci[bot] 2 months ago
parent
commit
e2e5ae0216
  1. 3
      docs_src/dependencies/tutorial010.py
  2. 2
      tests/test_dependency_contextmanager.py

3
docs_src/dependencies/tutorial010.py

@ -10,5 +10,4 @@ class MySuperContextManager:
@app.get("/") @app.get("/")
async def get_root(db: Annotated[DBSession, Depends(MySuperContextManager)]): async def get_root(db: Annotated[DBSession, Depends(MySuperContextManager)]): ...
...

2
tests/test_dependency_contextmanager.py

@ -1,5 +1,5 @@
from contextlib import asynccontextmanager, contextmanager
import json import json
from contextlib import asynccontextmanager, contextmanager
from typing import Dict from typing import Dict
import pytest import pytest

Loading…
Cancel
Save