Skip to content

Commit

Permalink
add TypeAlias to middleware CallNext
Browse files Browse the repository at this point in the history
  • Loading branch information
livioribeiro committed Apr 8, 2024
1 parent 11fbbb2 commit c73adaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/selva/web/middleware.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c73adaf

Please sign in to comment.