Python3.9 friendliness

This commit is contained in:
Jim Shepich III 2026-02-06 00:45:46 -05:00
parent 1d414f8882
commit e0bee5292d

View File

@ -6,11 +6,12 @@ import logging
from dotmap import DotMap from dotmap import DotMap
from typing import Optional from typing import Optional
from datetime import date, datetime from datetime import date, datetime
from typing import Union
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def run(cmd: list|str, log_errors = True, debug = True) -> tuple: def run(cmd: Union[list,str], log_errors = True, debug = True) -> tuple:
if isinstance(cmd, str): if isinstance(cmd, str):
cmd = cmd.split(' ') cmd = cmd.split(' ')