Skip to content

Commit

Permalink
Adds more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Jun 18, 2024
1 parent cda6d3d commit 8e8baef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gotenberg_client/_convert/libre_office.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def no_merge(self) -> Self:
self._result_is_zip = True
return self

def run(self) -> Union[SingleFileResponse, ZipFileResponse]: # type: ignore[override], pragma: no cover
def run(self) -> Union[SingleFileResponse, ZipFileResponse]: # type: ignore[override]
resp = super().run()

if self._result_is_zip:
Expand Down
3 changes: 2 additions & 1 deletion src/gotenberg_client/_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from gotenberg_client._base import BaseApi
from gotenberg_client._base import BaseZipFileResponseRoute
from gotenberg_client._types import Self


class MergeRoute(BaseZipFileResponseRoute):
Expand All @@ -19,7 +20,7 @@ def __init__(self, client: Client, api_route: str) -> None:
super().__init__(client, api_route)
self._next = 1

def merge(self, files: List[Path]) -> "MergeRoute":
def merge(self, files: List[Path]) -> Self:
"""
Adds the given files into the file mapping. This method will maintain the
ordering of the list. Calling this method multiple times may not merge
Expand Down

0 comments on commit 8e8baef

Please sign in to comment.