Remove unused imports

Mechanically remove unused imports with:

    ruff check --select F401 --fix --extend-exclude grpc_protobuf
This commit is contained in:
David Lechner
2025-12-29 16:09:27 -06:00
parent ae2c638256
commit 5bbbe5e40f
16 changed files with 4 additions and 28 deletions

View File

@@ -23,7 +23,6 @@ import contextlib
import dataclasses
import functools
import logging
import struct
from typing import Any, AsyncGenerator, Coroutine, Optional
import click

View File

@@ -18,7 +18,6 @@
import asyncio
import logging
import os
import struct
import click
from prompt_toolkit.shortcuts import PromptSession

View File

@@ -21,7 +21,6 @@ import dataclasses
import enum
import struct
from typing import (
TYPE_CHECKING,
Any,
ClassVar,
Iterable,

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -22,7 +22,6 @@ import collections
import enum
import functools
import logging
import sys
import warnings
from typing import (
Any,

View File

@@ -17,7 +17,6 @@
# -----------------------------------------------------------------------------
import asyncio
import random
import struct
import sys
import bumble.logging

View File

@@ -16,7 +16,6 @@
# Imports
# -----------------------------------------------------------------------------
import asyncio
import struct
import sys
import bumble.logging

View File

@@ -15,7 +15,6 @@
import asyncio
import math
import random
import struct
# -----------------------------------------------------------------------------
# Imports

View File

@@ -17,7 +17,6 @@
# -----------------------------------------------------------------------------
import asyncio
import json
import struct
import sys
import websockets.asyncio.server

View File

@@ -16,7 +16,6 @@
# Imports
# -----------------------------------------------------------------------------
import asyncio
import struct
import sys
import bumble.logging

View File

@@ -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

View File

@@ -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

View File

@@ -15,7 +15,6 @@
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import struct
from bumble import data_types
from bumble.core import AdvertisingData