Commit Graph
3 Commits
Author SHA1 Message Date
Edgar Ramírez Mondragón 2618e150d0 [stdlib] Add a comment to the alias for the return type of urllib.request.urlopen (#15042) 2025-11-18 08:22:05 +01:00
3f8a48f6cc Add new Python 3.14 argparse.ArgumentParser constructor parameters (#13947)
These are

- `suggest_on_error`, added by https://github.com/python/cpython/pull/124456, made keyword-only by https://github.com/python/cpython/pull/133302
- `color`, added by https://github.com/python/cpython/pull/132323

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2025-05-11 22:26:28 -07:00
Edgar Ramírez 8ea6d6f331 Support name, content-type and headers in file upload (#6052)
`requests` supports not only passing binary file-like objects for multi-part file uploads but also additionally passing a name,  content-type and headers. This adds type hints for those options.

See https://docs.python-requests.org/en/master/user/quickstart/#post-a-multipart-encoded-file.
2021-09-20 06:46:22 -07:00