@@ -107,7 +107,7 @@ def will_extract(self) -> bool:
107107 return self .parameters .jpeg_preview == flags .JPEGPreview .EXTRACT
108108
109109 async def _write_thumbnail (
110- self , * , job : dngconverter .DNGJob = None , image_bytes = None , log = None , ** kwargs
110+ self , * , job : Optional [ dngconverter .DNGJob ] = None , image_bytes = None , log = None , ** kwargs
111111 ):
112112 """Writes thumbnail from bytes extracted from raw image.
113113
@@ -129,7 +129,7 @@ def _write(image_blob, img_dest):
129129 log .info ("[bold cyan]wrote thumbnail:[/][bold white] %s[/]" , job .thumbnail_filename )
130130
131131 async def extract_thumbnail (
132- self , * , job : dngconverter .DNGJob = None , log = None , ** kwargs
132+ self , * , job : Optional [ dngconverter .DNGJob ] = None , log = None , ** kwargs
133133 ) -> Path :
134134 """Extract jpeg thumbnail from exif data.
135135
@@ -168,7 +168,11 @@ async def extract_thumbnail(
168168 return job .thumbnail_destination
169169
170170 async def convert_file (
171- self , * , destination : str = None , job : dngconverter .DNGJob = None , log = None
171+ self ,
172+ * ,
173+ destination : Optional [str ] = None ,
174+ job : Optional [dngconverter .DNGJob ] = None ,
175+ log = None ,
172176 ):
173177 """Execute provided conversion job.
174178
0 commit comments