First round of CI codestyle fixes

This commit is contained in:
ChrisTerBeke 2019-08-02 15:26:24 +02:00
parent 1fa5628cb2
commit e7fdd02b6f
5 changed files with 12 additions and 10 deletions

View file

@ -1,4 +1,4 @@
from typing import List
from typing import List, Optional
from UM.FileHandler.FileHandler import FileHandler
from UM.FileHandler.WriteFileJob import WriteFileJob
@ -12,7 +12,7 @@ from .MeshFormatHandler import MeshFormatHandler
## Job that exports the build plate to the correct file format for the target cluster.
class ExportFileJob(WriteFileJob):
def __init__(self, file_handler: FileHandler, nodes: List[SceneNode], firmware_version: str) -> None:
def __init__(self, file_handler: Optional[FileHandler], nodes: List[SceneNode], firmware_version: str) -> None:
self._mesh_format_handler = MeshFormatHandler(file_handler, firmware_version)
if not self._mesh_format_handler.is_valid: