2525from pathlib import Path
2626from shutil import move
2727from time import strftime , localtime , mktime
28- from typing import List , Dict , Tuple , Any , Optional , Union
28+ from typing import List , Dict , Tuple , Any , Optional , Union , TYPE_CHECKING
2929
3030from autosubmitconfigparser .config .basicconfig import BasicConfig
3131from autosubmitconfigparser .config .configcommon import AutosubmitConfig
4242from autosubmit .job .job_utils import Dependency , _get_submitter
4343from autosubmit .job .job_utils import transitive_reduction
4444from log .log import AutosubmitCritical , AutosubmitError , Log
45+ if TYPE_CHECKING :
46+ from autosubmit .job .job_list_persistence import JobListPersistence
4547
4648
4749class JobList (object ):
@@ -50,7 +52,7 @@ class JobList(object):
5052
5153 """
5254
53- def __init__ (self , expid , config , parser_factory , job_list_persistence ):
55+ def __init__ (self , expid , config , parser_factory , job_list_persistence : 'JobListPersistence' ):
5456 self ._persistence_path = os .path .join (BasicConfig .LOCAL_ROOT_DIR , expid , "pkl" )
5557 self ._update_file = "updated_list_" + expid + ".txt"
5658 self ._failed_file = "failed_job_list_" + expid + ".pkl"
0 commit comments