Skip to content

Commit 4616984

Browse files
committed
Satisfy pylint
1 parent c05549a commit 4616984

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
3030
@pytest.fixture(name="make_image_file")
3131
def fixture_make_image_file(
3232
high_quality_image: io.BytesIO,
33-
) -> Generator[None, None, None]:
33+
) -> Generator[None]:
3434
"""
3535
Make an image file available in the test directory.
3636
The path of this file matches the path in the documentation.
@@ -45,7 +45,7 @@ def fixture_make_image_file(
4545
@pytest.fixture(name="mock_vws")
4646
def fixture_mock_vws(
4747
monkeypatch: pytest.MonkeyPatch,
48-
) -> Generator[None, None, None]:
48+
) -> Generator[None]:
4949
"""
5050
Yield a mock VWS.
5151

docs/source/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
Configuration for Sphinx.
44
"""
55

6-
# pylint: disable=invalid-name
7-
86
import datetime
97
import importlib.metadata
108

src/vws/vws.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ def get_duplicate_targets(self, target_id: str) -> list[str]:
633633

634634
def update_target(
635635
self,
636+
*,
636637
target_id: str,
637638
name: str | None = None,
638639
width: float | None = None,

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@pytest.fixture(name="_mock_database")
18-
def fixture_mock_database() -> Generator[VuforiaDatabase, None, None]:
18+
def fixture_mock_database() -> Generator[VuforiaDatabase]:
1919
"""
2020
Yield a mock ``VuforiaDatabase``.
2121
"""
@@ -53,7 +53,7 @@ def fixture_image_file(
5353
high_quality_image: io.BytesIO,
5454
tmp_path: Path,
5555
request: pytest.FixtureRequest,
56-
) -> Generator[BinaryIO, None, None]:
56+
) -> Generator[BinaryIO]:
5757
"""An image file object."""
5858
file = tmp_path / "image.jpg"
5959
buffer = high_quality_image.getvalue()

0 commit comments

Comments
 (0)