--- id: types-requests version: "2.33.0.20260712" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-requests — Typing stubs for requests License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install types-requests uv add types-requests poetry add types-requests ## Description ## Typing stubs for requests This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html) for the [`requests`](https://github.com/psf/requests) package. It can be used by type checkers to check code that uses `requests`. This version of `types-requests` aims to provide accurate annotations for `requests~=2.33.0`. Note: `types-requests` has required `urllib3>=2` since v2.31.0.7. If you need to install `types-requests` into an environment that must also have `urllib3<2` installed into it, you will have to use `types-requests<2.31.0.7`. *Note:* The `requests` package includes type annotations or type stubs since version 2.34.0. Please uninstall the `types-requests` package if you use this or a newer version. This package is part of the [typeshed project](https://github.com/python/typeshed). All fixes for types and metadata should be contributed there. See [the README](https://github.com/python/typeshed/blob/main/README.md) for more details. The source for this package can be found in the [`stubs/requests`](https://github.com/python/typeshed/tree/main/stubs/requests) directory. This package was tested with the following type checkers: *... ## AI interpretation — verify before relying Provides type stubs for the requests library, enabling static type checkers like mypy and pyright to validate code that uses requests without runtime overhead. Verdict: A well-maintained type stub package backed by typeshed and tested against mypy 2.2.0 and pyright 1.1.411. No known vulnerabilities. Note that requests includes type annotations since version 2.34.0, making types-requests unnecessary for those versions. [View on SkillFed](https://skillfed.io/packages/types-requests) · [View on PyPI](https://pypi.org/project/types-requests/)