typings/httpx/__init__.pyi
raw| 1 | # `respx` (used by our test-suite) is typed against `httpx`, while this SDK is built on `httpx2`. |
| 2 | # At runtime the tests alias `httpx` to `httpx2` (see `tests/_alias_httpx.py`); this stub does the |
| 3 | # same for pyright (whose `stubPath` defaults to `typings/`), so that e.g. |
| 4 | # `respx_mock.get(...).mock(return_value=httpx2.Response(...))` type-checks. |
| 5 | from httpx2 import * |
| 6 | from httpx2 import _client as _client |