mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
requests: allow immutable headers (#7932)
This commit is contained in:
@@ -66,16 +66,8 @@ _Params: TypeAlias = Union[
|
||||
str | bytes,
|
||||
]
|
||||
_TextMapping: TypeAlias = MutableMapping[str, str]
|
||||
_HeadersMapping: TypeAlias = MutableMapping[str, str] | MutableMapping[str, bytes] | MutableMapping[str, str | bytes]
|
||||
_HeadersUpdateMapping: TypeAlias = (
|
||||
MutableMapping[str, str]
|
||||
| MutableMapping[str, bytes]
|
||||
| MutableMapping[str, None]
|
||||
| MutableMapping[str, str | bytes]
|
||||
| MutableMapping[str, str | None]
|
||||
| MutableMapping[str, bytes | None]
|
||||
| MutableMapping[str, str | bytes | None]
|
||||
)
|
||||
_HeadersMapping: TypeAlias = Mapping[str, str | bytes]
|
||||
_HeadersUpdateMapping: TypeAlias = Mapping[str, str | bytes | None]
|
||||
_Timeout: TypeAlias = Union[float, tuple[float, float], tuple[float, None]]
|
||||
_Verify: TypeAlias = bool | str
|
||||
|
||||
|
||||
Reference in New Issue
Block a user