typing-aliases
Various type aliases.
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-aliasesuv
uv add typing-aliasespoetry
poetry add typing-aliasesInstalling 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
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
namedProvides utilities to inspect and work with…
permissive · top 15,000 on PyPI
useful-typesProvides reusable type protocols and aliases…
unclear · top 15,000 on PyPI
deprecation-aliasProvides a wrapper around the deprecation…
permissive · top 15,000 on PyPI
entrypointProvides a decorator to mark functions as entry…
permissive · top 15,000 on PyPI
async-extensionsProvides utilities and abstractions built on…
permissive · top 15,000 on PyPI
numpy-typing-compatProvides version-specific type annotations for…
permissive · top 5,000 on PyPI
wrapsProvides type-safe wrapper types for…
permissive · top 15,000 on PyPI
mixed-methodsProvides a decorator that lets a single method…
permissive · top 15,000 on PyPI
tyA fast Python type checker and language server…
permissive · top 1,000 on PyPI