Type annotations for lxml
Project description
This repository contains external type annotations for lxml. It can be used by type-checking tools (currently supporting mypy and pyright) to check code that uses lxml, or used within IDEs like VSCode or PyCharm to facilitate development.
Installation
From PyPI
This is the normal choice for most people:
pip install -U types-lxml
From downloaded wheel file
Head over to release page and get wheel file (with extension .whl). Wheel files can be installed in the same way as PyPI package:
pip install -U types-lxml*.whl
Bleeding edge from GitHub
pip install -U git+https://github.com/abelcheung/types-lxml.git
Special notes
There are two special stub-only classes that do not exist as concrete class in lxml:
lxml.etree.ParserTargetlxml.etree.SmartStr
They are intended as helpers when writing code, wrapped under
if TYPE_CHECKING: .... Please consult their docstring in stub files for detail,
or if you are using IDEs, the docstring might have been formatted nicely for reference.
History
Type annotations for lxml were initially included in typeshed, but as it was still incomplete, it was decided to be ripped out as a separate project.
The code was extracted by Jelle Zijlstra and moved to lxml-stubs repository using git filter-branch.
types-lxml is a fork of lxml-stubs that strives for completeness, so that most people would at least find it usable; while the the original lxml-stubs aims to be stable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file types-lxml-2022.4.1.tar.gz.
File metadata
- Download URL: types-lxml-2022.4.1.tar.gz
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b17eeed7c1f890eb46ea7216b87f2845f40d12ea8df111b2916b119ced18b5
|
|
| MD5 |
d49feee073f61ac065d63bfb2d5682b7
|
|
| BLAKE2b-256 |
2f4a7dec0a6b9e2fb74f91637a096239ef688f896a7c36acd11ea1597b774146
|
File details
Details for the file types_lxml-2022.4.1-py3-none-any.whl.
File metadata
- Download URL: types_lxml-2022.4.1-py3-none-any.whl
- Upload date:
- Size: 32.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e65869e2c0a1706cbd2e05d726efbfc213a18fe8ddd4988378969697ee41c7b3
|
|
| MD5 |
a44bc9e2c5e7d4eb5a1c90625416c248
|
|
| BLAKE2b-256 |
775ee692090895c1fea6a14b66473972b06aa372171abc4d18b86d2d5988d694
|