Skip to content

Commit eafb9ca

Browse files
github-actions[bot]abelcheung
authored andcommitted
chore: automated black/isort formatting
1 parent b8fc4c3 commit eafb9ca

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

lxml-stubs/etree/_parser.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class _FeedParser(Generic[_ET_co]):
9898
```
9999
"""
100100
...
101-
102101
@deprecated("Removed since 5.0; renamed to set_element_class_lookup()")
103102
def setElementClassLookup(
104103
self, lookup: ElementClassLookup | None = None

test-rt/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def h2_filepath() -> Path:
4646

4747
@pytest.fixture
4848
def h2_fileuri(h2_filepath: Path) -> str:
49-
return 'file:///' + str(h2_filepath)
49+
return "file:///" + str(h2_filepath)
5050

5151

5252
@pytest.fixture

test-rt/test_beautifulsoup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
reveal_type = getattr(_testutils, "reveal_type_wrapper")
1818

19+
1920
class TestFromstring:
2021
# fmt: off
2122
@_testutils.signature_tester(_soup.fromstring, (
@@ -211,10 +212,13 @@ def test_bs_args(self, h2_fileuri: str) -> None:
211212

212213
class TestConvertTree:
213214
# fmt: on
214-
@_testutils.signature_tester(_soup.convert_tree, (
215-
("beautiful_soup_tree", Parameter.POSITIONAL_OR_KEYWORD, Parameter.empty),
216-
("makeelement" , Parameter.POSITIONAL_OR_KEYWORD, None ),
217-
)) # fmt: off
215+
@_testutils.signature_tester(
216+
_soup.convert_tree,
217+
(
218+
("beautiful_soup_tree", Parameter.POSITIONAL_OR_KEYWORD, Parameter.empty),
219+
("makeelement", Parameter.POSITIONAL_OR_KEYWORD, None),
220+
),
221+
) # fmt: off
218222
def test_func_sig(self) -> None:
219223
pass
220224

test-rt/test_constants.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import _testutils
2+
import lxml.ElementInclude as _ei
23
import lxml.etree as _e
34
import lxml.html as _h
45
import lxml.isoschematron as _sch
56
import lxml.objectify as _o
6-
import lxml.ElementInclude as _ei
77

88
reveal_type = getattr(_testutils, "reveal_type_wrapper")
99

1010

1111
class TestEtreeConstants:
12-
1312
def test_ver_const(self) -> None:
1413
reveal_type(_e.LIBXML_COMPILED_VERSION)
1514
reveal_type(_e.LIBXML_VERSION)
@@ -25,7 +24,6 @@ def test_other_const(self) -> None:
2524

2625

2726
class TestSchematronConstants:
28-
2927
def test_ns_const(self) -> None:
3028
reveal_type(_sch.RELAXNG_NS)
3129
reveal_type(_sch.SCHEMATRON_NS)
@@ -34,20 +32,17 @@ def test_ns_const(self) -> None:
3432

3533

3634
class TestObjectifyConstants:
37-
3835
def test_all_const(self) -> None:
3936
reveal_type(_o.__version__)
4037
reveal_type(_o.PYTYPE_ATTRIBUTE)
4138

4239

4340
class TestHtmlConstants:
44-
4541
def test_ns_const(self) -> None:
4642
reveal_type(_h.XHTML_NAMESPACE)
4743

4844

4945
class TestElemIncludeConstants:
50-
5146
def test_xinc_const(self) -> None:
5247
reveal_type(_ei.XINCLUDE)
5348
reveal_type(_ei.XINCLUDE_FALLBACK)

test-rt/test_errorlog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def test_container_behavior(self, list_log: _ListErrorLog) -> None:
8585

8686

8787
class TestListLogMethods:
88-
8988
# fmt: off
9089
@_testutils.signature_tester(_ListErrorLog.filter_domains, (
9190
None,

test-rt/test_xinclude.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ def test_xinclude_as_func(self, xinc_sample_data: str) -> None:
6363
@overload
6464
def good_loader(
6565
href: str, mode: Literal["xml"], encoding: str | None = None
66-
) -> _Element: ...
66+
) -> _Element:
67+
...
6768

6869

6970
@overload
70-
def good_loader(
71-
href: str, mode: Literal["text"], encoding: str | None = None
72-
) -> str: ...
71+
def good_loader(href: str, mode: Literal["text"], encoding: str | None = None) -> str:
72+
...
7373

7474

7575
def good_loader(href: str, mode: str, encoding: str | None = None) -> Any:
@@ -93,7 +93,6 @@ def bad_loader_3(href: str, mode: str, _) -> _Element:
9393

9494

9595
class TestElementInclude:
96-
9796
# fmt: off
9897
@_testutils.signature_tester(EI.include, (
9998
('elem' , _ParameterKind.POSITIONAL_OR_KEYWORD, Parameter.empty),

0 commit comments

Comments
 (0)