lxml-stubs
May 13, 2026 ยท View on GitHub
NOTE: This package is not maintained. It was superseded by the more complete and externally maintained fork types-lxml.
About
This repository contained external type annotations (see PEP 484) for the lxml package.
Installation
To use these stubs with mypy, you have to
install the lxml-stubs package.
pip install lxml-stubs
Contributing
Contributions should follow the same style guidelines as typeshed.
History
These type annotations were initially included in typeshed, but lxml's annotations are still incomplete and have therefore been extracted from typeshed to avoid unintentional false positive results.
The code was extracted by Jelle Zijlstra from the original typeshed codebase
and moved to a separate repository using git filter-branch.
Authors
Numerous people have contributed to the lxml stubs; see the git history for details.