]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
doc: Update comments about file types in _types.py (#1898)
authorAdrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Mon, 18 Oct 2021 10:19:42 +0000 (05:19 -0500)
committerGitHub <noreply@github.com>
Mon, 18 Oct 2021 10:19:42 +0000 (11:19 +0100)
* 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 <tom@tomchristie.com>
httpx/_types.py

index 71a97a26360762f7ed270a67bcfe30aa97aab749..2b08df75cb868b383c1a95540f01f60056378425 100644 (file)
@@ -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]]]