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 1c87065 commit a7ac166Copy full SHA for a7ac166
1 file changed
nitric/faas.py
@@ -511,7 +511,7 @@ class FaasWorkerOptions:
511
class Middleware(Protocol, Generic[C]):
512
"""A middleware function."""
513
514
- async def __call__(self, ctx: C, nxt: Optional[Middleware[C]]) -> C:
+ async def __call__(self, ctx: C, nxt: Optional[Middleware[C]] = None) -> C:
515
"""Process trigger context."""
516
...
517
0 commit comments