pipeline: drop redundant default arg value

Drop the default argument value for `output_directory`, but use
type-annotations to make clear it can be optional.
This commit is contained in:
David Rheinsberg 2020-05-29 09:15:52 +02:00
parent a300b755ab
commit fe6e58aa12

View file

@ -3,6 +3,7 @@ import hashlib
import json
import os
import tempfile
from typing import Optional
from .api import API
from . import buildroot
@ -283,7 +284,7 @@ class Pipeline:
return results, build_tree, tree
def assemble(self, object_store, build_tree, tree, interactive, libdir, output_directory=None):
def assemble(self, object_store, build_tree, tree, interactive, libdir, output_directory: Optional[str]):
results = {"success": True}
if not self.assembler: