From 554199d30e418f72f215fae65924b47249d2544c Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Fri, 3 Mar 2017 12:19:09 +0900 Subject: Upgrade to mypy-0.5 --- sphinx/util/jsdump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sphinx/util/jsdump.py') diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py index 592a4565f..9f3b83adf 100644 --- a/sphinx/util/jsdump.py +++ b/sphinx/util/jsdump.py @@ -18,7 +18,7 @@ from sphinx.util.pycompat import u if False: # For type annotation - from typing import Any, IO, Match, Union # NOQA + from typing import Any, Dict, IO, List, Match, Union # NOQA _str_re = re.compile(r'"(\\\\|\\"|[^"])*"') _int_re = re.compile(r'\d+') @@ -124,7 +124,7 @@ def loads(x): i = 0 n = len(x) stack = [] # type: List[Union[List, Dict]] - obj = nothing + obj = nothing # type: Any key = False keys = [] while i < n: -- cgit v1.2.1