Skip to content

Commit c979aa1

Browse files
committed
python2 type annotations
1 parent 7df8203 commit c979aa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/provenance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def declare_directory(self, value):
690690
return coll
691691

692692
def declare_string(self, value):
693-
# type: (Union[Text, str]) -> Tuple[ProvEntity,str]
693+
# type: (Union[Text, str]) -> Tuple[ProvEntity,Text]
694694

695695
# Save as string in UTF-8
696696
byte_s = io.BytesIO(str(value).encode(ENCODING))
@@ -700,7 +700,7 @@ def declare_string(self, value):
700700
data_id = "data:%s" % posixpath.split(data_file)[1]
701701
entity = self.document.entity(data_id,
702702
{provM.PROV_TYPE: WFPROV["Artifact"],
703-
provM.PROV_VALUE: str(value)})
703+
provM.PROV_VALUE: str(value)}) # type: ProvEntity
704704
return entity, checksum
705705

706706
def declare_artefact(self, value):

0 commit comments

Comments
 (0)