summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorctolentino8 <ctolentino8@bloomberg.net>2019-11-28 16:56:20 +0000
committerctolentino8 <ctolentino8@bloomberg.net>2019-11-28 17:17:09 +0000
commit79fbf28213f78f3e8ea76479bc423b870cfb9b12 (patch)
tree2f2b287cbe587e1a049d9d531e1f0251b79f86db
parent0f49b11944bcb58a9e2ac5dde2b1e5f329e3d22a (diff)
downloadbuildstream-chiaratolentino/refactor-setup-remotes.tar.gz
_stream.py: Fix type annotation for artifact_url and source_urlchiaratolentino/refactor-setup-remotes
-rw-r--r--src/buildstream/_stream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 176662d1c..ca7e0b0d8 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -29,7 +29,7 @@ import tempfile
from contextlib import contextmanager, suppress
from fnmatch import fnmatch
from collections import deque
-from typing import List, Tuple
+from typing import List, Tuple, Optional
from ._artifactelement import verify_artifact_ref, ArtifactElement
from ._exceptions import StreamError, ImplError, BstError, ArtifactElementError, ArtifactError
@@ -1137,7 +1137,7 @@ class Stream:
# source_url - The url of the source server to connect to.
#
def __connect_remotes(
- self, artifact_url: str, source_url: str
+ self, artifact_url: Optional[str], source_url: Optional[str]
):
# ArtifactCache.setup_remotes expects all projects to be fully loaded
for project in self._context.get_projects():