mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
mypy: PySvn Client.Log returns a dictionary mapping to many different types.
This commit is contained in:
committed by
Tim Abbott
parent
510b7a0489
commit
2c21c26b50
@@ -57,7 +57,7 @@ path, rev = sys.argv[1:] # type: Tuple[Text, Text]
|
|||||||
# since its a local path, prepend "file://"
|
# since its a local path, prepend "file://"
|
||||||
path = "file://" + path
|
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(
|
message = "**{0}** committed revision r{1} to `{2}`.\n\n> {3}".format(
|
||||||
entry['author'],
|
entry['author'],
|
||||||
rev,
|
rev,
|
||||||
|
|||||||
Reference in New Issue
Block a user