From 09b59d34fee9f48e6496729f870286b61ffc2e26 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Wed, 17 Aug 2022 15:26:59 +0300 Subject: [PATCH] Fix typing error --- sanic/middleware.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(