From 1deda2ff6aa4ff143b17e1cb943c668b3d4f2f03 Mon Sep 17 00:00:00 2001 From: jkmnt Date: Wed, 16 Oct 2024 13:39:09 +0300 Subject: [PATCH] cosmetic --- falcon/response.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/falcon/response.py b/falcon/response.py index cbf92295a..70db069d1 100644 --- a/falcon/response.py +++ b/falcon/response.py @@ -26,7 +26,6 @@ Dict, Iterable, List, - Mapping, NoReturn, Optional, overload, @@ -37,6 +36,7 @@ ) from falcon._typing import _UNSET +from falcon._typing import HeaderArg from falcon._typing import RangeSetHeader from falcon._typing import UnsetOr from falcon.constants import _DEFAULT_STATIC_MEDIA_TYPES @@ -793,9 +793,7 @@ def append_header(self, name: str, value: str) -> None: self._headers[name] = value - def set_headers( - self, headers: Union[Mapping[str, str], Iterable[Tuple[str, str]]] - ) -> None: + def set_headers(self, headers: HeaderArg) -> None: """Set several headers at once. This method can be used to set a collection of raw header names and