types-Markdown
Typing stubs for Markdown
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-markdownuv
uv add types-markdownpoetry
poetry add types-markdownInstalling 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
Tags
More Markup packages
PyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
markdown-it-pyA Python markdown parser that converts markdown…
permissive · top 100 on PyPI
beautifulsoup4Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
et-xmlfileet_xmlfile writes large XML files with minimal…
permissive · top 1,000 on PyPI
tomlkitParses and edits TOML files while preserving…
permissive · top 1,000 on PyPI
docstring-parserParses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
types-cachetoolsProvides type stubs for cachetools, enabling…
permissive · top 1,000 on PyPI
types-click-spinnerProvides type stubs for the click-spinner…
permissive · top 15,000 on PyPI
types-coloramaProvides type stubs for colorama, enabling…
permissive · top 5,000 on PyPI
types-croniterProvides type stubs for the croniter package,…
permissive · top 5,000 on PyPI
types-decoratorProvides type stubs for the `decorator`…
permissive · top 5,000 on PyPI
types-Flask-CorsProvides type stubs for Flask-Cors to enable…
permissive · top 5,000 on PyPI
types-gdbProvides type stubs for GDB's Python API,…
permissive · top 15,000 on PyPI
types-icalendarProvides type stubs for the icalendar package,…
permissive · top 15,000 on PyPI
types-pyperclipProvides type annotations for the pyperclip…
permissive · top 15,000 on PyPI
types-requestsProvides type annotations for the requests…
permissive · top 1,000 on PyPI