use isort when formatting

This commit is contained in:
Gilles Boccon-Gibod
2025-08-21 14:21:19 -07:00
parent ceefe8b2a5
commit 7aba36302a
198 changed files with 1129 additions and 1321 deletions

View File

@@ -22,12 +22,12 @@ import operator
import secrets
try:
from bumble.crypto.cryptography import EccKey, e, aes_cmac
from bumble.crypto.cryptography import EccKey, aes_cmac, e
except ImportError:
logging.getLogger(__name__).debug(
"Unable to import cryptography, use built-in primitives."
)
from bumble.crypto.builtin import EccKey, e, aes_cmac # type: ignore[assignment]
from bumble.crypto.builtin import EccKey, aes_cmac, e # type: ignore[assignment]
# -----------------------------------------------------------------------------

View File

@@ -24,9 +24,9 @@
# -----------------------------------------------------------------------------
from __future__ import annotations
import copy
import dataclasses
import functools
import copy
import secrets
import struct
from typing import Optional

View File

@@ -16,11 +16,9 @@ from __future__ import annotations
import functools
from cryptography.hazmat.primitives import ciphers
from cryptography.hazmat.primitives.ciphers import algorithms
from cryptography.hazmat.primitives.ciphers import modes
from cryptography.hazmat.primitives import ciphers, cmac
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import cmac
from cryptography.hazmat.primitives.ciphers import algorithms, modes
def e(key: bytes, data: bytes) -> bytes: