Skip to content

Commit

Permalink
Make writer and output optional params of generate
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb authored and WhyNotHugo committed Jul 9, 2024
1 parent bf627b4 commit 76ce2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions barcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 76ce2b4

Please sign in to comment.