Skip to content

Commit fe6b706

Browse files
committed
fix mypy typing
1 parent a57b2a4 commit fe6b706

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cwltool/cwlprov/ro.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from collections.abc import MutableMapping, MutableSequence
1111
from pathlib import Path, PurePosixPath
1212
from socket import getfqdn
13-
from typing import IO, Any, Optional, Union, cast
13+
from typing import TYPE_CHECKING, IO, Any, Optional, Union, cast
1414

1515
import prov.model as provM
1616
from prov.model import ProvDocument
@@ -47,6 +47,8 @@
4747
WORKFLOW,
4848
Hasher,
4949
)
50+
if TYPE_CHECKING:
51+
from .provenance_profile import ProvenanceProfile
5052

5153

5254
class ResearchObject:
@@ -92,7 +94,7 @@ def initialize_provenance(
9294
orcid: str,
9395
fsaccess: StdFsAccess,
9496
run_uuid: Optional[uuid.UUID] = None,
95-
):
97+
) -> "ProvenanceProfile":
9698
"""Hook function allowing calling code to extend the provenance details if needed."""
9799
from .provenance_profile import ProvenanceProfile
98100

0 commit comments

Comments
 (0)