skillfed

types-six

Typing stubs for six

types-six v1.17.0.20260724 5.6M downloads/30d#2,069 on PyPI37
Permissive license Apache-2.0 Active released

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-six

uv

uv add types-six

poetry

poetry add types-six

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs for sixsix typing annotationsmypy six compatibilitypyright six typespython 2 3 compatibility types
type-stubstyping

More Software Development packages