We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fake_context
1 parent 270332d commit 524af96Copy full SHA for 524af96
faststream/app.py
@@ -17,7 +17,6 @@
17
from faststream.asgi.app import AsgiFastStream
18
from faststream.cli.supervisors.utils import set_exit
19
from faststream.exceptions import ValidationError
20
-from faststream.utils.functions import fake_context
21
22
P_HookParams = ParamSpec("P_HookParams")
23
T_HookReturn = TypeVar("T_HookReturn")
@@ -77,4 +76,6 @@ async def catch_startup_validation_error() -> AsyncIterator[None]:
77
76
raise ValidationError(fields=fields) from e
78
79
except ImportError:
+ from faststream.utils.functions import fake_context
80
+
81
catch_startup_validation_error = fake_context
0 commit comments