diff --git a/sanic/middleware.py b/sanic/middleware.py index 3ab093dc..02a2ce9b 100644 --- a/sanic/middleware.py +++ b/sanic/middleware.py @@ -47,9 +47,7 @@ class Middleware: @classmethod def convert( cls, - *middleware_collections: Sequence[ - Optional[Union[Middleware, MiddlewareType]] - ], + *middleware_collections: Sequence[Union[Middleware, MiddlewareType]], location: MiddlewareLocation, ) -> Deque[Middleware]: return deque(