@@ -312,7 +312,7 @@ def record_process_end(
312312 self .document .wasEndedBy (process_run_id , None , self .workflow_run_uri , when )
313313
314314 def _add_nested_annotations (
315- self , annotation_key , annotation_value , e : ProvEntity
315+ self , annotation_key : str , annotation_value : Any , e : ProvEntity
316316 ) -> ProvEntity :
317317 """Propagate input data annotations to provenance."""
318318 # Change https:// into http:// first
@@ -404,7 +404,7 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st
404404 # Transfer SCHEMA annotations to provenance
405405 for s in schema_annotations :
406406 if "additionalType" in s :
407- additional_type = schema_annotations [s ].split (sep = "/" )[
407+ additional_type = cast ( str , schema_annotations [s ]) .split (sep = "/" )[
408408 - 1
409409 ] # find better method?
410410 file_entity .add_attributes ({PROV_TYPE : SCHEMA [additional_type ]})
@@ -533,7 +533,7 @@ def declare_directory(self, value: CWLObjectType) -> ProvEntity:
533533 # Transfer SCHEMA annotations to provenance
534534 for s in schema_annotations :
535535 if "additionalType" in s :
536- additional_type = schema_annotations [s ].split (sep = "/" )[
536+ additional_type = cast ( str , schema_annotations [s ]) .split (sep = "/" )[
537537 - 1
538538 ] # find better method?
539539 coll .add_attributes ({PROV_TYPE : SCHEMA [additional_type ]})
0 commit comments