--- id: types-pyyaml version: "6.0.12.20260724" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-PyYAML — Typing stubs for PyYAML License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install types-pyyaml uv add types-pyyaml poetry add types-pyyaml ## Description ## Typing stubs for PyYAML This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html) for the [`PyYAML`](https://github.com/yaml/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](https://github.com/python/typeshed). All fixes for types and metadata should be contributed there. See [the README](https://github.com/python/typeshed/blob/main/README.md) for more details. The source for this package can be found in the [`stubs/PyYAML`](https://github.com/python/typeshed/tree/main/stubs/PyYAML) directory. This package was tested with the following type checkers: * [mypy](https://github.com/python/mypy/) 2.3.0 * [pyright](https://github.com/microsoft/pyright) 1.1.411 It was generated from typeshed commit [`97e83f65cee88c0c978fa34668d9f59b8c362fce`](https://github.com/python/typeshed/commit/97e83f65cee88c0c978fa34668d9f59b8c362fce). ## AI interpretation — verify before relying Provides type hints and stub annotations for PyYAML, enabling static type checkers like mypy and pyright to validate code that uses the PyYAML library. 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. [View on SkillFed](https://skillfed.io/packages/types-pyyaml) · [View on PyPI](https://pypi.org/project/types-pyyaml/)