Add HttpResponseBase.__contains__ (#1099)

This commit is contained in:
Adam Johnson
2022-08-26 10:37:23 +01:00
committed by GitHub
parent f8fca3f94f
commit 63ea17744f

View File

@@ -46,6 +46,7 @@ class HttpResponseBase:
def __delitem__(self, header: str) -> None: ... def __delitem__(self, header: str) -> None: ...
def __getitem__(self, header: str) -> str: ... def __getitem__(self, header: str) -> str: ...
def has_header(self, header: str) -> bool: ... def has_header(self, header: str) -> bool: ...
def __contains__(self, header: str) -> bool: ...
def items(self) -> Iterable[Tuple[str, str]]: ... def items(self) -> Iterable[Tuple[str, str]]: ...
@overload @overload
def get(self, header: str, alternate: str) -> str: ... def get(self, header: str, alternate: str) -> str: ...