requests: Add None to a type alias (#7721)

Fixes #7720
This commit is contained in:
Alec Rosenbaum
2022-04-27 10:39:15 -04:00
committed by GitHub
parent bfa918880f
commit 63fb9af743

View File

@@ -50,9 +50,9 @@ _Auth: TypeAlias = Union[tuple[str, str], _auth.AuthBase, Callable[[PreparedRequ
_Cert: TypeAlias = Union[str, tuple[str, str]]
_Files: TypeAlias = (
MutableMapping[str, IO[Any]]
| MutableMapping[str, tuple[str, IO[Any]]]
| MutableMapping[str, tuple[str, IO[Any], str]]
| MutableMapping[str, tuple[str, IO[Any], str, _TextMapping]]
| MutableMapping[str, tuple[str | None, IO[Any]]]
| MutableMapping[str, tuple[str | None, IO[Any], str]]
| MutableMapping[str, tuple[str | None, IO[Any], str, _TextMapping]]
)
_Hook: TypeAlias = Callable[[Response], Any]
_Hooks: TypeAlias = MutableMapping[str, _Hook | list[_Hook]]