types-PyYAML
Typing stubs for PyYAML
Install
types-pyyaml on PyPI
pip
pip install types-pyyamluv
uv add types-pyyamlpoetry
poetry add types-pyyamlPackage 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 — 20 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: types_pyyaml-6.0.12.20260724-py3-none-any.whl
About types-PyYAML
from the package's own PyPI description — quoted content, verbatim
Typing stubs for PyYAML
This is a type stub package
for the PyYAML package. It can be used by type checkers
to check code that uses PyYAML. This version of
types-PyYAML aims to provide accurate annotations for
PyYAML==6.0.*.
This package is part of the typeshed project.
All fixes for types and metadata should be contributed there.
See the README
for more details. The source for this package can be found in the
stubs/PyYAML
directory.
This package was tested with the following type checkers: * mypy 2.3.0 * pyright 1.1.411
It was generated from typeshed commit
97e83f65cee88c0c978fa34668d9f59b8c362fce.
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Provides type hints and stub annotations for PyYAML, enabling static type checkers like mypy and pyright to validate code that uses the PyYAML library.
Minimal friction: zero runtime dependencies, pure stub package distributed as a wheel. Actively maintained with a release 20 days old and ongoing typeshed integration.
Apache-2.0 permissive license allows use in most projects without restriction, including commercial and proprietary software.
Usage
pip install types-PyYAML
# Type checkers will now understand PyYAML imports when validating your code
Requires Python 3.10 or later; only provides type information and does not replace the PyYAML package itself.
Verdict: A lightweight, actively maintained type stub package with no dependencies and permissive licensing. Suitable for any project using PyYAML that wants static type checking support with mypy or pyright. No known vulnerabilities.
Needs verification
- Whether this package is automatically installed as a dependency of PyYAML or must be explicitly added to type-checking workflows.
- Coverage completeness: what percentage of PyYAML's public API is annotated in this stub version.
Similar packages
permissive · top 100 on PyPI
types-paramikopermissive · top 1,000 on PyPI
types-pytzpermissive · top 1,000 on PyPI
types-python-dateutilpermissive · top 1,000 on PyPI
types-cachetoolspermissive · top 1,000 on PyPI
types-tomlpermissive · top 1,000 on PyPI
types-requestspermissive · top 1,000 on PyPI
types-setuptoolspermissive · top 1,000 on PyPI
lazy-loaderpermissive · top 1,000 on PyPI
types-protobufpermissive · top 1,000 on PyPI