Skip to content

Commit 43ba24d

Browse files
committed
fix: update ResponseProtocol definition to use TypeAlias for clarity
1 parent 58e67eb commit 43ba24d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

secure/secure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import logging
88
import re
99
from types import MappingProxyType
10-
from typing import TYPE_CHECKING, Literal, Protocol
10+
from typing import TYPE_CHECKING, Literal, Protocol, TypeAlias
1111

1212
if TYPE_CHECKING:
1313
from collections.abc import Iterable, Mapping
@@ -93,7 +93,7 @@ def set_header(self, key: str, value: str) -> object | None: ...
9393

9494

9595
# Union type for supported response objects.
96-
ResponseProtocol: ResponseProtocol = HeadersProtocol | SetHeaderProtocol
96+
ResponseProtocol: TypeAlias = HeadersProtocol | SetHeaderProtocol
9797

9898

9999
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)