Python3.9 friendliness
This commit is contained in:
parent
1d414f8882
commit
e0bee5292d
@ -6,11 +6,12 @@ import logging
|
||||
from dotmap import DotMap
|
||||
from typing import Optional
|
||||
from datetime import date, datetime
|
||||
from typing import Union
|
||||
|
||||
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):
|
||||
cmd = cmd.split(' ')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user