mirror of
https://github.com/Eledio/superfaktura-client.git
synced 2025-11-01 08:28:25 +01:00
save_temporary_file_as_pdf: fix method
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import tempfile
|
||||
from typing import IO
|
||||
|
||||
|
||||
def save_temporary_file_as_pdf(
|
||||
temp_file: IO[bytes], output_path: str = "output.pdf"
|
||||
input_data: bytes, output_path: str = "output.pdf"
|
||||
) -> None:
|
||||
with open(output_path, "wb") as f:
|
||||
f.write(temp_file.read())
|
||||
temp_file.close()
|
||||
f.write(input_data)
|
||||
|
||||
Reference in New Issue
Block a user