From a72fa3e18cffe06cacbc4d66a4a927ae00447bd9 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Wed, 8 Mar 2023 14:15:53 +0100 Subject: [PATCH] Correct behavour for write --- src/xopen/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py index a49f894..ba7e618 100644 --- a/src/xopen/__init__.py +++ b/src/xopen/__init__.py @@ -268,8 +268,8 @@ def _open_process( process = Popen(program_args + extra_args, **kwargs) # type: ignore return process - def write(self, arg: AnyStr) -> None: - self._file.write(arg) + def write(self, arg: AnyStr) -> int: + return self._file.write(arg) def close(self) -> None: if self.closed: