From 8becce7c982a5ca132cf5d0a95e33844fccc47b7 Mon Sep 17 00:00:00 2001 From: Alena Volkova Date: Tue, 10 Oct 2017 00:54:49 -0400 Subject: [PATCH] mypy: zulip: Annotate integrations/svn/zulip_svn_config.py. --- tools/run-mypy | 1 - zulip/integrations/svn/zulip_svn_config.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/run-mypy b/tools/run-mypy index b5308a9..27ee50f 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -20,7 +20,6 @@ sys.path.append(os.path.dirname(TOOLS_DIR)) exclude = """ zulip/integrations/perforce/git_p4.py -zulip/integrations/svn/zulip_svn_config.py zulip/integrations/zephyr/process_ccache zulip/tests/__init__.py zulip/tests/test_default_arguments.py diff --git a/zulip/integrations/svn/zulip_svn_config.py b/zulip/integrations/svn/zulip_svn_config.py index 33cfc29..6a150e1 100644 --- a/zulip/integrations/svn/zulip_svn_config.py +++ b/zulip/integrations/svn/zulip_svn_config.py @@ -20,6 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. +from typing import Dict, Optional, Text # Change these values to configure authentication for the plugin ZULIP_USER = "svn-bot@example.com" @@ -40,6 +41,7 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef" # * stream "commits" # * topic "branch_name" def commit_notice_destination(path, commit): + # type: (Text, Text) -> Optional[Dict[Text, Text]] repo = path.split('/')[-1] if repo not in ["evil-master-plan", "my-super-secret-repository"]: return dict(stream = "commits",