skillfed

types-futures

Typing stubs for futures

types-futures v3.3.8 497.7K downloads/30d#6,332 on PyPI5,108
Permissive license Apache-2.0 license Active released

What it is and what it does

types-futures is a PEP 561 type stub package that provides type information for the standard library's futures module. It allows static type checkers—mypy, PyCharm, pytype, and similar tools—to understand the types and signatures of futures classes and functions when analyzing your code. The stubs are maintained as part of the typeshed project and are generated from its repository.

This package contains no runtime code; it exists solely to improve the type-checking experience. If you use a type checker and work with concurrent.futures or the futures package, installing this stub package will enable your checker to catch type errors and provide better IDE autocompletion. It has no runtime dependencies and installs as a lightweight wheel.

Use it for:

  • Enable mypy or pyright to type-check code that uses ThreadPoolExecutor or ProcessPoolExecutor
  • Get IDE autocompletion and type hints for futures module classes in development environments
  • Validate callback signatures and return types in concurrent.futures workflows
  • Ensure type safety in async or concurrent code before runtime execution

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type stubs for the futures package, enabling static type checkers like mypy and PyCharm to understand and validate code using futures.

Yes, if you use a static type checker with code that imports from futures or concurrent.futures. It is a lightweight, permissive-licensed stub package with no dependencies and active upstream maintenance. Install it as part of your development environment to catch type errors early. If you do not use type checking, it provides no value.

Install

types-futures on PyPI

pip

pip install types-futures

uv

uv add types-futures

poetry

poetry add types-futures

Installing types-futures

Before you install

Low install friction with a pure-Python wheel distribution. Maintenance is active with recent repository activity, though the package itself has not been released since 2022-01-27.

License in practice

Licensed under Apache-2.0, a permissive license that allows use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

pip install types-futures

# Then use in your code with a type checker:
from concurrent.futures import ThreadPoolExecutor

executor = ThreadPoolExecutor(max_workers=2)
# Type checker now understands ThreadPoolExecutor's interface

Verify before relying

  • Whether this stub package is still synchronized with the current futures API or if newer versions exist elsewhere
  • Compatibility with modern type checkers and their evolving stub resolution mechanisms

Package facts

License Apache-2.0 license (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 1,660 days since the last release
Last repo commit
First released
Downloads 497,741/month — #6,332 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: types_futures-3.3.8-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseTyping :: Stubs Only

Tags

type stubs futuresmypy futures typingstatic type checking futurespep 561 stubsfutures type hintspyright futures typestype annotations futures
type-stubspep-561

More Software Development packages