Skip to content

Commit

Permalink
feat: Add support for Tuple type in middleware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abersheeran committed Jul 26, 2024
1 parent bd0803c commit ea53d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baize/wsgi/middleware.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import functools
from typing import Any, Callable, Generator, Iterable, Iterator, MutableMapping
from typing import Any, Callable, Generator, Iterable, Iterator, MutableMapping, Tuple

from ..datastructures import Headers
from ..typing import Environ, StartResponse, WSGIApp
Expand Down Expand Up @@ -35,7 +35,7 @@ def from_app(cls, app: WSGIApp, request: NextRequest) -> "NextResponse":
headers: Headers = Headers()

def start_response(
status: str, response_headers: Iterable[tuple[str, str]], exc_info=None
status: str, response_headers: Iterable[Tuple[str, str]], exc_info=None
) -> None:
nonlocal status_code
nonlocal headers
Expand Down

0 comments on commit ea53d17

Please sign in to comment.