$npx skillfedfor your agent

types-PyYAML

Typing stubs for PyYAML

With conditionsPyPI Released Jul 202680.7M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — types_pyyaml-6.0.12.20260724-py3-none-any.whl
v6.0.12.20260724 · released 2026-07-24 · Python >=3.10

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 21 days since the last release
Last repo commit
First released
Downloads80,701,250 / month, #417 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
type stubs pyyamlpyyaml type hintsyaml typing annotationsstatic type checking yamlpyyaml type annotationstyping stubs yaml
Topics
type-stubstype-checking

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

types-pyflakes With conditions
PyPI · Quality Assurance · released Jul 2026

Provides type stubs for the pyflakes static analysis tool, enabling type checkers like mypy and pyright to understand and validate code that uses pyflakes.

Apache-2.0pure Python · 3.10+
89.1Kdownloads / mo
types-mypy-extensions With conditions
PyPI · Software Development · released Jul 2026

Provides type stubs for mypy-extensions, enabling type checkers like mypy and pyright to understand code using the mypy-extensions library.

Apache-2.0pure Python · 3.10+
148.9Kdownloads / mo
types-paramiko With conditions
PyPI · released Jul 2026

Provides type hints for paramiko, enabling static type checking of code that uses paramiko for SSH connections and file transfers.

Apache-2.0pure Python · 3.10+
26.7Mdownloads / mo
types-boltons With conditions
PyPI · Software Development · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
146.6Kdownloads / mo
types-docker With conditions
PyPI · Software Development · released Aug 2026

Provides type hints for the docker package, enabling static type checkers like mypy and pyright to validate code that uses the Docker Python client.

Apache-2.0pure Python · 3.10+
1.3Mdownloads / mo
types-pynput With conditions
PyPI · Software Development · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
88.6Kdownloads / mo

See also types-yt-dlp · types-pyinstaller · types-httplib2 · types-jmespath