mirror of
https://github.com/meshtastic/python.git
synced 2025-12-27 01:47:50 -05:00
Fix my own pylint mistakes
This commit is contained in:
@@ -10,6 +10,8 @@ import threading
|
||||
import time
|
||||
from datetime import datetime
|
||||
|
||||
from typing import Any, Callable, Dict, List, Optional, Union
|
||||
|
||||
import google.protobuf.json_format
|
||||
import timeago # type: ignore[import-untyped]
|
||||
from pubsub import pub # type: ignore[import-untyped]
|
||||
@@ -37,8 +39,6 @@ from meshtastic.util import (
|
||||
message_to_json,
|
||||
)
|
||||
|
||||
from typing import Any, Callable, Dict, List, Optional, Union
|
||||
|
||||
|
||||
class MeshInterface:
|
||||
"""Interface class for meshtastic devices
|
||||
|
||||
@@ -5,7 +5,7 @@ import base64
|
||||
import logging
|
||||
import time
|
||||
|
||||
from typing import Optional, Union
|
||||
from typing import Union
|
||||
|
||||
from meshtastic import admin_pb2, apponly_pb2, channel_pb2, localonly_pb2, portnums_pb2
|
||||
from meshtastic.util import (
|
||||
|
||||
@@ -11,6 +11,8 @@ import threading
|
||||
import time
|
||||
import traceback
|
||||
from queue import Queue
|
||||
from typing import Union
|
||||
|
||||
from google.protobuf.json_format import MessageToJson
|
||||
|
||||
import packaging.version as pkg_version
|
||||
@@ -21,8 +23,6 @@ import serial.tools.list_ports # type: ignore[import-untyped]
|
||||
from meshtastic.supported_device import supported_devices
|
||||
from meshtastic.version import get_active_version
|
||||
|
||||
from typing import Union
|
||||
|
||||
"""Some devices such as a seger jlink we never want to accidentally open"""
|
||||
blacklistVids = dict.fromkeys([0x1366])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user