lxml-stubs
Type annotations for the lxml package
Decision gist · record as of 2026-08-14
Yes, if you are actively using mypy with lxml and can tolerate incomplete type coverage and no ongoing maintenance. The permissive license and zero runtime dependencies make installation safe. However, be aware that the abandoned status means type annotations will not be updated for new lxml features or API changes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- However, the repository is archived and abandoned as of the last commit on 2026-05-13, with no releases for 947 days.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache Software License (permissive), allowing use in commercial and private projects with minimal restrictions.
last release 2024-01-10 (947 days) · last repo commit 2026-05-13 · 51 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,546,897 downloads/mo, #2,283 on PyPI
Alternatives
Verify before relying
pip install lxml-stubs
Then mypy will automatically use the type annotations when checking code that imports lxml.- Current completeness of type annotations relative to lxml's full API surface
- Compatibility with recent lxml versions and mypy releases
- Whether the abandoned status affects ongoing type stub maintenance
What it is and what it does
lxml-stubs is a package of external type annotations for lxml, the popular XML and HTML processing library. It allows developers using mypy or other PEP 484-compatible type checkers to catch type errors in code that uses lxml. The stubs were originally part of typeshed but were extracted into a separate repository because lxml's annotations are still incomplete and the maintainers wanted to avoid false positives from partial annotations.
The package installs as a wheel with no runtime dependencies and integrates automatically with mypy. However, the repository is now archived and abandoned, with the last commit on 2026-05-13 and no releases for 947 days. This means type annotations may not reflect recent changes to lxml itself, and gaps in coverage are unlikely to be filled.
Use it for
- Enable mypy type checking on projects that depend on lxml for XML/HTML parsing
- Catch type errors in lxml API calls during development rather than at runtime
- Integrate lxml into a fully typed codebase without treating it as untyped
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively using mypy with lxml and can tolerate incomplete type coverage and no ongoing maintenance.
The permissive license and zero runtime dependencies make installation safe. However, be aware that the abandoned status means type annotations will not be updated for new lxml features or API changes.
Install
lxml-stubs on PyPI
Before you install
Low install friction with no runtime dependencies. However, the repository is archived and abandoned as of the last commit on 2026-05-13, with no releases for 947 days.
License in practice
Licensed under Apache Software License (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install lxml-stubs
Then mypy will automatically use the type annotations when checking code that imports lxml.
Verify before relying
- Current completeness of type annotations relative to lxml's full API surface
- Compatibility with recent lxml versions and mypy releases
- Whether the abandoned status affects ongoing type stub maintenance
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 947 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 4,546,897 / month, #2,283 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software License |
Evidence: lxml_stubs-0.5.1-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 annotations lxml”
- lxml-stubsProvides type annotations for the lxml package to enable static type…
- types-lxmlProvides complete external type annotations for lxml, enabling static…
- prosemirrorProvides Python implementations of core ProseMirror modules (model,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-lxml · sqlalchemy2-stubs · django-filter-stubs · types-networkx · types-Flask · types-attrs · pyspark-stubs · types-beautifulsoup4 · types-MarkupSafe · dargs