From d2ebdf09c400a69ed2a2bccf01ebe2f226dd0599 Mon Sep 17 00:00:00 2001 From: Nazanin Donyapour Date: Wed, 18 Oct 2023 16:48:26 -0400 Subject: [PATCH] fix the pickling error for IO objects --- cwltool/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwltool/context.py b/cwltool/context.py index e76c7dad6a..ba80960f2c 100644 --- a/cwltool/context.py +++ b/cwltool/context.py @@ -199,7 +199,7 @@ def __init__(self, kwargs: Optional[Dict[str, Any]] = None) -> None: self.default_stdout: Optional[Union[IO[bytes], TextIO]] = None self.default_stderr: Optional[Union[IO[bytes], TextIO]] = None self.validate_only: bool = False - self.validate_stdout: Union[IO[bytes], TextIO, IO[str]] = sys.stdout + self.validate_stdout: Optional[Union[IO[bytes], TextIO, IO[str]]] = None super().__init__(kwargs) if self.tmp_outdir_prefix == "": self.tmp_outdir_prefix = self.tmpdir_prefix