Skip to content

Commit 76ce2b4

Browse files
maresbWhyNotHugo
authored andcommitted
Make writer and output optional params of generate
1 parent bf627b4 commit 76ce2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

barcode/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def get_class(name: str) -> type[Barcode]:
115115
def generate(
116116
name: str,
117117
code: str,
118-
writer: BaseWriter | None,
119-
output: str | os.PathLike | BinaryIO,
118+
writer: BaseWriter | None = None,
119+
output: str | os.PathLike | BinaryIO | None = None,
120120
writer_options: dict | None = None,
121121
text: str | None = None,
122122
) -> str | None:

0 commit comments

Comments
 (0)