types-yt-dlp
Typing stubs for yt-dlp
What it is and what it does
This package provides type stubs—skeletal type annotations without runtime code—for yt-dlp, a popular video downloader. When installed, it allows static type checkers like mypy and pyright to understand the types and signatures of yt-dlp's public API, catching type errors in your code before runtime.
Type stubs are useful when you want type-checking benefits without modifying the original package or when the original package lacks inline annotations. This stub package is maintained as part of the typeshed project, a centralized repository of type information for the Python ecosystem. It has no runtime dependencies and is tested against multiple type checkers to ensure accuracy.
Use it for:
- Enable type checkers to validate code that calls yt-dlp functions and classes
- Catch type mismatches in yt-dlp API calls during development rather than at runtime
- Use yt-dlp in a codebase with strict type-checking enabled in CI pipelines
- Get IDE autocomplete and type hints when using a type-aware editor with yt-dlp
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for yt-dlp, enabling static type checkers to validate code that uses yt-dlp without requiring the full package to be installed.
Yes, if you use yt-dlp and run static type checking. Install it alongside yt-dlp to get type safety with no runtime overhead. The package is actively maintained, has no external dependencies, and is tested against current type checkers. If you don't use type checking, there is no benefit to installing it.
Install
types-yt-dlp on PyPI
pip
pip install types-yt-dlpuv
uv add types-yt-dlppoetry
poetry add types-yt-dlpInstalling types-yt-dlp
Before you install
Low friction to install; actively maintained with releases tracking yt-dlp versions closely. Tested against current type checkers (mypy 2.3.0, pyright 1.1.411, ty 0.0.59).
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restrictions.
Quickstart
pip install types-yt-dlp
# Type checkers will now understand types-yt-dlp annotations
# when checking code that imports yt-dlp
Requires Python 3.10 or later. Stubs are designed for yt-dlp==2026.7.4; version mismatches may cause type checker warnings.
Verify before relying
- Whether these stubs remain accurate across minor yt-dlp patch versions outside 2026.7.4
- Coverage completeness: whether all public yt-dlp APIs are annotated or only a subset
- Whether yt-dlp must be installed separately for the stubs to be useful
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 — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,527/month — #14,985 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_yt_dlp-2026.7.4.20260807-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-braintreeProvides type hints for the braintree payment…
permissive · top 15,000 on PyPI
types-PygmentsProvides type hints for the Pygments syntax…
permissive · top 5,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-openpyxlProvides type hints for openpyxl, enabling…
permissive · top 5,000 on PyPI
types-dateparserProvides type stubs for the dateparser package,…
permissive · top 5,000 on PyPI
types-django-filterProvides type hints for django-filter, enabling…
permissive · top 15,000 on PyPI
types-bleachProvides type stubs for the bleach HTML…
permissive · top 5,000 on PyPI
types-tensorflowProvides type hints for TensorFlow 2.18.0,…
permissive · top 15,000 on PyPI
bgutil-ytdlp-pot-providerA yt-dlp plugin that provides proof-of-origin…
copyleft · top 15,000 on PyPI
types-reportlabProvides type hints for the reportlab PDF…
permissive · top 15,000 on PyPI