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: