types-six
Typing stubs for six
What it is and what it does
types-six is a type stub package that provides type annotations for the six library, a Python 2 and 3 compatibility utility. It allows static type checkers like mypy and pyright to understand and validate code that uses six's functions and classes. The stubs are maintained as part of the typeshed project and are kept in sync with six version 1.17.*.
This is a development-time tool, not a runtime dependency. You install it so your type checker can verify that your code correctly uses six's API. It has no runtime dependencies and installs as a pure Python wheel, making it lightweight and friction-free to add to a project.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses six for Python 2/3 compatibility.
- Catch type errors in six API calls during development without running the code.
- Provide IDE autocomplete and type hints for six functions when editing code.
- Validate legacy codebases that still rely on six for cross-version support.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the six Python 2/3 compatibility library, enabling type checkers like mypy and pyright to validate code that uses six.
Yes, if you use six and run a type checker. It's lightweight, actively maintained, has no runtime overhead, and solves the concrete problem of type-checking six-based code. Skip it only if you don't use type checkers or don't use six.
Install
types-six on PyPI
pip
pip install types-sixuv
uv add types-sixpoetry
poetry add types-sixInstalling types-six
Before you install
Low friction; a pure stub package with no runtime dependencies. Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 permissive license; you can use this in commercial and open-source projects without restriction.
Quickstart
pip install types-six
# Then use in your project with mypy or pyright:
# mypy will automatically discover the stubs when you import six
Requires Python 3.10 or later.
Verify before relying
- Whether the stubs cover all six 1.17.* APIs or only a subset.
- Whether this package is required or optional when using six with type checkers.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,573,715/month — #2,069 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_six-1.17.0.20260724-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-pywin32Provides type stubs for pywin32, enabling type…
permissive · top 15,000 on PyPI
types-zstdProvides type hints for the zstd compression…
permissive · top 15,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
useful-typesProvides reusable type protocols and aliases…
unclear · top 15,000 on PyPI