From 00dbd265009565ddfdfa5547b757ac31dc492511 Mon Sep 17 00:00:00 2001 From: Jordan Gedney Date: Mon, 22 May 2017 13:44:45 -0400 Subject: [PATCH] mypy: PySvn Client.Log returns a dictionary mapping to many different types. --- integrations/svn/post-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/svn/post-commit b/integrations/svn/post-commit index ca549a8..9c44c5d 100755 --- a/integrations/svn/post-commit +++ b/integrations/svn/post-commit @@ -57,7 +57,7 @@ path, rev = sys.argv[1:] # type: Tuple[Text, Text] # since its a local path, prepend "file://" path = "file://" + path -entry = svn.log(path, revision_end=pysvn.Revision(pysvn.opt_revision_kind.number, rev))[0] # type: Dict[Text, Union[Text, pysvn.Revision, List[Dict[Text, pysvn.Revision]]]] +entry = svn.log(path, revision_end=pysvn.Revision(pysvn.opt_revision_kind.number, rev))[0] # type: Dict[Text, Any] message = "**{0}** committed revision r{1} to `{2}`.\n\n> {3}".format( entry['author'], rev,