lxml-stubs
Type annotations for the lxml package
0.5.1
4.5M downloads/mo
#2283 most downloaded on PyPI
lxml/lxml-stubs
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 5 weeks to 1.9 years
This project publishes no release notes
the list below is its commits, not an announcement
Nothing withdrawn
no release was ever pulled
6 years old
7 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
7 releases · May 2020 to Jan 2024Releases
latest 7-
0.5.110 Jan 2024Commits, not release notes
This project publishes no release notes. Between
0.4.0and0.5.1there were 27 commits, 26 of them substantive:- Add parse method for _ElementTree class (GH-67)
- Improve "parser=" and return annotations of fromstring() and parse() (GH-64)
- Use alias for parser arguments to allow both XML and HTML parsers.
- Add _ElementTree.iterfind() and _ElementTree.getelementpath() (GH-69)
- Fix return type of
_Element.iter*methods (GH-70) - Fix argument order in iter*() methods to mark the keyword-only arguments as such.
- Update CI workflows.
- _Attrib.pop() does not require a default argument (GH-80)
- Fix type of _TagSelector: also suports iterables of tag selectors.
- Reformat
- Remove testing (and support) for Py3.6.
- Fix base Python for tox after switching to Py3.10 in CI.
- Update test dependencies (GH-87)
- Ensure modern mypy versions are used for testing (GH-89)
- Use recursion in the _TagSelector Collection[] hint (GH-88)
- Add stubs for XMLPullParser and HTMLPullParser (GH-84)
- Include test files in sdist.
- Add missing package metadata.
- etree._Element.setitem() (GH-96)
- mark two parser arguments as being optional (GH-94)
…and 6 more.
-
0.4.004 Mar 2022Commits, not release notes
This project publishes no release notes. Between
0.3.1and0.4.0there were 17 commits, 16 of them substantive:- Add
xincludemethod to_ElementTree(GH-45) - Change
_tagargument type ofElement,SubElementandmakeelementto_TagName(GH-44) - Add
etree.iselement()(GH-46) etree.XPath: Fixnamespacesandextensionstype and addpathattribute (GH-47)- Add
XPathEvaluatorandETXPath(GH-48) - Add .find*() methods to _ElementTree class and fix a parameter name.
- Add
extend,index,keysandvaluesmethods to _Element (GH-49) - Add dedicated mypy test job and start testing with Python 3.10 (GH-39)
- Add validation methods to
_Validatorand add it asXMLSchemabase class (GH-50) - Add a minimal config for Pyright to suppress warnings about "private" names starting with underscores, e.g. "_Element" (GH-53)
- Parametrise the etree.tostring() encoding tests (GH-54)
- Add overload for findtext() that sets the return type from the default value (GH-55)
- Make sure that all CI tests run through, even if one fails.
- Unify namespace related arguments to allow changing them in one place (GH-56)
- Add Pathlike as valid type for file arguments (GH-60)
- Add "getattr()" method to ObjectifiedElement to support arbitrary attribute lookups.
- Add
-
0.3.129 Jan 2022Commits, not release notes
This project publishes no release notes. Between
0.3.0and0.3.1there were 4 commits, 4 of them substantive:- Clean up the readme.
- Fix declaration problems found by mypy.
- Change iterfind argument "namespace" to "namespaces" (GH-41)
- Set version to 0.3.1.
-
0.3.021 Nov 2021Commits, not release notes
This project publishes no release notes. Between
0.2.0and0.3.0there were 8 commits, 7 of them substantive:- test-data: Update for mypy 0.900 double quotes (GH-35)
- Increase version number.
- Add DocInfo class and several missing properties.
- Add "position" property to ParseError exception (GH-37)
- Add missing whitespace.
- Adds etree._Element.iterancestors, -descendants, -siblings & -text (GH-38)
- Add Makefile for wheel building.
-
0.2.021 May 2021Commits, not release notes
This project publishes no release notes. Between
0.1.1and0.2.0there were 36 commits, 36 of them substantive:- Add
_Element.iterchildren() - Fix return type of
CustomElementClassLookup.lookup() - Add _Element.findtext() stub (GH-13)
- Wrap long line.
- Enable helpful output from 'black' runs.
- Fix code formatting.
- Overload etree.tostring return type depending on encoding (GH-14)
- Show missorted imports on 'isort' failures.
- Sort imports.
- Fix code formatting.
- Add stub for lxml.etree.TreeBuilder (GH-16)
- Fix formatting.
- add stubs for lxml.html.defs (GH-17)
- Include stub files in "lxml.html" when building stub-only package (GH-18)
- Fix typo in _Element.find() method.
- Add stubs for
etree.HTMLParser,etree.HTMLandetree.XML(GH-25) - Add initial lxml.html declarations (GH-20)
- Run tests on PRs (GH-26)
- Fix import formatting.
- Fix import formatting.
…and 16 more.
- Add
-
0.1.109 Aug 2020Nothing published for this version
-
0.123 May 2020Nothing published for this version