From fe3627672cad5a13f7f615aca09f420d6804f784 Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Thu, 19 Feb 2026 22:58:40 +0000 Subject: [PATCH] Remove from __future__ import annotations --- .pre-commit-config.yaml | 6 ++++++ deebot_client/api_client.py | 2 -- deebot_client/authentication.py | 2 -- deebot_client/capabilities.py | 2 -- deebot_client/command.py | 2 -- deebot_client/commands/__init__.py | 2 -- deebot_client/commands/json/__init__.py | 2 -- deebot_client/commands/json/advanced_mode.py | 2 -- deebot_client/commands/json/auto_empty.py | 2 -- deebot_client/commands/json/battery.py | 2 -- deebot_client/commands/json/border_spin.py | 2 -- deebot_client/commands/json/border_switch.py | 2 -- deebot_client/commands/json/carpet.py | 2 -- deebot_client/commands/json/charge.py | 2 -- deebot_client/commands/json/charge_state.py | 2 -- deebot_client/commands/json/child_lock.py | 2 -- deebot_client/commands/json/clean.py | 2 -- deebot_client/commands/json/clean_count.py | 2 -- deebot_client/commands/json/clean_logs.py | 2 -- deebot_client/commands/json/clean_preference.py | 2 -- deebot_client/commands/json/clear_map.py | 2 -- deebot_client/commands/json/common.py | 2 -- deebot_client/commands/json/const.py | 2 -- deebot_client/commands/json/continuous_cleaning.py | 2 -- deebot_client/commands/json/cross_map_border_warning.py | 2 -- deebot_client/commands/json/custom.py | 2 -- deebot_client/commands/json/cut_direction.py | 2 -- deebot_client/commands/json/efficiency.py | 2 -- deebot_client/commands/json/error.py | 2 -- deebot_client/commands/json/fan_speed.py | 2 -- deebot_client/commands/json/life_span.py | 2 -- deebot_client/commands/json/map/__init__.py | 2 -- deebot_client/commands/json/map/cached_map_info.py | 2 -- deebot_client/commands/json/map/major_map.py | 2 -- deebot_client/commands/json/mop_auto_wash_frequency.py | 2 -- deebot_client/commands/json/moveup_warning.py | 2 -- deebot_client/commands/json/multimap_state.py | 2 -- deebot_client/commands/json/network.py | 2 -- deebot_client/commands/json/ota.py | 2 -- deebot_client/commands/json/play_sound.py | 2 -- deebot_client/commands/json/pos.py | 2 -- deebot_client/commands/json/relocation.py | 2 -- deebot_client/commands/json/safe_protect.py | 2 -- deebot_client/commands/json/station_action.py | 2 -- deebot_client/commands/json/station_state.py | 2 -- deebot_client/commands/json/stats.py | 2 -- deebot_client/commands/json/sweep_mode.py | 2 -- deebot_client/commands/json/true_detect.py | 2 -- deebot_client/commands/json/voice_assistant_state.py | 2 -- deebot_client/commands/json/volume.py | 2 -- deebot_client/commands/json/water_info.py | 2 -- deebot_client/commands/json/work_mode.py | 2 -- deebot_client/commands/json/work_state.py | 2 -- deebot_client/commands/xml/__init__.py | 2 -- deebot_client/commands/xml/battery.py | 2 -- deebot_client/commands/xml/charge.py | 2 -- deebot_client/commands/xml/charge_state.py | 2 -- deebot_client/commands/xml/clean.py | 2 -- deebot_client/commands/xml/clean_logs.py | 2 -- deebot_client/commands/xml/clean_speed.py | 2 -- deebot_client/commands/xml/common.py | 2 -- deebot_client/commands/xml/error.py | 2 -- deebot_client/commands/xml/life_span.py | 2 -- deebot_client/commands/xml/map.py | 2 -- deebot_client/commands/xml/play_sound.py | 2 -- deebot_client/commands/xml/pos.py | 2 -- deebot_client/commands/xml/stats.py | 2 -- deebot_client/const.py | 2 -- deebot_client/device.py | 2 -- deebot_client/event_bus.py | 2 -- deebot_client/events/__init__.py | 2 -- deebot_client/events/auto_empty.py | 2 -- deebot_client/events/base.py | 2 -- deebot_client/events/efficiency_mode.py | 2 -- deebot_client/events/fan_speed.py | 2 -- deebot_client/events/map.py | 2 -- deebot_client/events/mop_auto_wash_frequency.py | 2 -- deebot_client/events/network.py | 2 -- deebot_client/events/station.py | 2 -- deebot_client/events/water_info.py | 2 -- deebot_client/events/work_mode.py | 2 -- deebot_client/exceptions.py | 2 -- deebot_client/hardware/2o4lnm.py | 2 -- deebot_client/hardware/2pv572.py | 2 -- deebot_client/hardware/300lc5.py | 2 -- deebot_client/hardware/4bdkrs.py | 2 -- deebot_client/hardware/55uoqe.py | 2 -- deebot_client/hardware/5xu9h3.py | 2 -- deebot_client/hardware/7bryc5.py | 2 -- deebot_client/hardware/7j1tu6.py | 2 -- deebot_client/hardware/8kwdb4.py | 2 -- deebot_client/hardware/9eamof.py | 2 -- deebot_client/hardware/9s1s80.py | 2 -- deebot_client/hardware/__init__.py | 2 -- deebot_client/hardware/b2jqs4.py | 2 -- deebot_client/hardware/buom7k.py | 2 -- deebot_client/hardware/c8rj4y.py | 2 -- deebot_client/hardware/co3fyu.py | 2 -- deebot_client/hardware/e6ofmn.py | 2 -- deebot_client/hardware/ee23uv.py | 2 -- deebot_client/hardware/fd60kt.py | 2 -- deebot_client/hardware/ilt3k8.py | 2 -- deebot_client/hardware/kr0277.py | 2 -- deebot_client/hardware/m1wkuw.py | 2 -- deebot_client/hardware/n0vyif.py | 2 -- deebot_client/hardware/p1jij8.py | 2 -- deebot_client/hardware/p7l7iu.py | 2 -- deebot_client/hardware/p95mgv.py | 2 -- deebot_client/hardware/qhe2o2.py | 2 -- deebot_client/hardware/r8ead0.py | 2 -- deebot_client/hardware/ts2ofl.py | 2 -- deebot_client/hardware/ue8kcc.py | 2 -- deebot_client/hardware/umwv6z.py | 2 -- deebot_client/hardware/viq3mw.py | 2 -- deebot_client/hardware/x5d34r.py | 2 -- deebot_client/hardware/xco2fc.py | 2 -- deebot_client/hardware/xmp9ds.py | 2 -- deebot_client/hardware/yna5xi.py | 2 -- deebot_client/hardware/zg6qbz.py | 2 -- deebot_client/logging_filter.py | 2 -- deebot_client/map.py | 2 -- deebot_client/message.py | 2 -- deebot_client/messages/__init__.py | 2 -- deebot_client/messages/json/__init__.py | 2 -- deebot_client/messages/json/auto_empty.py | 2 -- deebot_client/messages/json/battery.py | 2 -- deebot_client/messages/json/gps_position.py | 2 -- deebot_client/messages/json/map/__init__.py | 2 -- deebot_client/messages/json/map/cached_map_info.py | 2 -- deebot_client/messages/json/station_state.py | 2 -- deebot_client/messages/json/stats.py | 2 -- deebot_client/messages/json/work_state.py | 2 -- deebot_client/messages/xml/__init__.py | 2 -- deebot_client/messages/xml/battery.py | 2 -- deebot_client/messages/xml/charge_state.py | 2 -- deebot_client/messages/xml/clean.py | 2 -- deebot_client/messages/xml/common.py | 2 -- deebot_client/messages/xml/map.py | 2 -- deebot_client/messages/xml/pos.py | 2 -- deebot_client/models.py | 2 -- deebot_client/mqtt_client.py | 2 -- deebot_client/util/__init__.py | 2 -- deebot_client/util/continents.py | 2 -- deebot_client/util/countries.py | 2 -- deebot_client/util/enum.py | 2 -- pyproject.toml | 1 - scripts/check_for_similar_models.py | 2 -- tests/__init__.py | 2 -- tests/commands/__init__.py | 2 -- tests/commands/json/__init__.py | 2 -- tests/commands/json/map/test_cached_map_info.py | 2 -- tests/commands/json/map/test_init.py | 2 -- tests/commands/json/map/test_major_map.py | 2 -- tests/commands/json/test_advanced_mode.py | 2 -- tests/commands/json/test_auto_empty.py | 2 -- tests/commands/json/test_battery.py | 2 -- tests/commands/json/test_border_spin.py | 2 -- tests/commands/json/test_border_switch.py | 2 -- tests/commands/json/test_carpet.py | 2 -- tests/commands/json/test_charge.py | 2 -- tests/commands/json/test_charge_state.py | 2 -- tests/commands/json/test_child_lock.py | 2 -- tests/commands/json/test_clean.py | 2 -- tests/commands/json/test_clean_count.py | 2 -- tests/commands/json/test_clean_log.py | 2 -- tests/commands/json/test_clean_preference.py | 2 -- tests/commands/json/test_common.py | 2 -- tests/commands/json/test_continuous_cleaning.py | 2 -- tests/commands/json/test_cross_map_border_warning.py | 2 -- tests/commands/json/test_custom.py | 2 -- tests/commands/json/test_cut_direction.py | 2 -- tests/commands/json/test_efficiency.py | 2 -- tests/commands/json/test_error.py | 2 -- tests/commands/json/test_fan_speed.py | 2 -- tests/commands/json/test_life_span.py | 2 -- tests/commands/json/test_mop_auto_wash_frequency.py | 2 -- tests/commands/json/test_moveup_warning.py | 2 -- tests/commands/json/test_mulitmap_state.py | 2 -- tests/commands/json/test_network.py | 2 -- tests/commands/json/test_ota.py | 2 -- tests/commands/json/test_pos.py | 2 -- tests/commands/json/test_safe_protect.py | 2 -- tests/commands/json/test_station_action.py | 2 -- tests/commands/json/test_station_state.py | 2 -- tests/commands/json/test_sweep_mode.py | 2 -- tests/commands/json/test_true_detect.py | 2 -- tests/commands/json/test_voice_assistant_state.py | 2 -- tests/commands/json/test_volume.py | 2 -- tests/commands/json/test_water_info.py | 2 -- tests/commands/json/test_work_mode.py | 2 -- tests/commands/json/test_work_state.py | 2 -- tests/commands/xml/__init__.py | 2 -- tests/commands/xml/test_battery.py | 2 -- tests/commands/xml/test_charge.py | 2 -- tests/commands/xml/test_charge_state.py | 2 -- tests/commands/xml/test_clean.py | 2 -- tests/commands/xml/test_clean_logs.py | 2 -- tests/commands/xml/test_clean_speed.py | 2 -- tests/commands/xml/test_common.py | 2 -- tests/commands/xml/test_error.py | 2 -- tests/commands/xml/test_life_span.py | 2 -- tests/commands/xml/test_map.py | 2 -- tests/commands/xml/test_play_sound.py | 2 -- tests/commands/xml/test_pos.py | 2 -- tests/commands/xml/test_stats.py | 2 -- tests/common.py | 2 -- tests/conftest.py | 2 -- tests/data/map/test_1.py | 2 -- tests/data/map/test_2.py | 2 -- tests/data/map/test_3.py | 2 -- tests/data/map/test_4.py | 2 -- tests/events/test_events.py | 2 -- tests/events/test_fan_speed.py | 2 -- tests/fixtures/base.py | 2 -- tests/fixtures/mqtt_server.py | 2 -- tests/hardware/test_init.py | 2 -- tests/helpers/__init__.py | 2 -- tests/helpers/tasks.py | 1 - tests/messages/__init__.py | 2 -- tests/messages/json/__init__.py | 2 -- tests/messages/json/map/test_cached_map_info.py | 2 -- tests/messages/json/map/test_init.py | 2 -- tests/messages/json/test_auto_empty.py | 2 -- tests/messages/json/test_battery.py | 2 -- tests/messages/json/test_gps_position.py | 2 -- tests/messages/json/test_station_state.py | 2 -- tests/messages/json/test_stats.py | 2 -- tests/messages/json/test_work_state.py | 2 -- tests/messages/test_get_messages.py | 2 -- tests/messages/test_messages.py | 2 -- tests/messages/xml/__init__.py | 2 -- tests/messages/xml/test_battery.py | 2 -- tests/messages/xml/test_charge_state.py | 2 -- tests/messages/xml/test_clean.py | 2 -- tests/messages/xml/test_common.py | 2 -- tests/messages/xml/test_map.py | 2 -- tests/messages/xml/test_pos.py | 2 -- tests/mqtt_util.py | 2 -- tests/rs/test_map.py | 2 -- tests/rs/test_util.py | 2 -- tests/test_authentication.py | 2 -- tests/test_command.py | 2 -- tests/test_device.py | 2 -- tests/test_event_bus.py | 2 -- tests/test_map.py | 2 -- tests/test_message.py | 2 -- tests/test_models.py | 2 -- tests/test_mqtt_client.py | 2 -- tests/test_mqtt_client_reconnect.py | 2 -- tests/util/test_continents.py | 2 -- tests/util/test_countries.py | 2 -- tests/util/test_enum.py | 2 -- tests/util/test_init.py | 2 -- 253 files changed, 6 insertions(+), 502 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a1616519..a2e144048 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,12 @@ repos: - --fix - --unsafe-fixes - id: ruff-format + - repo: https://github.com/asottile/pyupgrade + rev: v3.21.2 + hooks: + - id: pyupgrade + args: + - --py314-plus - repo: https://github.com/codespell-project/codespell rev: v2.4.1 hooks: diff --git a/deebot_client/api_client.py b/deebot_client/api_client.py index 0be638eeb..21aa8a0b0 100644 --- a/deebot_client/api_client.py +++ b/deebot_client/api_client.py @@ -1,7 +1,5 @@ """Api client module.""" -from __future__ import annotations - import asyncio from dataclasses import dataclass from typing import TYPE_CHECKING, Any diff --git a/deebot_client/authentication.py b/deebot_client/authentication.py index b8f8cb127..8a31999d6 100644 --- a/deebot_client/authentication.py +++ b/deebot_client/authentication.py @@ -1,7 +1,5 @@ """Authentication module.""" -from __future__ import annotations - import asyncio from dataclasses import dataclass from http import HTTPStatus diff --git a/deebot_client/capabilities.py b/deebot_client/capabilities.py index 140ffcb85..6242dc5a6 100644 --- a/deebot_client/capabilities.py +++ b/deebot_client/capabilities.py @@ -1,7 +1,5 @@ """Device capabilities module.""" -from __future__ import annotations - from abc import ABC from dataclasses import dataclass, field, fields, is_dataclass from enum import StrEnum diff --git a/deebot_client/command.py b/deebot_client/command.py index 8cfe73e49..729c945b8 100644 --- a/deebot_client/command.py +++ b/deebot_client/command.py @@ -1,7 +1,5 @@ """Base command.""" -from __future__ import annotations - from abc import ABC, abstractmethod import asyncio from dataclasses import dataclass, field diff --git a/deebot_client/commands/__init__.py b/deebot_client/commands/__init__.py index a3fc21563..8fa1abae3 100644 --- a/deebot_client/commands/__init__.py +++ b/deebot_client/commands/__init__.py @@ -1,7 +1,5 @@ """Commands module.""" -from __future__ import annotations - from enum import IntEnum, unique from typing import TYPE_CHECKING diff --git a/deebot_client/commands/json/__init__.py b/deebot_client/commands/json/__init__.py index ee082609a..8bf06ba58 100644 --- a/deebot_client/commands/json/__init__.py +++ b/deebot_client/commands/json/__init__.py @@ -1,7 +1,5 @@ """Json commands module.""" -from __future__ import annotations - from typing import TYPE_CHECKING from . import auto_empty, station_action, station_state diff --git a/deebot_client/commands/json/advanced_mode.py b/deebot_client/commands/json/advanced_mode.py index 18496eddd..eaa45a7d0 100644 --- a/deebot_client/commands/json/advanced_mode.py +++ b/deebot_client/commands/json/advanced_mode.py @@ -1,7 +1,5 @@ """Advanced mode command module.""" -from __future__ import annotations - from deebot_client.events import AdvancedModeEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/auto_empty.py b/deebot_client/commands/json/auto_empty.py index 39ade08c1..fcabc1aa3 100644 --- a/deebot_client/commands/json/auto_empty.py +++ b/deebot_client/commands/json/auto_empty.py @@ -1,7 +1,5 @@ """Auto empty commands.""" -from __future__ import annotations - from typing import Any from deebot_client.events.auto_empty import Frequency diff --git a/deebot_client/commands/json/battery.py b/deebot_client/commands/json/battery.py index a55bb402e..60d331223 100644 --- a/deebot_client/commands/json/battery.py +++ b/deebot_client/commands/json/battery.py @@ -1,7 +1,5 @@ """Battery commands.""" -from __future__ import annotations - from deebot_client.messages.json import OnBattery from .common import JsonCommandWithMessageHandling diff --git a/deebot_client/commands/json/border_spin.py b/deebot_client/commands/json/border_spin.py index 2d65d39f5..1c01f4aa1 100644 --- a/deebot_client/commands/json/border_spin.py +++ b/deebot_client/commands/json/border_spin.py @@ -1,7 +1,5 @@ """Border spin commands.""" -from __future__ import annotations - from deebot_client.events import BorderSpinEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/border_switch.py b/deebot_client/commands/json/border_switch.py index 06406f555..6ff2ffe4a 100644 --- a/deebot_client/commands/json/border_switch.py +++ b/deebot_client/commands/json/border_switch.py @@ -1,7 +1,5 @@ """Border switch commands.""" -from __future__ import annotations - from deebot_client.events import BorderSwitchEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/carpet.py b/deebot_client/commands/json/carpet.py index 677b4fcf1..93031fcf7 100644 --- a/deebot_client/commands/json/carpet.py +++ b/deebot_client/commands/json/carpet.py @@ -1,7 +1,5 @@ """Carpet pressure command module.""" -from __future__ import annotations - from deebot_client.events import CarpetAutoFanBoostEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/charge.py b/deebot_client/commands/json/charge.py index 9e1992b5f..053bb167b 100644 --- a/deebot_client/commands/json/charge.py +++ b/deebot_client/commands/json/charge.py @@ -1,7 +1,5 @@ """Charge commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import StateEvent diff --git a/deebot_client/commands/json/charge_state.py b/deebot_client/commands/json/charge_state.py index 77adb4caa..e0e8d35a7 100644 --- a/deebot_client/commands/json/charge_state.py +++ b/deebot_client/commands/json/charge_state.py @@ -1,7 +1,5 @@ """Charge state commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import StateEvent diff --git a/deebot_client/commands/json/child_lock.py b/deebot_client/commands/json/child_lock.py index f5981b08c..303769d45 100644 --- a/deebot_client/commands/json/child_lock.py +++ b/deebot_client/commands/json/child_lock.py @@ -1,7 +1,5 @@ """Child lock commands.""" -from __future__ import annotations - from deebot_client.events import ChildLockEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/clean.py b/deebot_client/commands/json/clean.py index 300a6e7b3..7cecf9d70 100644 --- a/deebot_client/commands/json/clean.py +++ b/deebot_client/commands/json/clean.py @@ -1,7 +1,5 @@ """Clean commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import StateEvent diff --git a/deebot_client/commands/json/clean_count.py b/deebot_client/commands/json/clean_count.py index dbfae0d97..7fa120a86 100644 --- a/deebot_client/commands/json/clean_count.py +++ b/deebot_client/commands/json/clean_count.py @@ -1,7 +1,5 @@ """Clean count command module.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/clean_logs.py b/deebot_client/commands/json/clean_logs.py index 3279252e0..a5dfb55dd 100644 --- a/deebot_client/commands/json/clean_logs.py +++ b/deebot_client/commands/json/clean_logs.py @@ -1,7 +1,5 @@ """clean log commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.const import PATH_API_LG_LOG, REQUEST_HEADERS diff --git a/deebot_client/commands/json/clean_preference.py b/deebot_client/commands/json/clean_preference.py index 6d1ab6881..24e1d7835 100644 --- a/deebot_client/commands/json/clean_preference.py +++ b/deebot_client/commands/json/clean_preference.py @@ -1,7 +1,5 @@ """Clean preference command module.""" -from __future__ import annotations - from deebot_client.events import CleanPreferenceEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/clear_map.py b/deebot_client/commands/json/clear_map.py index 119418495..3f126a518 100644 --- a/deebot_client/commands/json/clear_map.py +++ b/deebot_client/commands/json/clear_map.py @@ -1,7 +1,5 @@ """ClearMap commands.""" -from __future__ import annotations - from .common import ExecuteCommand diff --git a/deebot_client/commands/json/common.py b/deebot_client/commands/json/common.py index 195c496d1..344a638ed 100644 --- a/deebot_client/commands/json/common.py +++ b/deebot_client/commands/json/common.py @@ -1,7 +1,5 @@ """Base commands.""" -from __future__ import annotations - from abc import ABC, abstractmethod import time from types import MappingProxyType diff --git a/deebot_client/commands/json/const.py b/deebot_client/commands/json/const.py index 0bb8432c9..0f2dcc0f9 100644 --- a/deebot_client/commands/json/const.py +++ b/deebot_client/commands/json/const.py @@ -1,5 +1,3 @@ """Command constants module.""" -from __future__ import annotations - CODE = "code" diff --git a/deebot_client/commands/json/continuous_cleaning.py b/deebot_client/commands/json/continuous_cleaning.py index d735daea8..77b5d5258 100644 --- a/deebot_client/commands/json/continuous_cleaning.py +++ b/deebot_client/commands/json/continuous_cleaning.py @@ -1,7 +1,5 @@ """Continuous cleaning (break point) command module.""" -from __future__ import annotations - from deebot_client.events import ContinuousCleaningEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/cross_map_border_warning.py b/deebot_client/commands/json/cross_map_border_warning.py index 0117312b5..a4ab8aac9 100644 --- a/deebot_client/commands/json/cross_map_border_warning.py +++ b/deebot_client/commands/json/cross_map_border_warning.py @@ -1,7 +1,5 @@ """Cross map border warning commands.""" -from __future__ import annotations - from deebot_client.events import CrossMapBorderWarningEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/custom.py b/deebot_client/commands/json/custom.py index 74aed6d03..45a39a36b 100644 --- a/deebot_client/commands/json/custom.py +++ b/deebot_client/commands/json/custom.py @@ -1,7 +1,5 @@ """Custom command module.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.commands.json.common import JsonCommand diff --git a/deebot_client/commands/json/cut_direction.py b/deebot_client/commands/json/cut_direction.py index 7e4b3ba5e..49f547992 100644 --- a/deebot_client/commands/json/cut_direction.py +++ b/deebot_client/commands/json/cut_direction.py @@ -1,7 +1,5 @@ """Cut direction command module.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/efficiency.py b/deebot_client/commands/json/efficiency.py index 33764c87e..81834d99f 100644 --- a/deebot_client/commands/json/efficiency.py +++ b/deebot_client/commands/json/efficiency.py @@ -1,7 +1,5 @@ """Efficiency mode command module.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/error.py b/deebot_client/commands/json/error.py index 8f9bfc051..cac4f3e24 100644 --- a/deebot_client/commands/json/error.py +++ b/deebot_client/commands/json/error.py @@ -1,7 +1,5 @@ """Error commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.const import ERROR_CODES diff --git a/deebot_client/commands/json/fan_speed.py b/deebot_client/commands/json/fan_speed.py index f43035648..c2609e198 100644 --- a/deebot_client/commands/json/fan_speed.py +++ b/deebot_client/commands/json/fan_speed.py @@ -1,7 +1,5 @@ """(fan) speed commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/life_span.py b/deebot_client/commands/json/life_span.py index 909131e5a..dacd6e599 100644 --- a/deebot_client/commands/json/life_span.py +++ b/deebot_client/commands/json/life_span.py @@ -1,7 +1,5 @@ """Life span commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/map/__init__.py b/deebot_client/commands/json/map/__init__.py index 1dd470a10..f7ee2a33b 100644 --- a/deebot_client/commands/json/map/__init__.py +++ b/deebot_client/commands/json/map/__init__.py @@ -1,7 +1,5 @@ """Maps commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/map/cached_map_info.py b/deebot_client/commands/json/map/cached_map_info.py index 80725fe08..3bcba546c 100644 --- a/deebot_client/commands/json/map/cached_map_info.py +++ b/deebot_client/commands/json/map/cached_map_info.py @@ -1,7 +1,5 @@ """Cached map info commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.commands.json.common import JsonCommandWithMessageHandling diff --git a/deebot_client/commands/json/map/major_map.py b/deebot_client/commands/json/map/major_map.py index 94052a53d..68581155a 100644 --- a/deebot_client/commands/json/map/major_map.py +++ b/deebot_client/commands/json/map/major_map.py @@ -1,7 +1,5 @@ """Major map commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/mop_auto_wash_frequency.py b/deebot_client/commands/json/mop_auto_wash_frequency.py index 9f59bd43e..e11436855 100644 --- a/deebot_client/commands/json/mop_auto_wash_frequency.py +++ b/deebot_client/commands/json/mop_auto_wash_frequency.py @@ -1,7 +1,5 @@ """Mop Auto-Wash Frequency command module.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/moveup_warning.py b/deebot_client/commands/json/moveup_warning.py index b6063e280..7c1b8b9f8 100644 --- a/deebot_client/commands/json/moveup_warning.py +++ b/deebot_client/commands/json/moveup_warning.py @@ -1,7 +1,5 @@ """Move up lock commands.""" -from __future__ import annotations - from deebot_client.events import MoveUpWarningEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/multimap_state.py b/deebot_client/commands/json/multimap_state.py index 5d4eeacf3..ecfb6659a 100644 --- a/deebot_client/commands/json/multimap_state.py +++ b/deebot_client/commands/json/multimap_state.py @@ -1,7 +1,5 @@ """Multimap state command module.""" -from __future__ import annotations - from deebot_client.events import MultimapStateEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/network.py b/deebot_client/commands/json/network.py index 51c2e1802..7b82e5dae 100644 --- a/deebot_client/commands/json/network.py +++ b/deebot_client/commands/json/network.py @@ -1,7 +1,5 @@ """Network commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.command import CommandWithMessageHandling diff --git a/deebot_client/commands/json/ota.py b/deebot_client/commands/json/ota.py index eddf57e34..98b531399 100644 --- a/deebot_client/commands/json/ota.py +++ b/deebot_client/commands/json/ota.py @@ -1,7 +1,5 @@ """Ota command module.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/play_sound.py b/deebot_client/commands/json/play_sound.py index 47023435a..b666839ef 100644 --- a/deebot_client/commands/json/play_sound.py +++ b/deebot_client/commands/json/play_sound.py @@ -1,7 +1,5 @@ """Play sound commands.""" -from __future__ import annotations - from .common import ExecuteCommand diff --git a/deebot_client/commands/json/pos.py b/deebot_client/commands/json/pos.py index ffac4d19f..0678915a8 100644 --- a/deebot_client/commands/json/pos.py +++ b/deebot_client/commands/json/pos.py @@ -1,7 +1,5 @@ """Position command module.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import Position, PositionsEvent diff --git a/deebot_client/commands/json/relocation.py b/deebot_client/commands/json/relocation.py index 5849ad1fd..1e1e45443 100644 --- a/deebot_client/commands/json/relocation.py +++ b/deebot_client/commands/json/relocation.py @@ -1,7 +1,5 @@ """Relocate commands.""" -from __future__ import annotations - from .common import ExecuteCommand diff --git a/deebot_client/commands/json/safe_protect.py b/deebot_client/commands/json/safe_protect.py index 1e3cb43e5..c0946a7a4 100644 --- a/deebot_client/commands/json/safe_protect.py +++ b/deebot_client/commands/json/safe_protect.py @@ -1,7 +1,5 @@ """Safe protect commands.""" -from __future__ import annotations - from deebot_client.events import SafeProtectEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/station_action.py b/deebot_client/commands/json/station_action.py index 0e78bb05d..a53f4311a 100644 --- a/deebot_client/commands/json/station_action.py +++ b/deebot_client/commands/json/station_action.py @@ -1,7 +1,5 @@ """Charge commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING from .common import ExecuteCommand diff --git a/deebot_client/commands/json/station_state.py b/deebot_client/commands/json/station_state.py index 88c5047fe..d69ddbce9 100644 --- a/deebot_client/commands/json/station_state.py +++ b/deebot_client/commands/json/station_state.py @@ -1,7 +1,5 @@ """Battery commands.""" -from __future__ import annotations - from deebot_client.messages.json.station_state import OnStationState from .common import JsonCommandWithMessageHandling diff --git a/deebot_client/commands/json/stats.py b/deebot_client/commands/json/stats.py index 70a9cb3e2..bb21a48fc 100644 --- a/deebot_client/commands/json/stats.py +++ b/deebot_client/commands/json/stats.py @@ -1,7 +1,5 @@ """Stats commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import StatsEvent, TotalStatsEvent diff --git a/deebot_client/commands/json/sweep_mode.py b/deebot_client/commands/json/sweep_mode.py index 5e8bf5d9e..c362f79a4 100644 --- a/deebot_client/commands/json/sweep_mode.py +++ b/deebot_client/commands/json/sweep_mode.py @@ -1,7 +1,5 @@ """SweepMode command module for "Mop-Only" option.""" -from __future__ import annotations - from deebot_client.events import SweepModeEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/true_detect.py b/deebot_client/commands/json/true_detect.py index 982336a43..db02876a1 100644 --- a/deebot_client/commands/json/true_detect.py +++ b/deebot_client/commands/json/true_detect.py @@ -1,7 +1,5 @@ """True detect command module.""" -from __future__ import annotations - from deebot_client.events import TrueDetectEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/voice_assistant_state.py b/deebot_client/commands/json/voice_assistant_state.py index 20a445cf7..155a32478 100644 --- a/deebot_client/commands/json/voice_assistant_state.py +++ b/deebot_client/commands/json/voice_assistant_state.py @@ -1,7 +1,5 @@ """Voice assistant state command module.""" -from __future__ import annotations - from deebot_client.events import VoiceAssistantStateEvent from .common import GetEnableCommand, SetEnableCommand diff --git a/deebot_client/commands/json/volume.py b/deebot_client/commands/json/volume.py index 24fb5927b..c0df7abda 100644 --- a/deebot_client/commands/json/volume.py +++ b/deebot_client/commands/json/volume.py @@ -1,7 +1,5 @@ """Volume command module.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/water_info.py b/deebot_client/commands/json/water_info.py index b74e119c3..644c70bed 100644 --- a/deebot_client/commands/json/water_info.py +++ b/deebot_client/commands/json/water_info.py @@ -1,7 +1,5 @@ """Water info commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/work_mode.py b/deebot_client/commands/json/work_mode.py index f4bf6fc00..23cb5de66 100644 --- a/deebot_client/commands/json/work_mode.py +++ b/deebot_client/commands/json/work_mode.py @@ -1,7 +1,5 @@ """Work mode commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/json/work_state.py b/deebot_client/commands/json/work_state.py index 9b86ecdea..de4b1a44e 100644 --- a/deebot_client/commands/json/work_state.py +++ b/deebot_client/commands/json/work_state.py @@ -1,7 +1,5 @@ """Work state commands.""" -from __future__ import annotations - from deebot_client.messages.json.work_state import OnWorkState from .common import JsonCommandWithMessageHandling diff --git a/deebot_client/commands/xml/__init__.py b/deebot_client/commands/xml/__init__.py index df7488032..5d231f374 100644 --- a/deebot_client/commands/xml/__init__.py +++ b/deebot_client/commands/xml/__init__.py @@ -1,7 +1,5 @@ """Xml commands module.""" -from __future__ import annotations - from typing import TYPE_CHECKING from .battery import GetBatteryInfo diff --git a/deebot_client/commands/xml/battery.py b/deebot_client/commands/xml/battery.py index a97a06778..ceb66e7ee 100644 --- a/deebot_client/commands/xml/battery.py +++ b/deebot_client/commands/xml/battery.py @@ -1,7 +1,5 @@ """Battery Info command.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import BatteryEvent diff --git a/deebot_client/commands/xml/charge.py b/deebot_client/commands/xml/charge.py index 99ab5cfb8..dafccd2cc 100644 --- a/deebot_client/commands/xml/charge.py +++ b/deebot_client/commands/xml/charge.py @@ -1,7 +1,5 @@ """Charge command.""" -from __future__ import annotations - from .common import ExecuteCommand diff --git a/deebot_client/commands/xml/charge_state.py b/deebot_client/commands/xml/charge_state.py index 8f79d2dbb..4bff4d215 100644 --- a/deebot_client/commands/xml/charge_state.py +++ b/deebot_client/commands/xml/charge_state.py @@ -1,7 +1,5 @@ """Charge State command.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.message import HandlingResult diff --git a/deebot_client/commands/xml/clean.py b/deebot_client/commands/xml/clean.py index d0887cf04..945910ba4 100644 --- a/deebot_client/commands/xml/clean.py +++ b/deebot_client/commands/xml/clean.py @@ -1,7 +1,5 @@ """Clean commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import FanSpeedLevel diff --git a/deebot_client/commands/xml/clean_logs.py b/deebot_client/commands/xml/clean_logs.py index 49acba4fa..d3406f32b 100644 --- a/deebot_client/commands/xml/clean_logs.py +++ b/deebot_client/commands/xml/clean_logs.py @@ -1,7 +1,5 @@ """Clean Logs commands.""" -from __future__ import annotations - from enum import StrEnum, unique from typing import TYPE_CHECKING, Self diff --git a/deebot_client/commands/xml/clean_speed.py b/deebot_client/commands/xml/clean_speed.py index 7041b1c0d..b78bb4518 100644 --- a/deebot_client/commands/xml/clean_speed.py +++ b/deebot_client/commands/xml/clean_speed.py @@ -1,7 +1,5 @@ """FanSpeed command module.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import FanSpeedEvent, FanSpeedLevel diff --git a/deebot_client/commands/xml/common.py b/deebot_client/commands/xml/common.py index 940a5daf3..65283e71c 100644 --- a/deebot_client/commands/xml/common.py +++ b/deebot_client/commands/xml/common.py @@ -1,7 +1,5 @@ """Common xml based commands.""" -from __future__ import annotations - from abc import ABC, abstractmethod from typing import TYPE_CHECKING, cast, final, override from xml.etree.ElementTree import Element, SubElement diff --git a/deebot_client/commands/xml/error.py b/deebot_client/commands/xml/error.py index 06b59850a..a02352a03 100644 --- a/deebot_client/commands/xml/error.py +++ b/deebot_client/commands/xml/error.py @@ -1,7 +1,5 @@ """Error commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.const import ERROR_CODES diff --git a/deebot_client/commands/xml/life_span.py b/deebot_client/commands/xml/life_span.py index 97493f9ce..a8d873f0c 100644 --- a/deebot_client/commands/xml/life_span.py +++ b/deebot_client/commands/xml/life_span.py @@ -1,7 +1,5 @@ """Life span commands.""" -from __future__ import annotations - from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/deebot_client/commands/xml/map.py b/deebot_client/commands/xml/map.py index 75912e937..593293ca5 100644 --- a/deebot_client/commands/xml/map.py +++ b/deebot_client/commands/xml/map.py @@ -1,7 +1,5 @@ """Map commands.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import MajorMapEvent, MapSetEvent, MapSetType, MinorMapEvent diff --git a/deebot_client/commands/xml/play_sound.py b/deebot_client/commands/xml/play_sound.py index 31eaf6be9..974034c5b 100644 --- a/deebot_client/commands/xml/play_sound.py +++ b/deebot_client/commands/xml/play_sound.py @@ -1,7 +1,5 @@ """Play sound commands.""" -from __future__ import annotations - from .common import ExecuteCommand diff --git a/deebot_client/commands/xml/pos.py b/deebot_client/commands/xml/pos.py index b7c8f16fe..c23f55b9c 100644 --- a/deebot_client/commands/xml/pos.py +++ b/deebot_client/commands/xml/pos.py @@ -1,7 +1,5 @@ """Position command module.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.message import HandlingResult diff --git a/deebot_client/commands/xml/stats.py b/deebot_client/commands/xml/stats.py index aeb615cd7..5f9b1f1d8 100644 --- a/deebot_client/commands/xml/stats.py +++ b/deebot_client/commands/xml/stats.py @@ -1,7 +1,5 @@ """CleanSum command module.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import TotalStatsEvent diff --git a/deebot_client/const.py b/deebot_client/const.py index 87c8255d1..9cf0406d6 100644 --- a/deebot_client/const.py +++ b/deebot_client/const.py @@ -1,7 +1,5 @@ """Constants module.""" -from __future__ import annotations - from enum import Enum, StrEnum from typing import Self diff --git a/deebot_client/device.py b/deebot_client/device.py index 117134aef..8a737c91d 100644 --- a/deebot_client/device.py +++ b/deebot_client/device.py @@ -1,7 +1,5 @@ """Device module.""" -from __future__ import annotations - import asyncio from collections.abc import Callable, Coroutine from contextlib import suppress diff --git a/deebot_client/event_bus.py b/deebot_client/event_bus.py index 5d60fe831..ec85621fa 100644 --- a/deebot_client/event_bus.py +++ b/deebot_client/event_bus.py @@ -1,7 +1,5 @@ """Event emitter module.""" -from __future__ import annotations - import asyncio from datetime import UTC, datetime, timedelta from typing import TYPE_CHECKING, Any, Final, TypeVar diff --git a/deebot_client/events/__init__.py b/deebot_client/events/__init__.py index 79399420b..218f6afa1 100644 --- a/deebot_client/events/__init__.py +++ b/deebot_client/events/__init__.py @@ -1,7 +1,5 @@ """Events module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import IntEnum, unique from typing import TYPE_CHECKING, Any diff --git a/deebot_client/events/auto_empty.py b/deebot_client/events/auto_empty.py index b9936c302..255dbf909 100644 --- a/deebot_client/events/auto_empty.py +++ b/deebot_client/events/auto_empty.py @@ -1,7 +1,5 @@ """Auto empty event module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import StrEnum, unique diff --git a/deebot_client/events/base.py b/deebot_client/events/base.py index f8a633f2b..a73693048 100644 --- a/deebot_client/events/base.py +++ b/deebot_client/events/base.py @@ -1,7 +1,5 @@ """Base event module.""" -from __future__ import annotations - from dataclasses import dataclass diff --git a/deebot_client/events/efficiency_mode.py b/deebot_client/events/efficiency_mode.py index 5aeacaf14..1be1d4371 100644 --- a/deebot_client/events/efficiency_mode.py +++ b/deebot_client/events/efficiency_mode.py @@ -1,7 +1,5 @@ """Efficiency mode event module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import IntEnum, unique diff --git a/deebot_client/events/fan_speed.py b/deebot_client/events/fan_speed.py index f6c576d61..7fe3a86a6 100644 --- a/deebot_client/events/fan_speed.py +++ b/deebot_client/events/fan_speed.py @@ -1,7 +1,5 @@ """Fan speed event module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import unique diff --git a/deebot_client/events/map.py b/deebot_client/events/map.py index a46a999c0..426240b26 100644 --- a/deebot_client/events/map.py +++ b/deebot_client/events/map.py @@ -1,7 +1,5 @@ """Map event module.""" -from __future__ import annotations - from dataclasses import dataclass, field from enum import Enum, unique from typing import TYPE_CHECKING, Any diff --git a/deebot_client/events/mop_auto_wash_frequency.py b/deebot_client/events/mop_auto_wash_frequency.py index d15daf4aa..ff6d0a985 100644 --- a/deebot_client/events/mop_auto_wash_frequency.py +++ b/deebot_client/events/mop_auto_wash_frequency.py @@ -1,7 +1,5 @@ """Mop Auto-Wash Frequency event module.""" -from __future__ import annotations - from dataclasses import dataclass from .base import ValueEvent diff --git a/deebot_client/events/network.py b/deebot_client/events/network.py index 13f6b7f30..a969b66ae 100644 --- a/deebot_client/events/network.py +++ b/deebot_client/events/network.py @@ -1,7 +1,5 @@ """Network info event module.""" -from __future__ import annotations - from dataclasses import dataclass from .base import Event diff --git a/deebot_client/events/station.py b/deebot_client/events/station.py index d3135e694..49ba9fdc2 100644 --- a/deebot_client/events/station.py +++ b/deebot_client/events/station.py @@ -1,7 +1,5 @@ """Base station event module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import IntEnum, unique diff --git a/deebot_client/events/water_info.py b/deebot_client/events/water_info.py index 6791cc9c2..334031ba5 100644 --- a/deebot_client/events/water_info.py +++ b/deebot_client/events/water_info.py @@ -1,7 +1,5 @@ """Water info event module.""" -from __future__ import annotations - from enum import IntEnum, unique from .base import ValueEvent diff --git a/deebot_client/events/work_mode.py b/deebot_client/events/work_mode.py index 63c3e6789..737b6ce05 100644 --- a/deebot_client/events/work_mode.py +++ b/deebot_client/events/work_mode.py @@ -1,7 +1,5 @@ """Work mode event module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import IntEnum, unique diff --git a/deebot_client/exceptions.py b/deebot_client/exceptions.py index d6e2b39a2..00da66162 100644 --- a/deebot_client/exceptions.py +++ b/deebot_client/exceptions.py @@ -1,7 +1,5 @@ """Deebot client exception module.""" -from __future__ import annotations - from typing import TYPE_CHECKING if TYPE_CHECKING: diff --git a/deebot_client/hardware/2o4lnm.py b/deebot_client/hardware/2o4lnm.py index 002a550c6..32e434da3 100644 --- a/deebot_client/hardware/2o4lnm.py +++ b/deebot_client/hardware/2o4lnm.py @@ -1,7 +1,5 @@ """DEEBOT X1 Turbo Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/2pv572.py b/deebot_client/hardware/2pv572.py index 7576da6de..a259d2302 100644 --- a/deebot_client/hardware/2pv572.py +++ b/deebot_client/hardware/2pv572.py @@ -1,7 +1,5 @@ """OZMO 905 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/300lc5.py b/deebot_client/hardware/300lc5.py index 2a350d9a7..34ac8b136 100644 --- a/deebot_client/hardware/300lc5.py +++ b/deebot_client/hardware/300lc5.py @@ -1,7 +1,5 @@ """DEEBOT GOAT O500 Panorama Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/4bdkrs.py b/deebot_client/hardware/4bdkrs.py index 0c46581f2..95faaf9d3 100644 --- a/deebot_client/hardware/4bdkrs.py +++ b/deebot_client/hardware/4bdkrs.py @@ -1,7 +1,5 @@ """Deebot DEEBOT T30S COMBO Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/55uoqe.py b/deebot_client/hardware/55uoqe.py index acd2a2b2c..f55eb4a27 100644 --- a/deebot_client/hardware/55uoqe.py +++ b/deebot_client/hardware/55uoqe.py @@ -1,7 +1,5 @@ """DEEBOT MINI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/5xu9h3.py b/deebot_client/hardware/5xu9h3.py index 44170ab3e..4aea395f0 100644 --- a/deebot_client/hardware/5xu9h3.py +++ b/deebot_client/hardware/5xu9h3.py @@ -1,7 +1,5 @@ """DEEBOT GOAT G1 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/7bryc5.py b/deebot_client/hardware/7bryc5.py index 03079b6c6..424301aac 100644 --- a/deebot_client/hardware/7bryc5.py +++ b/deebot_client/hardware/7bryc5.py @@ -1,7 +1,5 @@ """DEEBOT N8+ Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/7j1tu6.py b/deebot_client/hardware/7j1tu6.py index 051afd4b2..b53c686a2 100644 --- a/deebot_client/hardware/7j1tu6.py +++ b/deebot_client/hardware/7j1tu6.py @@ -1,7 +1,5 @@ """Deebot U2 Pro Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/8kwdb4.py b/deebot_client/hardware/8kwdb4.py index 6c491e7fe..62f96aa7f 100644 --- a/deebot_client/hardware/8kwdb4.py +++ b/deebot_client/hardware/8kwdb4.py @@ -1,7 +1,5 @@ """DEEBOT OZMO T9 AIVI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/9eamof.py b/deebot_client/hardware/9eamof.py index 0c11f51ad..14f2b30f8 100644 --- a/deebot_client/hardware/9eamof.py +++ b/deebot_client/hardware/9eamof.py @@ -1,7 +1,5 @@ """Deebot DEEBOT T80 OMNI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/9s1s80.py b/deebot_client/hardware/9s1s80.py index 0f00e43fb..93ae2c607 100644 --- a/deebot_client/hardware/9s1s80.py +++ b/deebot_client/hardware/9s1s80.py @@ -1,7 +1,5 @@ """DEEBOT T10 TURBO.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/__init__.py b/deebot_client/hardware/__init__.py index 40861a6af..b83e7b49d 100644 --- a/deebot_client/hardware/__init__.py +++ b/deebot_client/hardware/__init__.py @@ -1,7 +1,5 @@ """Hardware module.""" -from __future__ import annotations - import asyncio import importlib from typing import TYPE_CHECKING, cast diff --git a/deebot_client/hardware/b2jqs4.py b/deebot_client/hardware/b2jqs4.py index bc816673a..9fc906560 100644 --- a/deebot_client/hardware/b2jqs4.py +++ b/deebot_client/hardware/b2jqs4.py @@ -1,7 +1,5 @@ """DEEBOT N8+ Black Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/buom7k.py b/deebot_client/hardware/buom7k.py index 79fc056ab..72bbc0001 100644 --- a/deebot_client/hardware/buom7k.py +++ b/deebot_client/hardware/buom7k.py @@ -1,7 +1,5 @@ """Deebot N20 Plus Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/c8rj4y.py b/deebot_client/hardware/c8rj4y.py index d1721f87d..82eefe643 100644 --- a/deebot_client/hardware/c8rj4y.py +++ b/deebot_client/hardware/c8rj4y.py @@ -1,7 +1,5 @@ """Deebot T50 Max Pro Omni Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/co3fyu.py b/deebot_client/hardware/co3fyu.py index 766bd4a54..2005e5647 100644 --- a/deebot_client/hardware/co3fyu.py +++ b/deebot_client/hardware/co3fyu.py @@ -1,7 +1,5 @@ """DEEBOT X8 OMNI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/e6ofmn.py b/deebot_client/hardware/e6ofmn.py index d18c04370..56f0613d9 100644 --- a/deebot_client/hardware/e6ofmn.py +++ b/deebot_client/hardware/e6ofmn.py @@ -1,7 +1,5 @@ """Deebot X2 Omni Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/ee23uv.py b/deebot_client/hardware/ee23uv.py index 0c46581f2..95faaf9d3 100644 --- a/deebot_client/hardware/ee23uv.py +++ b/deebot_client/hardware/ee23uv.py @@ -1,7 +1,5 @@ """Deebot DEEBOT T30S COMBO Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/fd60kt.py b/deebot_client/hardware/fd60kt.py index ef18b84bd..16f19702c 100644 --- a/deebot_client/hardware/fd60kt.py +++ b/deebot_client/hardware/fd60kt.py @@ -1,7 +1,5 @@ """Deebot DEEBOT T50 OMNI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/ilt3k8.py b/deebot_client/hardware/ilt3k8.py index 9fdba470c..8cd44ed74 100644 --- a/deebot_client/hardware/ilt3k8.py +++ b/deebot_client/hardware/ilt3k8.py @@ -1,7 +1,5 @@ """DEEBOT X9 PRO OMNI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/kr0277.py b/deebot_client/hardware/kr0277.py index e2a2ea237..ca8d52ad5 100644 --- a/deebot_client/hardware/kr0277.py +++ b/deebot_client/hardware/kr0277.py @@ -1,7 +1,5 @@ """Deebot N20 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/m1wkuw.py b/deebot_client/hardware/m1wkuw.py index c7e09e96e..1c14cb37c 100644 --- a/deebot_client/hardware/m1wkuw.py +++ b/deebot_client/hardware/m1wkuw.py @@ -1,7 +1,5 @@ """Deebot N10 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/n0vyif.py b/deebot_client/hardware/n0vyif.py index a32eab129..8cc44b2dd 100644 --- a/deebot_client/hardware/n0vyif.py +++ b/deebot_client/hardware/n0vyif.py @@ -1,7 +1,5 @@ """Deebot DEEBOT X8 PRO OMNI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/p1jij8.py b/deebot_client/hardware/p1jij8.py index 4cdf6f6b0..5ec2a780c 100644 --- a/deebot_client/hardware/p1jij8.py +++ b/deebot_client/hardware/p1jij8.py @@ -1,7 +1,5 @@ """Deebot T20 Omni Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/p7l7iu.py b/deebot_client/hardware/p7l7iu.py index 44a076438..2ffde8045 100644 --- a/deebot_client/hardware/p7l7iu.py +++ b/deebot_client/hardware/p7l7iu.py @@ -1,7 +1,5 @@ """Deebot X2 Omni Height Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/p95mgv.py b/deebot_client/hardware/p95mgv.py index e93a25ae0..78a59c8b4 100644 --- a/deebot_client/hardware/p95mgv.py +++ b/deebot_client/hardware/p95mgv.py @@ -1,7 +1,5 @@ """Deebot T10 PLUS Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/qhe2o2.py b/deebot_client/hardware/qhe2o2.py index 97ab278bb..bb2b775c5 100644 --- a/deebot_client/hardware/qhe2o2.py +++ b/deebot_client/hardware/qhe2o2.py @@ -1,7 +1,5 @@ """Deebot N20 Pro Plus Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/r8ead0.py b/deebot_client/hardware/r8ead0.py index b2fc73fe2..9607ef814 100644 --- a/deebot_client/hardware/r8ead0.py +++ b/deebot_client/hardware/r8ead0.py @@ -1,7 +1,5 @@ """OZMO 500 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/ts2ofl.py b/deebot_client/hardware/ts2ofl.py index 501974139..2d27abaad 100644 --- a/deebot_client/hardware/ts2ofl.py +++ b/deebot_client/hardware/ts2ofl.py @@ -1,7 +1,5 @@ """Deebot U2 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/ue8kcc.py b/deebot_client/hardware/ue8kcc.py index 0c46581f2..95faaf9d3 100644 --- a/deebot_client/hardware/ue8kcc.py +++ b/deebot_client/hardware/ue8kcc.py @@ -1,7 +1,5 @@ """Deebot DEEBOT T30S COMBO Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/umwv6z.py b/deebot_client/hardware/umwv6z.py index 5e6a32807..db5d6e685 100644 --- a/deebot_client/hardware/umwv6z.py +++ b/deebot_client/hardware/umwv6z.py @@ -1,7 +1,5 @@ """Deebot N10 PLUS Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/viq3mw.py b/deebot_client/hardware/viq3mw.py index 5b2cf7d4c..a3025fd0e 100644 --- a/deebot_client/hardware/viq3mw.py +++ b/deebot_client/hardware/viq3mw.py @@ -1,7 +1,5 @@ """Deebot T30C Gen2 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/x5d34r.py b/deebot_client/hardware/x5d34r.py index cc6ec7051..245d15a08 100644 --- a/deebot_client/hardware/x5d34r.py +++ b/deebot_client/hardware/x5d34r.py @@ -1,7 +1,5 @@ """DEEBOT OZMO T8 AIVI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/xco2fc.py b/deebot_client/hardware/xco2fc.py index 72a299dc1..3f22f21d9 100644 --- a/deebot_client/hardware/xco2fc.py +++ b/deebot_client/hardware/xco2fc.py @@ -1,7 +1,5 @@ """Deebot T30S Pro Omni Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/xmp9ds.py b/deebot_client/hardware/xmp9ds.py index 7bfd87c73..93f63e9b4 100644 --- a/deebot_client/hardware/xmp9ds.py +++ b/deebot_client/hardware/xmp9ds.py @@ -1,7 +1,5 @@ """DEEBOT GOAT A1600 RTK Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/yna5xi.py b/deebot_client/hardware/yna5xi.py index 0920ed7d3..03f8ca404 100644 --- a/deebot_client/hardware/yna5xi.py +++ b/deebot_client/hardware/yna5xi.py @@ -1,7 +1,5 @@ """Deebot Ozmo 920/950 Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/hardware/zg6qbz.py b/deebot_client/hardware/zg6qbz.py index 2e3f8009c..26fbd454f 100644 --- a/deebot_client/hardware/zg6qbz.py +++ b/deebot_client/hardware/zg6qbz.py @@ -1,7 +1,5 @@ """DEEBOT NEO 3.0 OMNI Capabilities.""" -from __future__ import annotations - from deebot_client.capabilities import ( Capabilities, CapabilityClean, diff --git a/deebot_client/logging_filter.py b/deebot_client/logging_filter.py index 7d107023f..33e18f9b5 100644 --- a/deebot_client/logging_filter.py +++ b/deebot_client/logging_filter.py @@ -1,7 +1,5 @@ """Logging filter module.""" -from __future__ import annotations - from logging import Filter, Logger, LogRecord, getLogger from typing import Any diff --git a/deebot_client/map.py b/deebot_client/map.py index 37401e24f..3e458be23 100644 --- a/deebot_client/map.py +++ b/deebot_client/map.py @@ -1,7 +1,5 @@ """Map module.""" -from __future__ import annotations - import asyncio from datetime import UTC, datetime from typing import TYPE_CHECKING, Final diff --git a/deebot_client/message.py b/deebot_client/message.py index 57729b2fd..23f4d6221 100644 --- a/deebot_client/message.py +++ b/deebot_client/message.py @@ -1,7 +1,5 @@ """Base messages.""" -from __future__ import annotations - from abc import ABC, abstractmethod from dataclasses import dataclass, field from enum import IntEnum, auto diff --git a/deebot_client/messages/__init__.py b/deebot_client/messages/__init__.py index 2e306c280..a74738140 100644 --- a/deebot_client/messages/__init__.py +++ b/deebot_client/messages/__init__.py @@ -1,7 +1,5 @@ """Messages module.""" -from __future__ import annotations - from functools import lru_cache from typing import TYPE_CHECKING diff --git a/deebot_client/messages/json/__init__.py b/deebot_client/messages/json/__init__.py index 11d8a9d65..917f9da24 100644 --- a/deebot_client/messages/json/__init__.py +++ b/deebot_client/messages/json/__init__.py @@ -1,7 +1,5 @@ """Json messages.""" -from __future__ import annotations - import re from deebot_client.logging_filter import get_logger diff --git a/deebot_client/messages/json/auto_empty.py b/deebot_client/messages/json/auto_empty.py index 282f589ea..2a9a81911 100644 --- a/deebot_client/messages/json/auto_empty.py +++ b/deebot_client/messages/json/auto_empty.py @@ -1,7 +1,5 @@ """Auto empty messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events.auto_empty import AutoEmptyEvent, Frequency diff --git a/deebot_client/messages/json/battery.py b/deebot_client/messages/json/battery.py index 2cf84d43c..288105a0a 100644 --- a/deebot_client/messages/json/battery.py +++ b/deebot_client/messages/json/battery.py @@ -1,7 +1,5 @@ """Battery messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import BatteryEvent diff --git a/deebot_client/messages/json/gps_position.py b/deebot_client/messages/json/gps_position.py index eae4ce6f6..69e6fae39 100644 --- a/deebot_client/messages/json/gps_position.py +++ b/deebot_client/messages/json/gps_position.py @@ -1,7 +1,5 @@ """GPS position messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import GpsPositionEvent diff --git a/deebot_client/messages/json/map/__init__.py b/deebot_client/messages/json/map/__init__.py index fc1b1ef23..da2f937b3 100644 --- a/deebot_client/messages/json/map/__init__.py +++ b/deebot_client/messages/json/map/__init__.py @@ -1,7 +1,5 @@ """Map messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events.map import MajorMapEvent, MapInfoEvent, MapSetType diff --git a/deebot_client/messages/json/map/cached_map_info.py b/deebot_client/messages/json/map/cached_map_info.py index 664baf3c7..006957f7f 100644 --- a/deebot_client/messages/json/map/cached_map_info.py +++ b/deebot_client/messages/json/map/cached_map_info.py @@ -1,7 +1,5 @@ """Cached map info messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events.map import CachedMapInfoEvent, Map diff --git a/deebot_client/messages/json/station_state.py b/deebot_client/messages/json/station_state.py index 014dace62..10aed64db 100644 --- a/deebot_client/messages/json/station_state.py +++ b/deebot_client/messages/json/station_state.py @@ -1,7 +1,5 @@ """Base station messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events.station import State, StationEvent diff --git a/deebot_client/messages/json/stats.py b/deebot_client/messages/json/stats.py index 6ae7be39d..c8986cd85 100644 --- a/deebot_client/messages/json/stats.py +++ b/deebot_client/messages/json/stats.py @@ -1,7 +1,5 @@ """Stats messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import CleanJobStatus, ReportStatsEvent, StatsEvent diff --git a/deebot_client/messages/json/work_state.py b/deebot_client/messages/json/work_state.py index 664678370..5162f398c 100644 --- a/deebot_client/messages/json/work_state.py +++ b/deebot_client/messages/json/work_state.py @@ -1,7 +1,5 @@ """Base work state messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING, Any from deebot_client.events import StateEvent diff --git a/deebot_client/messages/xml/__init__.py b/deebot_client/messages/xml/__init__.py index 9f8ef3820..8072513d2 100644 --- a/deebot_client/messages/xml/__init__.py +++ b/deebot_client/messages/xml/__init__.py @@ -1,7 +1,5 @@ """XML messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.messages.xml.battery import BatteryInfo diff --git a/deebot_client/messages/xml/battery.py b/deebot_client/messages/xml/battery.py index 8e9922b83..f3cfe5493 100644 --- a/deebot_client/messages/xml/battery.py +++ b/deebot_client/messages/xml/battery.py @@ -1,7 +1,5 @@ """Battery messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import BatteryEvent diff --git a/deebot_client/messages/xml/charge_state.py b/deebot_client/messages/xml/charge_state.py index 6a66a287f..6efbf9435 100644 --- a/deebot_client/messages/xml/charge_state.py +++ b/deebot_client/messages/xml/charge_state.py @@ -1,7 +1,5 @@ """Charge messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import StateEvent diff --git a/deebot_client/messages/xml/clean.py b/deebot_client/messages/xml/clean.py index 6340ede4c..baca1e645 100644 --- a/deebot_client/messages/xml/clean.py +++ b/deebot_client/messages/xml/clean.py @@ -1,7 +1,5 @@ """Clean messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import ( diff --git a/deebot_client/messages/xml/common.py b/deebot_client/messages/xml/common.py index 05e7399bc..26a78aa23 100644 --- a/deebot_client/messages/xml/common.py +++ b/deebot_client/messages/xml/common.py @@ -1,7 +1,5 @@ """Common xml based messages.""" -from __future__ import annotations - from abc import ABC, abstractmethod from typing import TYPE_CHECKING diff --git a/deebot_client/messages/xml/map.py b/deebot_client/messages/xml/map.py index 8137ef184..fc98d49ae 100644 --- a/deebot_client/messages/xml/map.py +++ b/deebot_client/messages/xml/map.py @@ -1,7 +1,5 @@ """Map messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events.map import MapTraceEvent, MinorMapEvent diff --git a/deebot_client/messages/xml/pos.py b/deebot_client/messages/xml/pos.py index df6e6c21a..ceee3150d 100644 --- a/deebot_client/messages/xml/pos.py +++ b/deebot_client/messages/xml/pos.py @@ -1,7 +1,5 @@ """Pos messages.""" -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.events import Position, PositionsEvent diff --git a/deebot_client/models.py b/deebot_client/models.py index c3493a95d..3ff79f2ba 100644 --- a/deebot_client/models.py +++ b/deebot_client/models.py @@ -1,7 +1,5 @@ """Models module.""" -from __future__ import annotations - from dataclasses import dataclass from enum import IntEnum, unique from typing import TYPE_CHECKING, Required, TypedDict diff --git a/deebot_client/mqtt_client.py b/deebot_client/mqtt_client.py index 90b27f605..36edb7656 100644 --- a/deebot_client/mqtt_client.py +++ b/deebot_client/mqtt_client.py @@ -1,7 +1,5 @@ """MQTT module.""" -from __future__ import annotations - import asyncio from contextlib import suppress from dataclasses import dataclass diff --git a/deebot_client/util/__init__.py b/deebot_client/util/__init__.py index 5fc0d5310..4ad477ad5 100644 --- a/deebot_client/util/__init__.py +++ b/deebot_client/util/__init__.py @@ -1,7 +1,5 @@ """Util module.""" -from __future__ import annotations - from abc import ABC import asyncio from contextlib import suppress diff --git a/deebot_client/util/continents.py b/deebot_client/util/continents.py index 55778fd61..f68f1ad47 100644 --- a/deebot_client/util/continents.py +++ b/deebot_client/util/continents.py @@ -1,7 +1,5 @@ """Continents module.""" -from __future__ import annotations - from deebot_client.const import COUNTRY_CHINA diff --git a/deebot_client/util/countries.py b/deebot_client/util/countries.py index 3630fb2b7..a988eca3c 100644 --- a/deebot_client/util/countries.py +++ b/deebot_client/util/countries.py @@ -1,7 +1,5 @@ """Countries util.""" -from __future__ import annotations - _MAP_COUNTRY: dict[str, str] = {"GB": "UK"} diff --git a/deebot_client/util/enum.py b/deebot_client/util/enum.py index a64de6f31..f6d402ad1 100644 --- a/deebot_client/util/enum.py +++ b/deebot_client/util/enum.py @@ -1,7 +1,5 @@ """Enum util.""" -from __future__ import annotations - from enum import IntEnum, StrEnum from typing import Self diff --git a/pyproject.toml b/pyproject.toml index f10bc5d5b..9851bd888 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,7 +124,6 @@ fixture-parentheses = false combine-as-imports = true force-sort-within-sections = true known-first-party = ["deebot_client"] -required-imports = ["from __future__ import annotations"] [tool.ruff.lint.per-file-ignores] diff --git a/scripts/check_for_similar_models.py b/scripts/check_for_similar_models.py index f57ecd229..5e3c1bb35 100644 --- a/scripts/check_for_similar_models.py +++ b/scripts/check_for_similar_models.py @@ -1,7 +1,5 @@ """Script to check for similar models and link them to the same hardware implementation.""" -from __future__ import annotations - import asyncio import logging import os diff --git a/tests/__init__.py b/tests/__init__.py index 8b25d15e6..da1c932a1 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import importlib.util from pathlib import Path from typing import TYPE_CHECKING, cast diff --git a/tests/commands/__init__.py b/tests/commands/__init__.py index 1aeac6348..3c0b23c3a 100644 --- a/tests/commands/__init__.py +++ b/tests/commands/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from collections.abc import Callable, Sequence from typing import TYPE_CHECKING, Any from unittest.mock import AsyncMock, Mock, call diff --git a/tests/commands/json/__init__.py b/tests/commands/json/__init__.py index a0641a0ef..4935d8156 100644 --- a/tests/commands/json/__init__.py +++ b/tests/commands/json/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from collections.abc import Sequence from typing import TYPE_CHECKING, Any from unittest.mock import Mock, call diff --git a/tests/commands/json/map/test_cached_map_info.py b/tests/commands/json/map/test_cached_map_info.py index 45c3fd8e8..94d5a1026 100644 --- a/tests/commands/json/map/test_cached_map_info.py +++ b/tests/commands/json/map/test_cached_map_info.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/json/map/test_init.py b/tests/commands/json/map/test_init.py index 10ce58c78..219b2ecbc 100644 --- a/tests/commands/json/map/test_init.py +++ b/tests/commands/json/map/test_init.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/map/test_major_map.py b/tests/commands/json/map/test_major_map.py index b577c6739..43496518b 100644 --- a/tests/commands/json/map/test_major_map.py +++ b/tests/commands/json/map/test_major_map.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_advanced_mode.py b/tests/commands/json/test_advanced_mode.py index 04f16051b..4654b78d0 100644 --- a/tests/commands/json/test_advanced_mode.py +++ b/tests/commands/json/test_advanced_mode.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetAdvancedMode, SetAdvancedMode diff --git a/tests/commands/json/test_auto_empty.py b/tests/commands/json/test_auto_empty.py index bf75fe346..37a95ad57 100644 --- a/tests/commands/json/test_auto_empty.py +++ b/tests/commands/json/test_auto_empty.py @@ -1,7 +1,5 @@ """Auto empty tests.""" -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_battery.py b/tests/commands/json/test_battery.py index a412986a2..da9f048b2 100644 --- a/tests/commands/json/test_battery.py +++ b/tests/commands/json/test_battery.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetBattery diff --git a/tests/commands/json/test_border_spin.py b/tests/commands/json/test_border_spin.py index c9acbfa7d..c7514b8bf 100644 --- a/tests/commands/json/test_border_spin.py +++ b/tests/commands/json/test_border_spin.py @@ -1,7 +1,5 @@ """Tests regarding border spin commands.""" -from __future__ import annotations - import pytest from deebot_client.commands.json import GetBorderSpin, SetBorderSpin diff --git a/tests/commands/json/test_border_switch.py b/tests/commands/json/test_border_switch.py index 6667d8d08..8ad1e029f 100644 --- a/tests/commands/json/test_border_switch.py +++ b/tests/commands/json/test_border_switch.py @@ -1,7 +1,5 @@ """Tests regarding border switch commands.""" -from __future__ import annotations - import pytest from deebot_client.commands.json import GetBorderSwitch, SetBorderSwitch diff --git a/tests/commands/json/test_carpet.py b/tests/commands/json/test_carpet.py index 6a63e30a0..d6c3f4d6d 100644 --- a/tests/commands/json/test_carpet.py +++ b/tests/commands/json/test_carpet.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetCarpetAutoFanBoost, SetCarpetAutoFanBoost diff --git a/tests/commands/json/test_charge.py b/tests/commands/json/test_charge.py index 6d5e2abdd..4ea627f99 100644 --- a/tests/commands/json/test_charge.py +++ b/tests/commands/json/test_charge.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import logging from typing import Any diff --git a/tests/commands/json/test_charge_state.py b/tests/commands/json/test_charge_state.py index 412c092c9..168484fd6 100644 --- a/tests/commands/json/test_charge_state.py +++ b/tests/commands/json/test_charge_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any import pytest diff --git a/tests/commands/json/test_child_lock.py b/tests/commands/json/test_child_lock.py index 80056dabe..b0c73f6b0 100644 --- a/tests/commands/json/test_child_lock.py +++ b/tests/commands/json/test_child_lock.py @@ -1,7 +1,5 @@ """Tests regarding child lock commands.""" -from __future__ import annotations - import pytest from deebot_client.commands.json import GetChildLock, SetChildLock diff --git a/tests/commands/json/test_clean.py b/tests/commands/json/test_clean.py index 86b591440..48aeb7b29 100644 --- a/tests/commands/json/test_clean.py +++ b/tests/commands/json/test_clean.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any from unittest.mock import Mock diff --git a/tests/commands/json/test_clean_count.py b/tests/commands/json/test_clean_count.py index 12fac2666..2631d7e45 100644 --- a/tests/commands/json/test_clean_count.py +++ b/tests/commands/json/test_clean_count.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetCleanCount, SetCleanCount diff --git a/tests/commands/json/test_clean_log.py b/tests/commands/json/test_clean_log.py index cdd3b48d2..34cb3d914 100644 --- a/tests/commands/json/test_clean_log.py +++ b/tests/commands/json/test_clean_log.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import logging from typing import Any diff --git a/tests/commands/json/test_clean_preference.py b/tests/commands/json/test_clean_preference.py index 6cace333e..772554caa 100644 --- a/tests/commands/json/test_clean_preference.py +++ b/tests/commands/json/test_clean_preference.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetCleanPreference, SetCleanPreference diff --git a/tests/commands/json/test_common.py b/tests/commands/json/test_common.py index 24b299e74..f8222e9f2 100644 --- a/tests/commands/json/test_common.py +++ b/tests/commands/json/test_common.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import logging from typing import TYPE_CHECKING, Any from unittest.mock import Mock diff --git a/tests/commands/json/test_continuous_cleaning.py b/tests/commands/json/test_continuous_cleaning.py index 33e23f3f0..9c8056b37 100644 --- a/tests/commands/json/test_continuous_cleaning.py +++ b/tests/commands/json/test_continuous_cleaning.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetContinuousCleaning, SetContinuousCleaning diff --git a/tests/commands/json/test_cross_map_border_warning.py b/tests/commands/json/test_cross_map_border_warning.py index df71015d0..bfb120139 100644 --- a/tests/commands/json/test_cross_map_border_warning.py +++ b/tests/commands/json/test_cross_map_border_warning.py @@ -1,7 +1,5 @@ """Tests regarding cross map border warning commands.""" -from __future__ import annotations - import pytest from deebot_client.commands.json import ( diff --git a/tests/commands/json/test_custom.py b/tests/commands/json/test_custom.py index 97a912dc8..57d5d3668 100644 --- a/tests/commands/json/test_custom.py +++ b/tests/commands/json/test_custom.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_cut_direction.py b/tests/commands/json/test_cut_direction.py index c1411da27..e73476753 100644 --- a/tests/commands/json/test_cut_direction.py +++ b/tests/commands/json/test_cut_direction.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetCutDirection, SetCutDirection diff --git a/tests/commands/json/test_efficiency.py b/tests/commands/json/test_efficiency.py index d876c94e9..69e417114 100644 --- a/tests/commands/json/test_efficiency.py +++ b/tests/commands/json/test_efficiency.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_error.py b/tests/commands/json/test_error.py index 3703ff01b..639e6bad1 100644 --- a/tests/commands/json/test_error.py +++ b/tests/commands/json/test_error.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any import pytest diff --git a/tests/commands/json/test_fan_speed.py b/tests/commands/json/test_fan_speed.py index 6ab8287a9..1c5b1ff18 100644 --- a/tests/commands/json/test_fan_speed.py +++ b/tests/commands/json/test_fan_speed.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetFanSpeed, SetFanSpeed diff --git a/tests/commands/json/test_life_span.py b/tests/commands/json/test_life_span.py index b1b7ffeac..e04e146dd 100644 --- a/tests/commands/json/test_life_span.py +++ b/tests/commands/json/test_life_span.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_mop_auto_wash_frequency.py b/tests/commands/json/test_mop_auto_wash_frequency.py index 6f6d5a634..48b411c29 100644 --- a/tests/commands/json/test_mop_auto_wash_frequency.py +++ b/tests/commands/json/test_mop_auto_wash_frequency.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_moveup_warning.py b/tests/commands/json/test_moveup_warning.py index a3e380745..24c31a79f 100644 --- a/tests/commands/json/test_moveup_warning.py +++ b/tests/commands/json/test_moveup_warning.py @@ -1,7 +1,5 @@ """Tests regarding moveup warning commands.""" -from __future__ import annotations - import pytest from deebot_client.commands.json import GetMoveUpWarning, SetMoveUpWarning diff --git a/tests/commands/json/test_mulitmap_state.py b/tests/commands/json/test_mulitmap_state.py index 70d143882..502930845 100644 --- a/tests/commands/json/test_mulitmap_state.py +++ b/tests/commands/json/test_mulitmap_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetMultimapState, SetMultimapState diff --git a/tests/commands/json/test_network.py b/tests/commands/json/test_network.py index fcd9f18b4..058b8eb51 100644 --- a/tests/commands/json/test_network.py +++ b/tests/commands/json/test_network.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from deebot_client.commands.json import GetNetInfo, GetNetInfoLegacy from deebot_client.events import NetworkInfoEvent from tests.commands.json import assert_command diff --git a/tests/commands/json/test_ota.py b/tests/commands/json/test_ota.py index 6b3c45068..5bee7fd0d 100644 --- a/tests/commands/json/test_ota.py +++ b/tests/commands/json/test_ota.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetOta, SetOta diff --git a/tests/commands/json/test_pos.py b/tests/commands/json/test_pos.py index 3617e57c3..d413cb6e6 100644 --- a/tests/commands/json/test_pos.py +++ b/tests/commands/json/test_pos.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_safe_protect.py b/tests/commands/json/test_safe_protect.py index db6e72d5a..494f4ef1a 100644 --- a/tests/commands/json/test_safe_protect.py +++ b/tests/commands/json/test_safe_protect.py @@ -1,7 +1,5 @@ """Tests regarding safe protect commands.""" -from __future__ import annotations - import pytest from deebot_client.commands.json import GetSafeProtect, SetSafeProtect diff --git a/tests/commands/json/test_station_action.py b/tests/commands/json/test_station_action.py index 40bd0b227..78d4f33ed 100644 --- a/tests/commands/json/test_station_action.py +++ b/tests/commands/json/test_station_action.py @@ -1,7 +1,5 @@ """Auto empty tests.""" -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_station_state.py b/tests/commands/json/test_station_state.py index 37d13c4c5..951f3d607 100644 --- a/tests/commands/json/test_station_state.py +++ b/tests/commands/json/test_station_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_sweep_mode.py b/tests/commands/json/test_sweep_mode.py index 3392443f4..abb600670 100644 --- a/tests/commands/json/test_sweep_mode.py +++ b/tests/commands/json/test_sweep_mode.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetSweepMode, SetSweepMode diff --git a/tests/commands/json/test_true_detect.py b/tests/commands/json/test_true_detect.py index afbcf5255..64d6e7ce3 100644 --- a/tests/commands/json/test_true_detect.py +++ b/tests/commands/json/test_true_detect.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetTrueDetect, SetTrueDetect diff --git a/tests/commands/json/test_voice_assistant_state.py b/tests/commands/json/test_voice_assistant_state.py index f2a9172fb..f602c5722 100644 --- a/tests/commands/json/test_voice_assistant_state.py +++ b/tests/commands/json/test_voice_assistant_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetVoiceAssistantState, SetVoiceAssistantState diff --git a/tests/commands/json/test_volume.py b/tests/commands/json/test_volume.py index 480c4e433..5caad397e 100644 --- a/tests/commands/json/test_volume.py +++ b/tests/commands/json/test_volume.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.json import GetVolume, SetVolume diff --git a/tests/commands/json/test_water_info.py b/tests/commands/json/test_water_info.py index 274a74ac0..775e9213b 100644 --- a/tests/commands/json/test_water_info.py +++ b/tests/commands/json/test_water_info.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import re from typing import TYPE_CHECKING, Any diff --git a/tests/commands/json/test_work_mode.py b/tests/commands/json/test_work_mode.py index 9740457f8..5f8d56dca 100644 --- a/tests/commands/json/test_work_mode.py +++ b/tests/commands/json/test_work_mode.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/commands/json/test_work_state.py b/tests/commands/json/test_work_state.py index 64b83f9bf..d4307c410 100644 --- a/tests/commands/json/test_work_state.py +++ b/tests/commands/json/test_work_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any import pytest diff --git a/tests/commands/xml/__init__.py b/tests/commands/xml/__init__.py index 3e446f0cc..9c4a91ddf 100644 --- a/tests/commands/xml/__init__.py +++ b/tests/commands/xml/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any, cast from xml.etree.ElementTree import Element, SubElement diff --git a/tests/commands/xml/test_battery.py b/tests/commands/xml/test_battery.py index 551168454..dd8e37f60 100644 --- a/tests/commands/xml/test_battery.py +++ b/tests/commands/xml/test_battery.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_charge.py b/tests/commands/xml/test_charge.py index 2b693f89d..336a36f7d 100644 --- a/tests/commands/xml/test_charge.py +++ b/tests/commands/xml/test_charge.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.xml.charge import Charge diff --git a/tests/commands/xml/test_charge_state.py b/tests/commands/xml/test_charge_state.py index 8e417abd8..4cd21b4eb 100644 --- a/tests/commands/xml/test_charge_state.py +++ b/tests/commands/xml/test_charge_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_clean.py b/tests/commands/xml/test_clean.py index 445affe27..3dc2fabcc 100644 --- a/tests/commands/xml/test_clean.py +++ b/tests/commands/xml/test_clean.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_clean_logs.py b/tests/commands/xml/test_clean_logs.py index 3f6bc3297..3dce501d7 100644 --- a/tests/commands/xml/test_clean_logs.py +++ b/tests/commands/xml/test_clean_logs.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_clean_speed.py b/tests/commands/xml/test_clean_speed.py index e0238ad8f..3aa08cdf5 100644 --- a/tests/commands/xml/test_clean_speed.py +++ b/tests/commands/xml/test_clean_speed.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_common.py b/tests/commands/xml/test_common.py index 73e3cfe68..322cfa7f6 100644 --- a/tests/commands/xml/test_common.py +++ b/tests/commands/xml/test_common.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from types import MappingProxyType from typing import Any from unittest.mock import Mock, patch diff --git a/tests/commands/xml/test_error.py b/tests/commands/xml/test_error.py index c11064742..af8a96342 100644 --- a/tests/commands/xml/test_error.py +++ b/tests/commands/xml/test_error.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_life_span.py b/tests/commands/xml/test_life_span.py index 3e6dedc48..c1cf232a2 100644 --- a/tests/commands/xml/test_life_span.py +++ b/tests/commands/xml/test_life_span.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING from unittest.mock import patch diff --git a/tests/commands/xml/test_map.py b/tests/commands/xml/test_map.py index 0db2bbe30..2ac05e3c3 100644 --- a/tests/commands/xml/test_map.py +++ b/tests/commands/xml/test_map.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/commands/xml/test_play_sound.py b/tests/commands/xml/test_play_sound.py index 5d622f3d2..b04634b91 100644 --- a/tests/commands/xml/test_play_sound.py +++ b/tests/commands/xml/test_play_sound.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.xml import PlaySound diff --git a/tests/commands/xml/test_pos.py b/tests/commands/xml/test_pos.py index c15c644fd..b87ef1970 100644 --- a/tests/commands/xml/test_pos.py +++ b/tests/commands/xml/test_pos.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.commands.xml import GetPos diff --git a/tests/commands/xml/test_stats.py b/tests/commands/xml/test_stats.py index 6775baf88..81bed539c 100644 --- a/tests/commands/xml/test_stats.py +++ b/tests/commands/xml/test_stats.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/common.py b/tests/common.py index e87c31b8d..3ea24faf8 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio from typing import TYPE_CHECKING diff --git a/tests/conftest.py b/tests/conftest.py index d1f5d24b2..5d24cefd8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import logging from typing import TYPE_CHECKING from unittest.mock import AsyncMock, Mock diff --git a/tests/data/map/test_1.py b/tests/data/map/test_1.py index 8557e717a..e05108f7e 100644 --- a/tests/data/map/test_1.py +++ b/tests/data/map/test_1.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from deebot_client.events.map import ( CachedMapInfoEvent, MajorMapEvent, diff --git a/tests/data/map/test_2.py b/tests/data/map/test_2.py index be21241be..8844ff859 100644 --- a/tests/data/map/test_2.py +++ b/tests/data/map/test_2.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from deebot_client.events.map import ( MajorMapEvent, MapSetEvent, diff --git a/tests/data/map/test_3.py b/tests/data/map/test_3.py index 8ea22c310..d27e5202f 100644 --- a/tests/data/map/test_3.py +++ b/tests/data/map/test_3.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from deebot_client.events.map import ( CachedMapInfoEvent, Map, diff --git a/tests/data/map/test_4.py b/tests/data/map/test_4.py index ac04d7c4e..c21f03274 100644 --- a/tests/data/map/test_4.py +++ b/tests/data/map/test_4.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from deebot_client.events.map import ( MapInfoEvent, MapSetEvent, diff --git a/tests/events/test_events.py b/tests/events/test_events.py index ddb6ef7bf..63ed758b1 100644 --- a/tests/events/test_events.py +++ b/tests/events/test_events.py @@ -1,7 +1,5 @@ """Test events.""" -from __future__ import annotations - import pytest from deebot_client.events import LifeSpan diff --git a/tests/events/test_fan_speed.py b/tests/events/test_fan_speed.py index 00e48a9cf..9d6a3c097 100644 --- a/tests/events/test_fan_speed.py +++ b/tests/events/test_fan_speed.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import FanSpeedLevel diff --git a/tests/fixtures/base.py b/tests/fixtures/base.py index 91c75b0c8..0241f45a7 100644 --- a/tests/fixtures/base.py +++ b/tests/fixtures/base.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from abc import ABC, abstractmethod import contextlib from dataclasses import dataclass, field diff --git a/tests/fixtures/mqtt_server.py b/tests/fixtures/mqtt_server.py index b4e9b504a..058d054c4 100644 --- a/tests/fixtures/mqtt_server.py +++ b/tests/fixtures/mqtt_server.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from .base import BaseContainer, ContainerConfiguration diff --git a/tests/hardware/test_init.py b/tests/hardware/test_init.py index df3ea301c..db3309913 100644 --- a/tests/hardware/test_init.py +++ b/tests/hardware/test_init.py @@ -1,7 +1,5 @@ """Hardware init tests.""" -from __future__ import annotations - from pathlib import Path from typing import TYPE_CHECKING from unittest import mock diff --git a/tests/helpers/__init__.py b/tests/helpers/__init__.py index fb4e5e7ea..c6fd18e80 100644 --- a/tests/helpers/__init__.py +++ b/tests/helpers/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any from unittest.mock import Mock diff --git a/tests/helpers/tasks.py b/tests/helpers/tasks.py index 573778f4d..639ead22c 100644 --- a/tests/helpers/tasks.py +++ b/tests/helpers/tasks.py @@ -3,7 +3,6 @@ # How long to wait to log tasks that are blocking -from __future__ import annotations import asyncio from logging import getLogger diff --git a/tests/messages/__init__.py b/tests/messages/__init__.py index aa25f79d6..d3926dc33 100644 --- a/tests/messages/__init__.py +++ b/tests/messages/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from collections.abc import Sequence from typing import TYPE_CHECKING from unittest.mock import Mock, call diff --git a/tests/messages/json/__init__.py b/tests/messages/json/__init__.py index 84a7deebd..f76c4a0e8 100644 --- a/tests/messages/json/__init__.py +++ b/tests/messages/json/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.message import ( diff --git a/tests/messages/json/map/test_cached_map_info.py b/tests/messages/json/map/test_cached_map_info.py index d5496ff41..3872114e9 100644 --- a/tests/messages/json/map/test_cached_map_info.py +++ b/tests/messages/json/map/test_cached_map_info.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/messages/json/map/test_init.py b/tests/messages/json/map/test_init.py index 033ae1039..07277b91f 100644 --- a/tests/messages/json/map/test_init.py +++ b/tests/messages/json/map/test_init.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/messages/json/test_auto_empty.py b/tests/messages/json/test_auto_empty.py index 3ae7bc3f3..aaea0489b 100644 --- a/tests/messages/json/test_auto_empty.py +++ b/tests/messages/json/test_auto_empty.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/messages/json/test_battery.py b/tests/messages/json/test_battery.py index 755665422..b508e0853 100644 --- a/tests/messages/json/test_battery.py +++ b/tests/messages/json/test_battery.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import BatteryEvent, FirmwareEvent diff --git a/tests/messages/json/test_gps_position.py b/tests/messages/json/test_gps_position.py index d1bc8db3b..77bba5f7b 100644 --- a/tests/messages/json/test_gps_position.py +++ b/tests/messages/json/test_gps_position.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import FirmwareEvent, GpsPositionEvent diff --git a/tests/messages/json/test_station_state.py b/tests/messages/json/test_station_state.py index 9b180e767..95a673b08 100644 --- a/tests/messages/json/test_station_state.py +++ b/tests/messages/json/test_station_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/messages/json/test_stats.py b/tests/messages/json/test_stats.py index 61bb8a0d6..2aefa8b0f 100644 --- a/tests/messages/json/test_stats.py +++ b/tests/messages/json/test_stats.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any import pytest diff --git a/tests/messages/json/test_work_state.py b/tests/messages/json/test_work_state.py index a06948115..06b36bc17 100644 --- a/tests/messages/json/test_work_state.py +++ b/tests/messages/json/test_work_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING, Any import pytest diff --git a/tests/messages/test_get_messages.py b/tests/messages/test_get_messages.py index 2fdf95a7a..effc2e031 100644 --- a/tests/messages/test_get_messages.py +++ b/tests/messages/test_get_messages.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING import pytest diff --git a/tests/messages/test_messages.py b/tests/messages/test_messages.py index 554cfc9b6..01ba23813 100644 --- a/tests/messages/test_messages.py +++ b/tests/messages/test_messages.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from deebot_client.messages import MESSAGES diff --git a/tests/messages/xml/__init__.py b/tests/messages/xml/__init__.py index 039e769b7..485a4a1b3 100644 --- a/tests/messages/xml/__init__.py +++ b/tests/messages/xml/__init__.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import TYPE_CHECKING from deebot_client.message import ( diff --git a/tests/messages/xml/test_battery.py b/tests/messages/xml/test_battery.py index a707714b8..6ee200413 100644 --- a/tests/messages/xml/test_battery.py +++ b/tests/messages/xml/test_battery.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import BatteryEvent diff --git a/tests/messages/xml/test_charge_state.py b/tests/messages/xml/test_charge_state.py index f13140e94..fe1d48364 100644 --- a/tests/messages/xml/test_charge_state.py +++ b/tests/messages/xml/test_charge_state.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import Event, StateEvent diff --git a/tests/messages/xml/test_clean.py b/tests/messages/xml/test_clean.py index 12d61244a..8a05a1287 100644 --- a/tests/messages/xml/test_clean.py +++ b/tests/messages/xml/test_clean.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import ( diff --git a/tests/messages/xml/test_common.py b/tests/messages/xml/test_common.py index 7d7968548..c89ee4df5 100644 --- a/tests/messages/xml/test_common.py +++ b/tests/messages/xml/test_common.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from dataclasses import dataclass from typing import TYPE_CHECKING diff --git a/tests/messages/xml/test_map.py b/tests/messages/xml/test_map.py index 248c8e733..dbc1d72bc 100644 --- a/tests/messages/xml/test_map.py +++ b/tests/messages/xml/test_map.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import MapTraceEvent, MinorMapEvent diff --git a/tests/messages/xml/test_pos.py b/tests/messages/xml/test_pos.py index ac1fe3336..b977c1066 100644 --- a/tests/messages/xml/test_pos.py +++ b/tests/messages/xml/test_pos.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.events import Position, PositionsEvent diff --git a/tests/mqtt_util.py b/tests/mqtt_util.py index 83cd27acf..7d3ac972d 100644 --- a/tests/mqtt_util.py +++ b/tests/mqtt_util.py @@ -1,7 +1,5 @@ """Utilities for testing MQTT.""" -from __future__ import annotations - import asyncio import datetime from typing import TYPE_CHECKING diff --git a/tests/rs/test_map.py b/tests/rs/test_map.py index 494337ebe..10eca48e0 100644 --- a/tests/rs/test_map.py +++ b/tests/rs/test_map.py @@ -1,7 +1,5 @@ """Test rust map module.""" -from __future__ import annotations - import pytest from testfixtures import LogCapture diff --git a/tests/rs/test_util.py b/tests/rs/test_util.py index 70e49a5ff..55c4c1f37 100644 --- a/tests/rs/test_util.py +++ b/tests/rs/test_util.py @@ -1,7 +1,5 @@ """Test rust functions.""" -from __future__ import annotations - import base64 import lzma from typing import TYPE_CHECKING diff --git a/tests/test_authentication.py b/tests/test_authentication.py index ee43145cf..136650a0e 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio import time from typing import TYPE_CHECKING diff --git a/tests/test_command.py b/tests/test_command.py index 19c9bda99..8c2f9eee7 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import logging from types import MappingProxyType from typing import TYPE_CHECKING, Any diff --git a/tests/test_device.py b/tests/test_device.py index ada967f38..a5babf0b0 100644 --- a/tests/test_device.py +++ b/tests/test_device.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio from collections.abc import Callable from typing import TYPE_CHECKING diff --git a/tests/test_event_bus.py b/tests/test_event_bus.py index d2953a34e..e08a7b900 100644 --- a/tests/test_event_bus.py +++ b/tests/test_event_bus.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio from datetime import UTC, datetime from typing import TYPE_CHECKING diff --git a/tests/test_map.py b/tests/test_map.py index 05389a2e9..08ce78d73 100644 --- a/tests/test_map.py +++ b/tests/test_map.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio from typing import TYPE_CHECKING, cast from unittest.mock import ANY, AsyncMock, Mock, call, patch diff --git a/tests/test_message.py b/tests/test_message.py index 239ece8e3..3dde67cfb 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from unittest.mock import Mock import pytest diff --git a/tests/test_models.py b/tests/test_models.py index b079982a9..2d88cc37f 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.models import CleanAction, CleanMode diff --git a/tests/test_mqtt_client.py b/tests/test_mqtt_client.py index cc65ebab5..0556f58d7 100644 --- a/tests/test_mqtt_client.py +++ b/tests/test_mqtt_client.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio import datetime import logging diff --git a/tests/test_mqtt_client_reconnect.py b/tests/test_mqtt_client_reconnect.py index 2a47aab9c..b0d1e8751 100644 --- a/tests/test_mqtt_client_reconnect.py +++ b/tests/test_mqtt_client_reconnect.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio import logging from typing import TYPE_CHECKING diff --git a/tests/util/test_continents.py b/tests/util/test_continents.py index 94bebebc3..8fd5d185c 100644 --- a/tests/util/test_continents.py +++ b/tests/util/test_continents.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pycountry import pytest diff --git a/tests/util/test_countries.py b/tests/util/test_countries.py index 29e059b40..a3ce0ce31 100644 --- a/tests/util/test_countries.py +++ b/tests/util/test_countries.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.util.countries import get_ecovacs_country diff --git a/tests/util/test_enum.py b/tests/util/test_enum.py index 2511ef6e7..8f0b83bbd 100644 --- a/tests/util/test_enum.py +++ b/tests/util/test_enum.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest from deebot_client.util.enum import IntEnumWithXml, StrEnumWithXml diff --git a/tests/util/test_init.py b/tests/util/test_init.py index cbefe9267..a2a8f9406 100644 --- a/tests/util/test_init.py +++ b/tests/util/test_init.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import asyncio from typing import Any