From d73d3c60f03e8751015a13ff9dff17b4eb8d5e8d Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Tue, 1 Oct 2024 10:28:52 -0400 Subject: [PATCH] fix: pyright --- craft_parts/packages/deb.py | 2 ++ tests/fake_servers.py | 2 +- .../integration/features/partitions/lifecycle/test_lifecycle.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/craft_parts/packages/deb.py b/craft_parts/packages/deb.py index 6d84876f..b264ee74 100644 --- a/craft_parts/packages/deb.py +++ b/craft_parts/packages/deb.py @@ -16,6 +16,8 @@ """Support for deb files.""" +# pyright: reportPossiblyUnboundVariable=false, reportIncompatibleMethodOverride=warning + import fileinput import functools import logging diff --git a/tests/fake_servers.py b/tests/fake_servers.py index 91938dd6..85fe696c 100644 --- a/tests/fake_servers.py +++ b/tests/fake_servers.py @@ -25,7 +25,7 @@ class BaseHTTPRequestHandler(http.server.BaseHTTPRequestHandler): """The base class for the http server request handlers.""" - def log_message(self, *args): + def log_message(self, *args): # pyright: ignore[reportIncompatibleMethodOverride] logger.debug(args) def raise_not_implemented(self, path): diff --git a/tests/integration/features/partitions/lifecycle/test_lifecycle.py b/tests/integration/features/partitions/lifecycle/test_lifecycle.py index 229524db..7f7d5497 100644 --- a/tests/integration/features/partitions/lifecycle/test_lifecycle.py +++ b/tests/integration/features/partitions/lifecycle/test_lifecycle.py @@ -26,7 +26,7 @@ # This wildcard import has pytest run any non-overridden lifecycle tests here. # pylint: disable=wildcard-import,function-redefined,unused-import,unused-wildcard-import -from tests.integration.lifecycle.test_lifecycle import * # noqa: F403 # pyright: ignore[reportGeneralTypeIssues] +from tests.integration.lifecycle.test_lifecycle import * # noqa: F403 # pyright: ignore[reportAssignmentType] basic_parts_yaml = textwrap.dedent( """\