mirror of
https://github.com/google/bumble.git
synced 2026-04-16 00:25:31 +00:00
Remove unused imports
Mechanically remove unused imports with:
ruff check --select F401 --fix --extend-exclude grpc_protobuf
This commit is contained in:
@@ -23,7 +23,6 @@ import contextlib
|
||||
import dataclasses
|
||||
import functools
|
||||
import logging
|
||||
import struct
|
||||
from typing import Any, AsyncGenerator, Coroutine, Optional
|
||||
|
||||
import click
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
import struct
|
||||
|
||||
import click
|
||||
from prompt_toolkit.shortcuts import PromptSession
|
||||
|
||||
@@ -21,7 +21,6 @@ import dataclasses
|
||||
import enum
|
||||
import struct
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
ClassVar,
|
||||
Iterable,
|
||||
|
||||
@@ -25,7 +25,6 @@ import itertools
|
||||
import json
|
||||
import logging
|
||||
import secrets
|
||||
import sys
|
||||
from collections.abc import Iterable, Sequence
|
||||
from contextlib import AsyncExitStack, asynccontextmanager, closing
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
@@ -19,7 +19,7 @@ This module implement the Pandora Bluetooth test APIs for the Bumble stack.
|
||||
|
||||
__version__ = "0.0.1"
|
||||
|
||||
from typing import Callable, List, Optional
|
||||
from typing import Callable, Optional
|
||||
|
||||
import grpc
|
||||
import grpc.aio
|
||||
|
||||
@@ -22,7 +22,7 @@ import dataclasses
|
||||
import enum
|
||||
from typing import Sequence
|
||||
|
||||
from bumble import att, device, gatt, gatt_adapters, gatt_client, utils
|
||||
from bumble import att, device, gatt, gatt_adapters, gatt_client
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Constants
|
||||
|
||||
@@ -28,16 +28,7 @@ import asyncio
|
||||
import enum
|
||||
import logging
|
||||
from dataclasses import dataclass, field
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Awaitable,
|
||||
Callable,
|
||||
ClassVar,
|
||||
Optional,
|
||||
TypeVar,
|
||||
cast,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Awaitable, Callable, ClassVar, Optional, TypeVar, cast
|
||||
|
||||
from bumble import crypto, utils
|
||||
from bumble.colors import color
|
||||
|
||||
@@ -22,7 +22,6 @@ import collections
|
||||
import enum
|
||||
import functools
|
||||
import logging
|
||||
import sys
|
||||
import warnings
|
||||
from typing import (
|
||||
Any,
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
import asyncio
|
||||
import random
|
||||
import struct
|
||||
import sys
|
||||
|
||||
import bumble.logging
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
# Imports
|
||||
# -----------------------------------------------------------------------------
|
||||
import asyncio
|
||||
import struct
|
||||
import sys
|
||||
|
||||
import bumble.logging
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
import asyncio
|
||||
import math
|
||||
import random
|
||||
import struct
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Imports
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
import asyncio
|
||||
import json
|
||||
import struct
|
||||
import sys
|
||||
|
||||
import websockets.asyncio.server
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
# Imports
|
||||
# -----------------------------------------------------------------------------
|
||||
import asyncio
|
||||
import struct
|
||||
import sys
|
||||
|
||||
import bumble.logging
|
||||
|
||||
@@ -38,7 +38,6 @@ from bumble.att import (
|
||||
ErrorCode,
|
||||
Opcode,
|
||||
)
|
||||
from bumble.controller import Controller
|
||||
from bumble.core import UUID
|
||||
from bumble.device import Device, Peer
|
||||
from bumble.gatt import (
|
||||
@@ -65,9 +64,6 @@ from bumble.gatt_adapters import (
|
||||
UTF8CharacteristicProxyAdapter,
|
||||
)
|
||||
from bumble.gatt_client import CharacteristicProxy
|
||||
from bumble.host import Host
|
||||
from bumble.link import LocalLink
|
||||
from bumble.transport.common import AsyncPipeSink
|
||||
|
||||
from .test_utils import Devices, TwoDevices, async_barrier
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import logging
|
||||
import click
|
||||
|
||||
import bumble.logging
|
||||
from bumble import company_ids, hci, transport
|
||||
from bumble import transport
|
||||
from bumble.drivers import rtk
|
||||
from bumble.host import Host
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# Imports
|
||||
# -----------------------------------------------------------------------------
|
||||
import struct
|
||||
|
||||
from bumble import data_types
|
||||
from bumble.core import AdvertisingData
|
||||
|
||||
Reference in New Issue
Block a user