skillfed

typing-aliases

Various type aliases.

typing-aliases v1.10.1 116.4K downloads/30d#12,207 on PyPI3
Permissive license MIT DORMANT released

What it is and what it does

typing-aliases is a lightweight library that exports a curated set of type aliases for Python's typing module. It sits on top of typing-extensions and is designed to reduce repetition when writing type hints for common patterns—things like union types, optional types, or other frequently-used combinations that developers would otherwise write out in full each time.

The package targets Python 3.8 and above and is marked as Production/Stable. It has no known vulnerabilities and installs with minimal friction, requiring only typing-extensions as a runtime dependency. However, the project is dormant: the last commit was in April 2024 and there have been no releases in over 844 days, so it is not actively maintained.

Use it for:

  • Reduce boilerplate in type hints by importing pre-defined aliases instead of writing complex union or optional types repeatedly.
  • Standardize common type patterns across a codebase by using a shared set of aliases from this library.
  • Simplify function signatures and class annotations in projects that target Python 3.8 or later.

Worth the install?

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

Provides a collection of type aliases for Python's typing system, reducing boilerplate when declaring complex type hints in modern Python codebases.

Yes, if you want to reduce type-hint boilerplate and your project targets Python 3.8+. The permissive MIT license and zero security vulnerabilities make it safe to use. However, be aware that maintenance is dormant—no releases in over 844 days—so if you need active support or compatibility updates for future Python versions, you may need to fork or maintain it yourself.

Install

typing-aliases on PyPI

pip

pip install typing-aliases

uv

uv add typing-aliases

poetry

poetry add typing-aliases

Installing typing-aliases

Before you install

Low friction install with a single runtime dependency (typing-extensions). Maintenance is dormant—last commit was 2024-04-23 and no releases in over 844 days—but the package is marked Production/Stable and carries no known vulnerabilities.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install typing-aliases

from typing_aliases import StrOrInt

def process(value: StrOrInt) -> None:
    pass

Python 3.8 or above is required.

Verify before relying

  • What specific type aliases are included in the library and which use cases they address most commonly.
  • Whether the dormant maintenance status affects compatibility with newer Python typing features or if the stable set of aliases remains sufficient.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — typing-extensions
Maintenance dormant — 844 days since the last release
Last repo commit
First released
Downloads 116,366/month — #12,207 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: typing_aliases-1.10.1-py3-none-any.whl

Keywords: python, typing, alias

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: UtilitiesTyping :: Typed

Tags

type aliases for typingtyping shortcutspython type hints helperscommon type alias librarytyping-extensions utilitiesreduce type annotation boilerplate
typingtype-hints

More Utilities packages