We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd5c1e commit 04347edCopy full SHA for 04347ed
tests/test_dependency_contextmanager.py
@@ -1,5 +1,5 @@
1
-from contextvars import ContextVar
2
import threading
+from contextvars import ContextVar
3
from typing import Dict
4
5
import pytest
@@ -85,7 +85,6 @@ async def context_b(state: dict = Depends(context_a)):
85
state["context_b"] = f"finished b with a: {state['context_a']}"
86
87
88
-
89
ctx: ContextVar[str] = ContextVar("ctx")
90
91
@@ -155,7 +154,7 @@ async def bg(state: dict):
155
154
156
157
@app.get("/check_cm_same_thread")
158
-async def check_cm_same_thread(_ = Depends(context_same_thread)):
+async def check_cm_same_thread(_=Depends(context_same_thread)):
159
return None
160
161
0 commit comments