mirror of
https://github.com/esphome/esphome.git
synced 2025-09-10 07:12:21 +01:00
update minimal python version to 3.10 (#8850)
This commit is contained in:
@@ -6,7 +6,6 @@ from pathlib import Path
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
from typing import Union
|
||||
|
||||
from esphome import const
|
||||
|
||||
@@ -162,7 +161,7 @@ class RedirectText:
|
||||
|
||||
def run_external_command(
|
||||
func, *cmd, capture_stdout: bool = False, filter_lines: str = None
|
||||
) -> Union[int, str]:
|
||||
) -> int | str:
|
||||
"""
|
||||
Run a function from an external package that acts like a main method.
|
||||
|
||||
|
Reference in New Issue
Block a user