skillfed

types-Markdown

Typing stubs for Markdown

types-markdown v3.10.2.20260712 17.7M downloads/30d#1,105 on PyPI37
Permissive license Apache-2.0 Active released

What it is and what it does

types-Markdown is a type stub package that bridges the Markdown library and static type checkers. It contains type annotations for the Markdown package, allowing tools like mypy (2.2.0) and pyright (1.1.411) to understand the types and signatures of Markdown's public API when analyzing code that imports and uses it.

This package is maintained as part of the typeshed project and is automatically generated from typeshed's stub definitions. It has no runtime dependencies and is installed purely to support development-time type checking. Once installed, type checkers will automatically discover and use the stubs to validate calls to Markdown functions and classes.

Use it for:

  • Enable mypy or pyright to type-check code that calls Markdown library functions without false positives.
  • Catch type errors in Markdown usage (e.g., passing wrong argument types) before runtime.
  • Provide IDE autocomplete and inline type hints for Markdown APIs in editors that support type stubs.
  • Validate Markdown integration in a larger typed codebase without modifying the Markdown library itself.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type stubs for the Markdown package, enabling type checkers like mypy and pyright to validate code that uses Markdown.

Yes, if you use Markdown in a codebase with static type checking. Install it alongside mypy or pyright to eliminate type-checking blind spots in Markdown usage. No installation needed if you don't use a type checker or don't use the Markdown library.

Install

types-markdown on PyPI

pip

pip install types-markdown

uv

uv add types-markdown

poetry

poetry add types-markdown

Installing types-Markdown

Before you install

Low install friction with no runtime dependencies. Maintained actively as part of the typeshed project, with recent updates.

License in practice

Licensed under Apache-2.0 (permissive), imposing no significant restrictions on use or redistribution.

Quickstart

pip install types-Markdown

# Then use with mypy or pyright in your project
# mypy will automatically discover the stubs when checking code that imports markdown

Requires Python >=3.10; type checker (mypy, pyright, or similar) must be installed separately to use the stubs.

Verify before relying

  • Whether this stub package works with Markdown versions outside the ~=3.10.2 range it targets.
  • Coverage completeness for all public Markdown APIs relative to the actual library.

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 — 33 days since the last release
Last repo commit
First released
Downloads 17,723,404/month — #1,105 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: types_markdown-3.10.2.20260712-py3-none-any.whl

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs markdownmypy markdown typespyright markdown annotationsmarkdown type checkingtypeshed markdown stubsmarkdown type hintsstatic type checking markdown
type-stubstype-checking

More Markup packages