Skip to content

Commit f71d369

Browse files
authored
Merge pull request #95 from abelcheung/create-pull-request/formatting
Automatic formatting changes
2 parents a1315d5 + 09c1098 commit f71d369

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/lxml-stubs/etree/_element.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,6 @@ _ET2_co = TypeVar("_ET2_co", bound=_Element, default=_Element, covariant=True)
686686
# It is considered harmful to support such corner case, which
687687
# adds much complexity without any benefit.
688688
class _ElementTree(Generic[_t._ET_co]):
689-
690689
@overload # from element, parser ignored
691690
def __new__(
692691
cls,

src/lxml-stubs/etree/_module_func.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ def register_namespace(prefix: _TextArg, uri: _TextArg) -> None: ...
574574
def dump(
575575
elem: _Element, *, pretty_print: bool = True, with_tail: bool = True
576576
) -> None: ...
577+
577578
@final
578579
class _MemDebug:
579580
"""Debugging support for the memory allocation in libxml2"""

src/lxml-stubs/etree/_xpath.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def XPathEvaluator(
133133
regexp: bool = True,
134134
smart_strings: bool = True,
135135
) -> XPathDocumentEvaluator: ...
136+
136137
@final
137138
class _ElementUnicodeResult(str, Generic[_ET]):
138139
"""Smart string is a private str subclass documented in
@@ -173,6 +174,7 @@ def Extension(
173174
- [User documentation](https://lxml.de/extensions.html#evaluator-local-extensions)
174175
- [API documentation](https://lxml.de/apidoc/lxml.etree.html#lxml.etree.Extension)
175176
"""
177+
176178
@overload # no namespace
177179
def Extension(
178180
module: object | ModuleType,

src/lxml-stubs/html/_element.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ class HtmlEntity(etree.EntityBase, HtmlElement): ... # type: ignore[misc] # py
334334
# (use etree.SubElement())
335335
#
336336
def Element(
337-
_tag: _TagName,
338-
/,
339-
attrib: _AttrMapping | None = None,
340-
nsmap: _NSMapArg | None = None,
341-
**_extra: _AttrVal,
342-
) -> HtmlElement: ...
337+
_tag: _TagName,
338+
/,
339+
attrib: _AttrMapping | None = None,
340+
nsmap: _NSMapArg | None = None,
341+
**_extra: _AttrVal,
342+
) -> HtmlElement: ...

src/lxml-stubs/sax.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class ElementTreeContentHandler(Generic[_ET], ContentHandler):
1616
_new_mappings: dict[str | None, str]
1717
# Not adding _get_etree(), already available as public property
1818
@overload
19-
def __new__(
20-
cls, makeelement: type[_ET]
21-
) -> ElementTreeContentHandler[_ET]: ...
19+
def __new__(cls, makeelement: type[_ET]) -> ElementTreeContentHandler[_ET]: ...
2220
@overload
2321
def __new__(cls, makeelement: None = None) -> ElementTreeContentHandler[_ET]: ...
2422
@property

0 commit comments

Comments
 (0)