Skip to content

Commit

Permalink
Fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Jan 3, 2025
1 parent f15d84b commit a8d8ea5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lglpy/android/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# command line tool which can be used to transfer files and copy data to a
# remote device.

from collections.abc import Iterable
from typing import Any, Optional


Expand Down Expand Up @@ -57,7 +58,7 @@ def __init__(self, device: Optional[str] = None,
self.device = device
self.package = package

def get_base_command(self, args: list[str]) -> list[str]:
def get_base_command(self, args: Iterable[str]) -> list[str]:
'''
Get the root of an adb command, injecting device selector if needed.
Expand Down
1 change: 1 addition & 0 deletions lglpy/android/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def get_os_version(conn: ADBConnect) -> Optional[float]:
except sp.CalledProcessError:
return None

@staticmethod
def get_device_model(conn: ADBConnect) -> Optional[str]:
'''
Get the model of the target device.
Expand Down
2 changes: 1 addition & 1 deletion lglpy/comms/service_gpu_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import struct
from typing import Any

from lglpy.server import Message
from lglpy.comms.server import Message


class GPUTimelineService:
Expand Down
2 changes: 1 addition & 1 deletion lglpy/comms/service_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# This module implements the server-side communications module service that
# implements basic logging.

from lglpy.server import Message
from lglpy.comms.server import Message


class LogService:
Expand Down
2 changes: 1 addition & 1 deletion lglpy/comms/service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# This module implements the server-side communications module service that
# implements a basic message endpoint for testing.

from lglpy.server import Message, MessageType
from lglpy.comms.server import Message, MessageType
from typing import Optional


Expand Down

0 comments on commit a8d8ea5

Please sign in to comment.