From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Mon, 18 Oct 2021 10:19:42 +0000 (-0500) Subject: doc: Update comments about file types in _types.py (#1898) X-Git-Tag: 0.21.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b1666dc6c6b012b258574c4239b8ff8f481619;p=thirdparty%2Fhttpx.git doc: Update comments about file types in _types.py (#1898) * doc: Update comments about file types in _types.py https://github.com/encode/httpx/discussions/1897 * Update httpx/_types.py Co-authored-by: Tom Christie --- diff --git a/httpx/_types.py b/httpx/_types.py index 71a97a26..2b08df75 100644 --- a/httpx/_types.py +++ b/httpx/_types.py @@ -83,11 +83,11 @@ RequestData = dict FileContent = Union[IO[bytes], bytes] FileTypes = Union[ - # file (or text) + # file (or bytes) FileContent, - # (filename, file (or text)) + # (filename, file (or bytes)) Tuple[Optional[str], FileContent], - # (filename, file (or text), content_type) + # (filename, file (or bytes), content_type) Tuple[Optional[str], FileContent, Optional[str]], ] RequestFiles = Union[Mapping[str, FileTypes], Sequence[Tuple[str, FileTypes]]]