Skip to content

Commit 6a5705c

Browse files
committed
WIP last commit for today, to be continued tomorrow
1 parent 6eb6ec2 commit 6a5705c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

autosubmit/job/job_list.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from pathlib import Path
2626
from shutil import move
2727
from 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

3030
from autosubmitconfigparser.config.basicconfig import BasicConfig
3131
from autosubmitconfigparser.config.configcommon import AutosubmitConfig
@@ -42,6 +42,8 @@
4242
from autosubmit.job.job_utils import Dependency, _get_submitter
4343
from autosubmit.job.job_utils import transitive_reduction
4444
from log.log import AutosubmitCritical, AutosubmitError, Log
45+
if TYPE_CHECKING:
46+
from autosubmit.job.job_list_persistence import JobListPersistence
4547

4648

4749
class 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

Comments
 (0)