From 76ce2b47b782de631361371247a245b762596630 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 8 Jul 2024 19:55:42 +0200 Subject: [PATCH] Make writer and output optional params of generate --- barcode/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/barcode/__init__.py b/barcode/__init__.py index 822c13e..1a16b4e 100755 --- a/barcode/__init__.py +++ b/barcode/__init__.py @@ -115,8 +115,8 @@ def get_class(name: str) -> type[Barcode]: def generate( name: str, code: str, - writer: BaseWriter | None, - output: str | os.PathLike | BinaryIO, + writer: BaseWriter | None = None, + output: str | os.PathLike | BinaryIO | None = None, writer_options: dict | None = None, text: str | None = None, ) -> str | None: