From 58d0ac7f21c5f978365349444a7b2001e544f908 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Tue, 21 May 2024 09:39:47 +0200 Subject: [PATCH] Remove future import to fix broken typing.get_type_hints call (#117837) --- homeassistant/helpers/config_validation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/config_validation.py b/homeassistant/helpers/config_validation.py index 1e9d98264d8..978057180c1 100644 --- a/homeassistant/helpers/config_validation.py +++ b/homeassistant/helpers/config_validation.py @@ -1,6 +1,8 @@ """Helpers for config validation using voluptuous.""" -from __future__ import annotations +# PEP 563 seems to break typing.get_type_hints when used +# with PEP 695 syntax. Fixed in Python 3.13. +# from __future__ import annotations from collections.abc import Callable, Hashable import contextlib