types-six
Typing stubs for six
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction; a pure stub package with no runtime dependencies.
- Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license; you can use this in commercial and open-source projects without restriction.
last release 2026-07-24 (21 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,573,715 downloads/mo, #2,069 on PyPI
Alternatives
Verify before relying
pip install types-six
# Then use in your project with mypy or pyright:
# mypy will automatically discover the stubs when you import six- 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.
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 on it.
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
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.
Requires Python 3.10 or later.
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
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 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_six-1.17.0.20260724-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs for six”
- types-sixProvides type hints for the six Python 2/3 compatibility library,…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
- types-appdirsProvides type stubs for the appdirs package to enable static type…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-mypy-extensions · six · types-boltons · types-pyflakes · types-pywin32 · types-zstd · types-docutils · types-Markdown · types-oauthlib · useful-types