reformat protobuf import

This commit is contained in:
Qiao Yang
2023-06-06 14:52:52 -07:00
parent a74c39dc2b
commit 809d4a18f5
2 changed files with 6 additions and 8 deletions

View File

@@ -43,7 +43,8 @@ from bumble.hci import (
HCI_REMOTE_USER_TERMINATED_CONNECTION_ERROR, HCI_REMOTE_USER_TERMINATED_CONNECTION_ERROR,
Address, Address,
) )
from google.protobuf import any_pb2, empty_pb2 # pytype: disable=pyi-error from google.protobuf import any_pb2 # pytype: disable=pyi-error
from google.protobuf import empty_pb2 # pytype: disable=pyi-error
from pandora.host_grpc_aio import HostServicer from pandora.host_grpc_aio import HostServicer
from pandora.host_pb2 import ( from pandora.host_pb2 import (
NOT_CONNECTABLE, NOT_CONNECTABLE,

View File

@@ -29,12 +29,9 @@ from bumble.device import Connection as BumbleConnection, Device
from bumble.hci import HCI_Error from bumble.hci import HCI_Error
from bumble.pairing import PairingConfig, PairingDelegate as BasePairingDelegate from bumble.pairing import PairingConfig, PairingDelegate as BasePairingDelegate
from contextlib import suppress from contextlib import suppress
from google.protobuf import ( from google.protobuf import any_pb2 # pytype: disable=pyi-error
any_pb2, from google.protobuf import empty_pb2 # pytype: disable=pyi-error
empty_pb2, from google.protobuf import wrappers_pb2 # pytype: disable=pyi-error
wrappers_pb2,
) # pytype: disable=pyi-error
from google.protobuf.wrappers_pb2 import BoolValue # pytype: disable=pyi-error
from pandora.host_pb2 import Connection from pandora.host_pb2 import Connection
from pandora.security_grpc_aio import SecurityServicer, SecurityStorageServicer from pandora.security_grpc_aio import SecurityServicer, SecurityStorageServicer
from pandora.security_pb2 import ( from pandora.security_pb2 import (
@@ -513,7 +510,7 @@ class SecurityStorageService(SecurityStorageServicer):
else: else:
is_bonded = False is_bonded = False
return BoolValue(value=is_bonded) return wrappers_pb2.BoolValue(value=is_bonded)
@utils.rpc @utils.rpc
async def DeleteBond( async def DeleteBond(