cleaned up a few loose imports no longer needed and commented out code
This commit is contained in:
@ -53,11 +53,6 @@ def check_type(variable:Any, expected_type:Type, alt_types:List[Type]=[],
|
||||
if get_origin(expected_type) is Union:
|
||||
type_list = list(get_args(expected_type))
|
||||
type_list = type_list + alt_types
|
||||
# # If we have any types from typing, then update to allow checks against
|
||||
# # their base types too
|
||||
# for t in type_list:
|
||||
# if get_origin(t):
|
||||
# type_list.append(get_origin(t))
|
||||
|
||||
# Only accept None if explicitly allowed
|
||||
if variable is None:
|
||||
|
@ -17,7 +17,7 @@ from core.correctness.vars import VALID_VARIABLE_NAME_CHARS, PYTHON_FUNC, \
|
||||
EVENT_RULE, EVENT_PATH, JOB_TYPE_PYTHON, WATCHDOG_HASH, JOB_PARAMETERS, \
|
||||
PYTHON_OUTPUT_DIR, JOB_ID, WATCHDOG_BASE, META_FILE, \
|
||||
PARAMS_FILE, JOB_STATUS, STATUS_QUEUED, EVENT_TYPE, EVENT_RULE, \
|
||||
get_job_file, get_base_file, get_result_file
|
||||
get_base_file
|
||||
from core.functionality import print_debug, create_job, replace_keywords, \
|
||||
make_dir, write_yaml, write_file, lines_to_string, read_file_lines
|
||||
from core.meow import BaseRecipe, BaseHandler
|
||||
|
Reference in New Issue
Block a user