summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_stream.py')
-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():