From 97a8d0d7db0d0d53ab3621158b350a66cd8710b1 Mon Sep 17 00:00:00 2001 From: Tim Camise Date: Fri, 19 Jul 2024 15:52:38 -0700 Subject: [PATCH] Add future annotations: --- demos/python/sdk_wireless_camera_control/open_gopro/api/api.py | 2 ++ .../open_gopro/ble/adapters/bleak_wrapper.py | 2 ++ .../python/sdk_wireless_camera_control/open_gopro/exceptions.py | 2 ++ .../sdk_wireless_camera_control/open_gopro/wifi/client.py | 2 ++ .../sdk_wireless_camera_control/open_gopro/wifi/controller.py | 2 ++ .../sdk_wireless_camera_control/open_gopro/wifi/mdns_scanner.py | 2 ++ 6 files changed, 12 insertions(+) diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/api/api.py b/demos/python/sdk_wireless_camera_control/open_gopro/api/api.py index 56c176ef..bf0a9de4 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/api/api.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/api/api.py @@ -3,6 +3,8 @@ """Implementation of Open GoPro API version 2.0""" +from __future__ import annotations + from typing import Final from open_gopro.communicator_interface import GoProHttp, GoProWirelessInterface diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/ble/adapters/bleak_wrapper.py b/demos/python/sdk_wireless_camera_control/open_gopro/ble/adapters/bleak_wrapper.py index c8ba82a4..81b128eb 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/ble/adapters/bleak_wrapper.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/ble/adapters/bleak_wrapper.py @@ -3,6 +3,8 @@ """Manage a Bluetooth connection using bleak.""" +from __future__ import annotations + import asyncio import logging import platform diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/exceptions.py b/demos/python/sdk_wireless_camera_control/open_gopro/exceptions.py index 18259d57..1ce8bcc1 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/exceptions.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/exceptions.py @@ -3,6 +3,8 @@ """Exceptions that pertain to Gopro-level functionality.""" +from __future__ import annotations + from typing import Callable diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/client.py b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/client.py index 5c781d85..5fbdb1e1 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/client.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/client.py @@ -3,6 +3,8 @@ """Open GoPro WiFi Client Implementation""" +from __future__ import annotations + import logging from typing import Optional diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/controller.py b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/controller.py index 69278c19..afe14cfa 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/controller.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/controller.py @@ -3,6 +3,8 @@ """Wifi Controller Interface Definition.""" +from __future__ import annotations + import logging from abc import ABC, abstractmethod from enum import IntEnum, auto diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/mdns_scanner.py b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/mdns_scanner.py index 7cf8afce..c0f810ea 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/mdns_scanner.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/mdns_scanner.py @@ -3,6 +3,8 @@ """MDNS utility functions""" +from __future__ import annotations + import asyncio import logging from typing import Any