Update dependency types-lxml to v2023.3.28 #44
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/types-lxml-2023.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2023.2.11
->2023.3.28
Release Notes
abelcheung/types-lxml
v2023.3.28
Compare Source
The list of changes since last release is huge, be it visible by users or not.
Breaking changes
html.HtmlComment
and friends have changed to deviate from source code. Now they are 'thought' to inherit fromhtml.HtmlElement
within stubs, like the XMLetree._Element
counterpart. Refer to wiki document on how and why this change is done.target=
argument), as current python typing system is deemed insufficient to get it working without plugins.lxml
is no longer pulled in when installingtypes-lxml
.etree.SmartStr
reverted back to its original class nameetree._ErrorLog
is now made a function that generatesetree._ListErrorLog
(despite the fact that it is a class in source code), according to actual created instance typeSignificant changes / completion
types-lxml
package:lxml.etree
proper:Smaller changes
types-lxml
is external stub package and doesn't affect source code. Such as:LiteralString
(PEP 675)Self
when declaring methods (PEP 673)mypy
andpyright
type checkers have strict mode turned on when verifying stub source_Element.sourceline
property becomes read-only@deprecated
) inpyright
lxml
classes, in case IDEs can display them in user interface._XPathEvaluatorBase
subclasses to make__call__
available, by explicitly declaring it as abstract method within_XPathEvaluatorBase
http.open_http_urllib
, which is only intended as a fallback callback function forhtml.submit_form()
without user interventionlibxml2
error constants become integerenum
in stubetree.PyErrorLog.copy()
, because it is only intended for smoother internallxml
error handling.Bug fixes
file=
argument inparse()
and friends) requirement relaxedhtml.(X)HtmlParser
__init__
was missing some argumentsiter*
methods of Elements and some tag cleanup functions into@overload
, to better reflect its original intended arguments usageetree.ElementBase
and similar public base element classes lacked__init__
etree.DocInfo
text properties now acceptsbytes
name=
argument ofhtml.HtmlElementClassLookup()
doesn't acceptNone
_Comment
,_Entity
,_ProcessingInstruction
, and their subclasses.tag
attribute now returns correct value (the basic etree element factory function)_Element
do, such as treating them as parent elements and insert children element into themConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.