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.
2 parents 1c87065 + a7ac166 commit eab4e0fCopy full SHA for eab4e0f
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