Skip to content

Commit

Permalink
fix: pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Oct 2, 2024
1 parent 39c726e commit d73d3c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions craft_parts/packages/deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

"""Support for deb files."""

# pyright: reportPossiblyUnboundVariable=false, reportIncompatibleMethodOverride=warning

import fileinput
import functools
import logging
Expand Down
2 changes: 1 addition & 1 deletion tests/fake_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"""\
Expand Down

0 comments on commit d73d3c6

Please sign in to comment.