This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch chiaratolentino/refactor-setup-remotes in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 79fbf28213f78f3e8ea76479bc423b870cfb9b12 Author: ctolentino8 <[email protected]> AuthorDate: Thu Nov 28 16:56:20 2019 +0000 _stream.py: Fix type annotation for artifact_url and source_url --- src/buildstream/_stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py index 176662d..ca7e0b0 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():
