(self, scope: Scope, receive: Receive, send: Send)
| 513 | self.arg = arg |
| 514 | |
| 515 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 516 | calls.append(self.arg) |
| 517 | await self.app(scope, receive, send) |
| 518 | |
| 519 | app = Starlette() |
| 520 | app.add_middleware(MiddlewareWithArgs, "foo") |