mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[core] Drop Python 3.11 support (#17280)
This commit is contained in:
@@ -24,7 +24,7 @@ import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import tempfile
|
||||
from typing import Any, TypeVar
|
||||
from typing import Any
|
||||
from urllib.parse import urlparse, urlsplit, urlunsplit
|
||||
|
||||
from esphome import git
|
||||
@@ -195,10 +195,7 @@ class LibraryBackend:
|
||||
emit: Callable[["ConvertedLibrary"], None]
|
||||
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
def ensure_list(obj: T | list[T]) -> list[T]:
|
||||
def ensure_list[T](obj: T | list[T]) -> list[T]:
|
||||
"""
|
||||
Convert an object to a list if it isn't already a list.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user