fix(ble_log_console): resolve mypy errors for Python <3.10 compatibility

Add 'from __future__ import annotations' to defer annotation evaluation,
replace @dataclass(slots=True) with @dataclass, use typing.Union for
runtime type aliases, and suppress textual Screen metaclass false positive.
This commit is contained in:
Zhou Xiao
2026-04-07 16:07:59 +08:00
parent 24a45a173f
commit ffd7a6c649
9 changed files with 138 additions and 70 deletions
@@ -1,5 +1,6 @@
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from unittest.mock import patch