@@ -312,7 +312,7 @@ def record_process_end(
312
312
self .document .wasEndedBy (process_run_id , None , self .workflow_run_uri , when )
313
313
314
314
def _add_nested_annotations (
315
- self , annotation_key , annotation_value , e : ProvEntity
315
+ self , annotation_key : str , annotation_value : Any , e : ProvEntity
316
316
) -> ProvEntity :
317
317
"""Propagate input data annotations to provenance."""
318
318
# Change https:// into http:// first
@@ -404,7 +404,7 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st
404
404
# Transfer SCHEMA annotations to provenance
405
405
for s in schema_annotations :
406
406
if "additionalType" in s :
407
- additional_type = schema_annotations [s ].split (sep = "/" )[
407
+ additional_type = cast ( str , schema_annotations [s ]) .split (sep = "/" )[
408
408
- 1
409
409
] # find better method?
410
410
file_entity .add_attributes ({PROV_TYPE : SCHEMA [additional_type ]})
@@ -533,7 +533,7 @@ def declare_directory(self, value: CWLObjectType) -> ProvEntity:
533
533
# Transfer SCHEMA annotations to provenance
534
534
for s in schema_annotations :
535
535
if "additionalType" in s :
536
- additional_type = schema_annotations [s ].split (sep = "/" )[
536
+ additional_type = cast ( str , schema_annotations [s ]) .split (sep = "/" )[
537
537
- 1
538
538
] # find better method?
539
539
coll .add_attributes ({PROV_TYPE : SCHEMA [additional_type ]})
0 commit comments