|
1 |
| -from _typeshed import Self, SupportsItems |
| 1 | +from _typeshed import Self, SupportsItems, SupportsRead |
2 | 2 | from collections.abc import Callable, Iterable, Mapping, MutableMapping
|
3 | 3 | from typing import IO, Any, Union
|
4 | 4 | from typing_extensions import TypeAlias
|
@@ -49,10 +49,10 @@ _Data: TypeAlias = str | bytes | Mapping[str, Any] | Iterable[tuple[str, str | N
|
49 | 49 | _Auth: TypeAlias = Union[tuple[str, str], _auth.AuthBase, Callable[[PreparedRequest], PreparedRequest]]
|
50 | 50 | _Cert: TypeAlias = Union[str, tuple[str, str]]
|
51 | 51 | _Files: TypeAlias = (
|
52 |
| - MutableMapping[str, IO[Any]] |
53 |
| - | MutableMapping[str, tuple[str | None, IO[Any]]] |
54 |
| - | MutableMapping[str, tuple[str | None, IO[Any], str]] |
55 |
| - | MutableMapping[str, tuple[str | None, IO[Any], str, _TextMapping]] |
| 52 | + MutableMapping[str, SupportsRead[str | bytes] | str | bytes] |
| 53 | + | MutableMapping[str, tuple[str | None, SupportsRead[str | bytes] | str | bytes]] |
| 54 | + | MutableMapping[str, tuple[str | None, SupportsRead[str | bytes] | str | bytes, str]] |
| 55 | + | MutableMapping[str, tuple[str | None, SupportsRead[str | bytes] | str | bytes, str, _TextMapping]] |
56 | 56 | )
|
57 | 57 | _Hook: TypeAlias = Callable[[Response], Any]
|
58 | 58 | _Hooks: TypeAlias = MutableMapping[str, _Hook | list[_Hook]]
|
|
0 commit comments