types-PyYAML
Typing stubs for PyYAML
Decision gist · record as of 2026-08-14
Yes, if you use PyYAML and run a static type checker. Install it in your development environment to get type checking coverage for PyYAML code. No runtime impact; purely a development tool. No known vulnerabilities and actively maintained.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; a type checker such as mypy or pyright must be configured in your project.
- Low friction: a pure-Python stub package with no runtime dependencies.
- Maintained actively as part of typeshed, with a recent release (21 days old).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without restriction.
last release 2026-07-24 (21 days) · last repo commit 2026-08-13 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 80,701,250 downloads/mo, #417 on PyPI
Alternatives
Verify before relying
pip install types-PyYAML
# Type checkers will now understand types-PyYAML annotations
# when analyzing code that imports PyYAML- Whether this stub package is automatically discovered by type checkers or requires explicit configuration.
- Whether the stubs work correctly with PyYAML versions outside the 6.0.* range.
What it is and what it does
types-PyYAML is a type stub package that provides type annotations for PyYAML. It allows static type checkers to understand and validate code that uses PyYAML, catching type errors before runtime. The stubs are maintained as part of the typeshed project and aim to provide accurate annotations for PyYAML 6.0.*.
This package contains no runtime code—it's purely for type checking. You install it in your development environment so that your type checker can resolve types when analyzing code that calls PyYAML functions. The stubs have been tested against mypy 2.3.0 and pyright 1.1.411.
Use it for
- Enable type checkers to validate code that reads or writes YAML files using PyYAML.
- Catch type mismatches in PyYAML function calls during development rather than at runtime.
- Provide IDE autocomplete and type hints for PyYAML in editors that support type stubs.
- Maintain type safety in projects that use PyYAML for configuration or data serialization.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use PyYAML and run a static type checker.
Install it in your development environment to get type checking coverage for PyYAML code. No runtime impact; purely a development tool. No known vulnerabilities and actively maintained.
Install
types-pyyaml on PyPI
Before you install
Low friction: a pure-Python stub package with no runtime dependencies. Maintained actively as part of typeshed, with a recent release (21 days old).
Requires Python 3.10 or later; a type checker such as mypy or pyright must be configured in your project.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction.
Quickstart
pip install types-PyYAML
# Type checkers will now understand types-PyYAML annotations
# when analyzing code that imports PyYAML
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration.
- Whether the stubs work correctly with PyYAML versions outside the 6.0.* range.
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 | 80,701,250 / month, #417 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_pyyaml-6.0.12.20260724-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs pyyaml”
- types-PyYAMLProvides type stubs for PyYAML to enable static type checking of code…
- kubernetes-typedA mypy plugin that adds type checking support for Kubernetes objects,…
- jsonschema-gentypesGenerates Python TypedDict types from JSON Schema definitions, with…
Give your agent the search over MCP, or paste the wish link into any chat.
Similar packages
Provides type stubs for the pyflakes static analysis tool, enabling type checkers like mypy and pyright to understand and validate code that uses pyflakes.
Provides type stubs for mypy-extensions, enabling type checkers like mypy and pyright to understand code using the mypy-extensions library.
Provides type hints for paramiko, enabling static type checking of code that uses paramiko for SSH connections and file transfers.
Provides type stubs for the boltons library, enabling static type checkers like mypy and pyright to validate code that uses boltons without requiring the library itself to be installed.
Provides type hints for the docker package, enabling static type checkers like mypy and pyright to validate code that uses the Docker Python client.
Provides type hints for the pynput library, enabling static type checkers like mypy and pyright to validate code that uses pynput for keyboard and mouse input.
See also types-yt-dlp · types-pyinstaller · types-httplib2 · types-jmespath