From c73adaf0637c8e2a038e2bf3ef8ddd75ec7ac5a8 Mon Sep 17 00:00:00 2001 From: Livio Ribeiro Date: Mon, 8 Apr 2024 08:26:49 -0300 Subject: [PATCH] add TypeAlias to middleware CallNext --- src/selva/web/middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/selva/web/middleware.py b/src/selva/web/middleware.py index 0411d24..fc1a52e 100644 --- a/src/selva/web/middleware.py +++ b/src/selva/web/middleware.py @@ -1,12 +1,12 @@ from collections.abc import Awaitable, Callable -from typing import Protocol, runtime_checkable +from typing import Protocol, TypeAlias, runtime_checkable from asgikit.requests import Request __all__ = ("Middleware", "CallNext") -CallNext = Callable[[Request], Awaitable] +CallNext: TypeAlias = Callable[[Request], Awaitable] @runtime_checkable