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 dataclasses
|
||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
import struct
|
|
||||||
from typing import Any, AsyncGenerator, Coroutine, Optional
|
from typing import Any, AsyncGenerator, Coroutine, Optional
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import struct
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
from prompt_toolkit.shortcuts import PromptSession
|
from prompt_toolkit.shortcuts import PromptSession
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import dataclasses
|
|||||||
import enum
|
import enum
|
||||||
import struct
|
import struct
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
|
||||||
Any,
|
Any,
|
||||||
ClassVar,
|
ClassVar,
|
||||||
Iterable,
|
Iterable,
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import itertools
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import secrets
|
import secrets
|
||||||
import sys
|
|
||||||
from collections.abc import Iterable, Sequence
|
from collections.abc import Iterable, Sequence
|
||||||
from contextlib import AsyncExitStack, asynccontextmanager, closing
|
from contextlib import AsyncExitStack, asynccontextmanager, closing
|
||||||
from dataclasses import dataclass, field
|
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"
|
__version__ = "0.0.1"
|
||||||
|
|
||||||
from typing import Callable, List, Optional
|
from typing import Callable, Optional
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
import grpc.aio
|
import grpc.aio
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import dataclasses
|
|||||||
import enum
|
import enum
|
||||||
from typing import Sequence
|
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
|
# Constants
|
||||||
|
|||||||
@@ -28,16 +28,7 @@ import asyncio
|
|||||||
import enum
|
import enum
|
||||||
import logging
|
import logging
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from typing import (
|
from typing import TYPE_CHECKING, Awaitable, Callable, ClassVar, Optional, TypeVar, cast
|
||||||
TYPE_CHECKING,
|
|
||||||
Any,
|
|
||||||
Awaitable,
|
|
||||||
Callable,
|
|
||||||
ClassVar,
|
|
||||||
Optional,
|
|
||||||
TypeVar,
|
|
||||||
cast,
|
|
||||||
)
|
|
||||||
|
|
||||||
from bumble import crypto, utils
|
from bumble import crypto, utils
|
||||||
from bumble.colors import color
|
from bumble.colors import color
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import collections
|
|||||||
import enum
|
import enum
|
||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
import warnings
|
import warnings
|
||||||
from typing import (
|
from typing import (
|
||||||
Any,
|
Any,
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
import asyncio
|
import asyncio
|
||||||
import random
|
import random
|
||||||
import struct
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import bumble.logging
|
import bumble.logging
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
# Imports
|
# Imports
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
import asyncio
|
import asyncio
|
||||||
import struct
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import bumble.logging
|
import bumble.logging
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import math
|
import math
|
||||||
import random
|
import random
|
||||||
import struct
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Imports
|
# Imports
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import struct
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import websockets.asyncio.server
|
import websockets.asyncio.server
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
# Imports
|
# Imports
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
import asyncio
|
import asyncio
|
||||||
import struct
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import bumble.logging
|
import bumble.logging
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ from bumble.att import (
|
|||||||
ErrorCode,
|
ErrorCode,
|
||||||
Opcode,
|
Opcode,
|
||||||
)
|
)
|
||||||
from bumble.controller import Controller
|
|
||||||
from bumble.core import UUID
|
from bumble.core import UUID
|
||||||
from bumble.device import Device, Peer
|
from bumble.device import Device, Peer
|
||||||
from bumble.gatt import (
|
from bumble.gatt import (
|
||||||
@@ -65,9 +64,6 @@ from bumble.gatt_adapters import (
|
|||||||
UTF8CharacteristicProxyAdapter,
|
UTF8CharacteristicProxyAdapter,
|
||||||
)
|
)
|
||||||
from bumble.gatt_client import CharacteristicProxy
|
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
|
from .test_utils import Devices, TwoDevices, async_barrier
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import logging
|
|||||||
import click
|
import click
|
||||||
|
|
||||||
import bumble.logging
|
import bumble.logging
|
||||||
from bumble import company_ids, hci, transport
|
from bumble import transport
|
||||||
from bumble.drivers import rtk
|
from bumble.drivers import rtk
|
||||||
from bumble.host import Host
|
from bumble.host import Host
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Imports
|
# Imports
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
import struct
|
|
||||||
|
|
||||||
from bumble import data_types
|
from bumble import data_types
|
||||||
from bumble.core import AdvertisingData
|
from bumble.core import AdvertisingData
|
||||||
|
|||||||
Reference in New Issue
Block a user