You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by be...@apache.org on 2022/01/12 18:31:11 UTC

[buildstream] 01/02: testing: Fix type annotation error that mypy didn't catch

This is an automated email from the ASF dual-hosted git repository.

benschubert pushed a commit to branch bschubert/misc-cleanups
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit c7be7ebd5a6dcacc66700d76aa5c156ca51bc428
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 3474ded..2128179 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"):