Skip to content

Commit f0a3eb1

Browse files
committed
improve types and fix import loop
1 parent 43dea54 commit f0a3eb1

File tree

11 files changed

+1954
-1798
lines changed

11 files changed

+1954
-1798
lines changed

cwltool/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
)
4545

4646
if TYPE_CHECKING:
47-
from .provenance import ProvenanceProfile # pylint: disable=unused-import
47+
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import
4848
from .pathmapper import PathMapper
4949

5050

cwltool/command_line_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
)
8080

8181
if TYPE_CHECKING:
82-
from .provenance import ProvenanceProfile # pylint: disable=unused-import
82+
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import
8383

8484
ACCEPTLIST_EN_STRICT_RE = re.compile(r"^[a-zA-Z0-9._+-]+$")
8585
ACCEPTLIST_EN_RELAXED_RE = re.compile(r".*") # Accept anything

cwltool/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from .process import Process
2222
from .provenance import (
2323
ResearchObject, # pylint: disable=unused-import
24-
ProvenanceProfile,
2524
)
25+
from .provenance_profile import ProvenanceProfile
2626

2727

2828
class ContextBase(object):

cwltool/executors.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
from .loghandler import _logger
3333
from .mutation import MutationManager
3434
from .process import Process, cleanIntermediate, relocateOutputs
35-
from .provenance import ProvenanceProfile
35+
from .provenance_profile import ProvenanceProfile
3636
from .utils import DEFAULT_TMP_PREFIX, CWLObjectType, JobsType
37-
from .workflow import Workflow, WorkflowJob, WorkflowJobStep
37+
from .workflow import Workflow
38+
from .workflow_job import WorkflowJob, WorkflowJobStep
3839

3940
TMPDIR_LOCK = Lock()
4041

cwltool/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
)
6262

6363
if TYPE_CHECKING:
64-
from .provenance import ProvenanceProfile # pylint: disable=unused-import
64+
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import
6565
needs_shell_quoting_re = re.compile(r"""(^$|[\s|&;()<>\'"$@])""")
6666

6767
FORCE_SHELLED_POPEN = os.getenv("CWLTOOL_FORCE_SHELL_POPEN", "0") == "1"

cwltool/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
from .validate_js import validate_js_expressions
7373

7474
if TYPE_CHECKING:
75-
from .provenance import ProvenanceProfile # pylint: disable=unused-import
75+
from .provenance_profile import ProvenanceProfile # pylint: disable=unused-import
7676

7777

7878
class LogAsDebugFilter(logging.Filter):

0 commit comments

Comments
 (0)