Skip to main content

Type annotations for the lxml package

Project description



This repository contains external type annotations (see PEP 484) for the lxml package.


To use these stubs with mypy, you have to install the lxml-stubs package.

pip install lxml-stubs


Contributions should follow the same style guidelines as typeshed.


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.


Numerous people have contributed to the lxml stubs; see the git history for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lxml-stubs-0.4.0.tar.gz (12.8 kB view hashes)

Uploaded source

Built Distribution

lxml_stubs-0.4.0-py3-none-any.whl (13.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page