Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 7, 2026

Bumps types-lxml from 2025.8.25 to 2026.1.1.

Release notes

Sourced from types-lxml's releases.

2026.01.01

Breaking or important changes

  • Supports facebook's pyrefly type checker (#106, #107)
  • Initial mypy plugin that mimics XMLParser.set_element_class_lookup() behavior

Bug fixes

  • Setting HtmlElement.label to None is disallowed
  • Basic stub works with Python 3.9 again; TypeAlias usage caused requirement of Python 3.10

Test related

  • Migrate HtmlMixin properties and .set() method tests to runtime

Other changes

  • types-lxml[dev] extras is installable again

It is possible to verify all release files indeed originate from GitHub and not altered elsewhere using GitHub CLI. For example, after downloading wheel file, run the following command in terminal to validate:

gh at verify types_lxml-2026.1.1-py3-none-any.whl --repo abelcheung/types-lxml

2025.11.25

Breaking and Important changes

  • Declare Python 3.14 support
  • PEP 800 support (@disjoint_base)
    • As a result, remove Python 3.8 support and require newest type checkers / typing_extensions

Features

  • Additional libxml2 error constants from lxml 6.0.1+
  • Use io.Reader and io.Writer from Python 3.14, replacing SupportsRead and SupportsWrite from typeshed.

Bug fix

  • (#100, thanks to @​BeatButton) Replace __init__() with __new__() for all XMLParser subclasses, overriding XMLParser.__new__(). Due to CustomTargetParser change in fdf2a8117562c1b07309239554bb36d021f0b207, XMLParser uses __new__() instead of __init__(). That commit brought in undesirable effect: pyright treats all XMLParser / HTMLParser subclasses instances as base class instances.
  • Add @type_check_only to some protocols and generics

Refactor

  • Drop deprecated collection-related typing aliases
  • Replace some LiteralString with Literal constants when value is fixed
  • Drop unused type ignore comments because we are not supporting wide range of type checker versions now

Minor changes

  • No more globally ignore mypy assignment error code in tests
  • Add HTMLParser.__init__() and XMLParser.__init__() to allowlist, due to #100
Commits
  • bb4acb1 chore: Prepare for new release
  • ab993fe test: Migrate HtmlElement.set() static tests to runtime ones
  • 3705245 style: Ruff formating changes
  • c244ec2 docs: Add copilot instructions
  • 300aeba fix: Python-version can be set for pyrefly now
  • 2e3c76e docs: update README on current status
  • 9325c33 chore: Minimum pyrefly version is 0.45.2
  • 97e1adc test: Disable ty type checker, too immature
  • c28af1c chore: Refresh multi subclass patch
  • a913894 chore: More type checker vers in compat workflow, add pyrefly
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [types-lxml](https://github.com/abelcheung/types-lxml) from 2025.8.25 to 2026.1.1.
- [Release notes](https://github.com/abelcheung/types-lxml/releases)
- [Commits](abelcheung/types-lxml@2025.08.25...2026.01.01)

---
updated-dependencies:
- dependency-name: types-lxml
  dependency-version: 2026.1.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants