1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

update minimal python version to 3.10 (#8850)

This commit is contained in:
Thomas Rupprecht
2025-05-22 03:21:43 +02:00
committed by GitHub
parent 026f47bfb3
commit aeb4e63950
36 changed files with 148 additions and 166 deletions

View File

@@ -1,19 +1,18 @@
"""This helper module tracks commonly used types in the esphome python codebase."""
from typing import Union
from esphome.core import ID, EsphomeCore, Lambda
ConfigFragmentType = Union[
str,
int,
float,
None,
dict[Union[str, int], "ConfigFragmentType"],
list["ConfigFragmentType"],
ID,
Lambda,
]
ConfigFragmentType = (
str
| int
| float
| None
| dict[str | int, "ConfigFragmentType"]
| list["ConfigFragmentType"]
| ID
| Lambda
)
ConfigType = dict[str, ConfigFragmentType]
CoreType = EsphomeCore
ConfigPathType = Union[str, int]
ConfigPathType = str | int