daemon: updated core.scripts and core.xml to avoid using deprecated type hinting

This commit is contained in:
Blake Harnden 2023-04-13 13:27:22 -07:00
parent 7ea950f8ec
commit f9505b3173
5 changed files with 26 additions and 27 deletions

View file

@ -1,6 +1,6 @@
import os
import socket
from typing import TYPE_CHECKING, List, Tuple
from typing import TYPE_CHECKING
import netaddr
from lxml import etree
@ -78,7 +78,7 @@ def get_address_type(address: str) -> str:
return address_type
def get_ipv4_addresses(hostname: str) -> List[Tuple[str, str]]:
def get_ipv4_addresses(hostname: str) -> list[tuple[str, str]]:
if hostname == "localhost":
addresses = []
args = f"{IP} -o -f inet address show"