From d21fa9186579f6dcdd5254a9643e7277f0f788c9 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 18 Oct 2024 17:27:59 -0400 Subject: [PATCH] device_info.py: Fix use of Iterable Iterable is used only for type-checking. Use `from typing` instead of importing from `collections.abc` --- adafruit_ble/services/standard/device_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adafruit_ble/services/standard/device_info.py b/adafruit_ble/services/standard/device_info.py index b3d74d5..1eeb39b 100644 --- a/adafruit_ble/services/standard/device_info.py +++ b/adafruit_ble/services/standard/device_info.py @@ -14,7 +14,6 @@ import binascii import os import sys -from collections.abc import Iterable from .. import Service from ...uuid import StandardUUID @@ -22,7 +21,7 @@ from ...characteristics.string import FixedStringCharacteristic try: - from typing import Optional, TYPE_CHECKING + from typing import Iterable, Optional, TYPE_CHECKING if TYPE_CHECKING: import _bleio