Tom Christie
2ab735849a
Version 0.23.2 ( #2510 )
...
* Version 0.23.2
* Update CHANGELOG.md
2023-01-02 11:46:22 +00:00
Tom Christie
4cbf13ece2
Raise TypeError on invalid query params. ( #2523 )
...
* Raise TypeError on invalid query params
* Fix TypeError
* Update tests/models/test_queryparams.py
Co-authored-by: Michael Adkins <contact@zanie.dev>
* Linting
* Fix exception check
Co-authored-by: Michael Adkins <contact@zanie.dev>
2022-12-30 20:56:48 +00:00
Marcelo Trylesinski
10a3b68a71
Delete setup.py ( #2516 )
2022-12-29 12:47:24 +01:00
Tom Christie
e5bc1ea533
Update pytest-asyncio ( #2511 )
2022-12-20 13:46:16 +00:00
Tom Christie
b82fbe2c13
Drop private import of 'format_form_param' from tests ( #2500 )
...
* Drop private import of 'format_form_param' from tests
* Drop unused code path
2022-12-12 16:31:29 +00:00
Tom Christie
b97c0594a5
Streaming multipart support ( #2382 )
...
* Streaming multipart support
* Update tests for streaming multipary
2022-12-12 16:14:56 +00:00
Tom Christie
af56476a8c
Drop unneccessary private import in tests ( #2498 )
2022-12-12 10:43:46 +00:00
Tom Christie
a8dd079be7
Raise TypeError if content is passed a 'dict' instance. ( #2495 )
2022-12-11 19:12:08 +00:00
Tom Christie
563a1031f5
Remove some private imports from test_decoders ( #2496 )
2022-12-06 18:22:04 +00:00
Tom Christie
71a1589928
Use httpx public API for 'test_content' tests ( #2494 )
2022-12-06 13:27:05 +00:00
Tom Christie
7985f685ca
Use consistent import style ( #2493 )
2022-12-06 11:58:30 +00:00
Demetri
40a0da093b
Add back in URL.raw with NamedTuple ( #2481 )
...
* add back in URL.raw with NamedTuple
* Update _urls.py
* Update _urls.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-12-02 16:20:05 +00:00
Martijn Pieters
933551c519
Typing: enable disallow_untyped_calls ( #2479 )
...
* Typing: enable disallow_untyped_calls
Only the test suite needed adjusting to add type hints.
* Update setup.cfg
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-12-02 10:47:42 +00:00
Martijn Pieters
884a69a902
Typing: enable strict_equality ( #2480 )
...
- ignore mypy when it comes to comparing an IntEnum member with an int
- Correct type hint for `test_wsgi_server_port`'s `expected_server_port`
parameter.
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-12-02 08:45:28 +00:00
dependabot[bot]
5098f47444
Bump cryptography from 38.0.3 to 38.0.4 ( #2485 )
2022-12-01 17:13:10 +00:00
dependabot[bot]
d809a24892
Bump uvicorn from 0.19.0 to 0.20.0 ( #2484 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 18:04:23 +01:00
dependabot[bot]
192e8d828f
Bump pytest from 7.1.2 to 7.2.0 ( #2483 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 17:45:12 +01:00
Martijn Pieters
57aa5b08a4
Enable no_implicit_reexport ( #2475 )
...
- Add explicit exports for names imported from `_compat`
- Correct imports of `URL` (from `._urls`, not via `._models`)
- Correct import of the uvicorn `Server` class
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-30 13:11:22 +00:00
Martijn Pieters
2d37321842
Typing: enable warn_return_any ( #2477 )
2022-11-30 13:08:02 +00:00
Michael Oliver
0eb97fc988
Use wsgi types from typeshed ( #2478 )
2022-11-30 09:48:51 +00:00
Martijn Pieters
049afe5b25
Typing: enable disallow_incomplete_defs ( #2476 )
...
The only places mypy reports issues is in the test suite.
2022-11-30 09:04:54 +00:00
Adrian Garcia Badaracco
1ff67ea47c
Typing: use wsgiref.types to validate types and fix issues uncovered ( #2467 )
...
* Typing: use wsgiref.types to validate types and fix issues uncovered
- start_response() must return a write(bytes) function, even though this
is now deprecated. It's fine to be a no-op here.
- sys.exc_info() can return (None, None, None), so make sure to handle that case.
* remove typing_extensions
Co-authored-by: Martijn Pieters <mj@zopatista.com>
2022-11-29 17:55:21 +00:00
rettier
8327e13454
reuse the digest auth state to avoid unnecessary requests ( #2463 )
...
* reuse the digest auth challenge to avoid sending twice as many requests
* fix for digest testcase
* ran testing/linting scripts
* codereview changes, removed tomchristie username from all authentication tests
Co-authored-by: Philipp Reitter <p.reitter@accessio.at>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-29 17:05:37 +00:00
Adrian Garcia Badaracco
69e13cbc39
Remove and dissallow unused type ignores ( #2470 )
...
* Remove and dissallow unused type ignores
* add pragmas
* fix ignore
2022-11-29 16:55:45 +00:00
Adrian Garcia Badaracco
1fc6a52546
Add mypy flags ( #2472 )
2022-11-29 16:46:00 +00:00
Adrian Garcia Badaracco
1b4e7fbb48
Typing: always fill in generic type parameters ( #2468 )
...
* Typing: always fill in generic type parameters
Being explicit about the parameters helps find bugs and makes the library
easier to use for users.
- Tell mypy to disallow generics without parameter values
- Give all generic types parameters values
* fix things that aren't coming in from other commits
* lint
Co-authored-by: Martijn Pieters <mj@zopatista.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-29 16:36:03 +00:00
Adrian Garcia Badaracco
16e2830624
use # pragma: no cover instead of # pragma: nocover ( #2471 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-29 10:23:18 -06:00
Simon K
deb904dd15
remove chunk_size from api docs for iter_lines variants ( #2464 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-29 15:55:38 +00:00
Adrian Garcia Badaracco
75a13a15aa
Remove typeshed iscoroutine workaround ( #2466 )
...
This was resolved in typeshed and newer mypy versions have inherited the fix.
Co-authored-by: Martijn Pieters <mj@zopatista.com>
2022-11-29 02:45:10 -06:00
Tom Christie
1ba3e2ad4c
Switch extensions from Dict to Mapping. ( #2465 )
...
* Ignore Mapping -> Dict type error
* Fix type of ResponseExtension
* Switch extensions from Dict to Mapping
2022-11-28 12:29:02 +00:00
Ben Falk
8e5e3b871b
update requests compatibility docs on query and form params ( #2461 )
2022-11-25 12:05:46 +00:00
Tom Christie
c0e9dba320
Update CHANGELOG.md ( #2458 )
2022-11-21 13:38:53 +00:00
Tom Christie
883cf8ca6f
Drop multipart requirement from tests ( #2456 )
2022-11-21 10:29:31 +00:00
dependabot[bot]
cd1d51d597
Bump cryptography from 38.0.1 to 38.0.3 ( #2447 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 38.0.1 to 38.0.3.
- [Release notes](https://github.com/pyca/cryptography/releases )
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/38.0.1...38.0.3 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 12:55:22 +00:00
Tom Christie
f11eff45b7
Version 0.23.1 ( #2442 )
...
* Version 0.23.1
* Update dependencies
* Update CHANGELOG
* Update CHANGELOG.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-11-18 12:48:32 +00:00
František Nesveda
a2a69e4bf7
Mention default timeout differences from Requests in compatibility docs ( #2433 )
...
I was recently migrating a project from Requests to HTTPX, and I stumbled a bit on the default socket timeouts being different between the two, which I haven't seen explicitly mentioned anywhere.
This adds a mention of those differences to the compatibility section, feel free to edit it or move it around as you choose.
2022-11-07 15:25:49 +01:00
Tom Christie
8752e2672c
Drop .read/.aread from SyncByteStream/AsyncByteStream ( #2407 )
2022-11-07 14:01:29 +00:00
Michael K
9f9deea944
Run tests against Python 3.11 stable ( #2420 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-07 13:57:48 +00:00
Vincent Fazio
1aea9539bb
Drop cgi module from test_multipart ( #2424 )
...
* Use multipart instead of cgi for multipart tests
The cgi module has been deprecated as of python 3.11.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
* Update setup.cfg
All references to the cgi module have all been removed so there's no
longer a need to silence those deprecation warnings.
The deprecation warning for certifi is resolved as of version 2022.09.24.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-03 11:29:23 +00:00
dependabot[bot]
db00b9279f
Bump uvicorn from 0.18.3 to 0.19.0 ( #2429 )
...
Bumps [uvicorn](https://github.com/encode/uvicorn ) from 0.18.3 to 0.19.0.
- [Release notes](https://github.com/encode/uvicorn/releases )
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/encode/uvicorn/compare/0.18.3...0.19.0 )
---
updated-dependencies:
- dependency-name: uvicorn
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-02 11:19:02 +00:00
dependabot[bot]
9175097128
Bump black from 22.8.0 to 22.10.0 ( #2428 )
...
Bumps [black](https://github.com/psf/black ) from 22.8.0 to 22.10.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/22.8.0...22.10.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-02 11:13:18 +00:00
dependabot[bot]
3b1578f931
Bump mypy from 0.971 to 0.982 ( #2427 )
...
Bumps [mypy](https://github.com/python/mypy ) from 0.971 to 0.982.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.971...v0.982 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-02 09:48:03 +00:00
dependabot[bot]
1b2e3b7cf3
Bump autoflake from 1.4 to 1.7.7 ( #2430 )
...
Bumps [autoflake](https://github.com/PyCQA/autoflake ) from 1.4 to 1.7.7.
- [Release notes](https://github.com/PyCQA/autoflake/releases )
- [Commits](https://github.com/PyCQA/autoflake/compare/v1.4...v1.7.7 )
---
updated-dependencies:
- dependency-name: autoflake
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 09:42:50 +00:00
dependabot[bot]
3f0675c73f
Bump coverage from 6.4.4 to 6.5.0 ( #2431 )
...
Bumps [coverage](https://github.com/nedbat/coveragepy ) from 6.4.4 to 6.5.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases )
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst )
- [Commits](https://github.com/nedbat/coveragepy/compare/6.4.4...6.5.0 )
---
updated-dependencies:
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 18:09:45 +01:00
Tom Christie
9e97d7d429
Drop stalebot ( #2412 )
...
Sorry @stalebot, but we don't need your work here.
We've a low enough ticket count, and you're just adding noise.
2022-10-18 14:42:28 +01:00
Ramazan Elsunakev
71ee50b277
Add parameters to generics in _client.py ( #2266 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2022-10-12 09:45:06 +01:00
Meder Kamalov
36f16234bc
Add dark mode toggle for documentation ( #2403 )
2022-10-11 11:54:24 +01:00
Tom Christie
0ebe9259ac
Allow str content for multipart upload files ( #2400 )
2022-10-06 17:53:51 +01:00
Tom Christie
770d4f2254
Remove unneeded installation on install script ( #2398 )
2022-10-06 15:43:43 +02:00
Tom Christie
2ac58e007a
Always use latest version of pip. ( #2396 )
...
Installation should start by updating `pip` to the latest version.
Resolves issue noted in https://github.com/encode/httpx/pull/2334#issuecomment-1268308195
2022-10-05 18:42:32 +01:00