Commit 941a1135 authored by Christophe Benz's avatar Christophe Benz
Browse files

Fix methods signatures

parent 9df1a323
......@@ -12,7 +12,7 @@ class PDFRenderer(ABC):
"""Abstract PDF renderer."""
@abstractmethod
def render(url: str) -> bytes:
def render(self, url: str) -> bytes:
"""Render a PDF document content from given URL."""
pass
......@@ -37,7 +37,7 @@ class BrowserlessPDFRenderer(PDFRenderer):
self.api_url = api_url
self.api_token = api_token
def render(self, url: str):
def render(self, url: str) -> bytes:
headers = {
"Cache-Control": "no-cache",
"Content-Type": "application/json",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment