Update typing 01 (#48013)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
"""Start Home Assistant."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
import threading
|
||||
from typing import List
|
||||
|
||||
from homeassistant.const import REQUIRED_PYTHON_VER, RESTART_EXIT_CODE, __version__
|
||||
|
||||
@@ -206,7 +207,7 @@ def closefds_osx(min_fd: int, max_fd: int) -> None:
|
||||
pass
|
||||
|
||||
|
||||
def cmdline() -> List[str]:
|
||||
def cmdline() -> list[str]:
|
||||
"""Collect path and arguments to re-execute the current hass instance."""
|
||||
if os.path.basename(sys.argv[0]) == "__main__.py":
|
||||
modulepath = os.path.dirname(sys.argv[0])
|
||||
|
||||
Reference in New Issue
Block a user