Skip to content

Commit

Permalink
fix mypy typing
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Dec 9, 2024
1 parent a57b2a4 commit fe6b706
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cwltool/cwlprov/ro.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from collections.abc import MutableMapping, MutableSequence
from pathlib import Path, PurePosixPath
from socket import getfqdn
from typing import IO, Any, Optional, Union, cast
from typing import TYPE_CHECKING, IO, Any, Optional, Union, cast

import prov.model as provM
from prov.model import ProvDocument
Expand Down Expand Up @@ -47,6 +47,8 @@
WORKFLOW,
Hasher,
)
if TYPE_CHECKING:
from .provenance_profile import ProvenanceProfile


class ResearchObject:
Expand Down Expand Up @@ -92,7 +94,7 @@ def initialize_provenance(
orcid: str,
fsaccess: StdFsAccess,
run_uuid: Optional[uuid.UUID] = None,
):
) -> "ProvenanceProfile":
"""Hook function allowing calling code to extend the provenance details if needed."""
from .provenance_profile import ProvenanceProfile

Expand Down

0 comments on commit fe6b706

Please sign in to comment.