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:
@@ -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
|
||||
|
Reference in New Issue
Block a user