You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:35:38 UTC
[buildstream] 06/15: testing: Fix type annotation error that mypy
didn't catch
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch bschubert/standardize-source-tests
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 09fca56c4f216c1845f90155d216534582f3bf0a
Author: Benjamin Schubert <co...@benschubert.me>
AuthorDate: Sun Oct 11 12:30:43 2020 +0000
testing: Fix type annotation error that mypy didn't catch
---
src/buildstream/testing/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/buildstream/testing/__init__.py b/src/buildstream/testing/__init__.py
index 19c19a6..7e9f009 100644
--- a/src/buildstream/testing/__init__.py
+++ b/src/buildstream/testing/__init__.py
@@ -21,6 +21,7 @@ This package contains various utilities which make it easier to test plugins.
import os
from collections import OrderedDict
+from typing import Tuple
from buildstream.exceptions import ErrorDomain, LoadErrorReason
from ._yaml import generate_project, generate_element, load_yaml
from .repo import Repo
@@ -47,7 +48,7 @@ except ImportError:
# Of the form plugin_name -> (repo_class, plugin_package)
-ALL_REPO_KINDS = OrderedDict() # type: OrderedDict[Repo, str]
+ALL_REPO_KINDS = OrderedDict() # type: OrderedDict[str, Tuple[Repo, str]]
def create_repo(kind, directory, subdir="repo"):