diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-10 00:32:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 00:32:26 +0900 |
commit | fe6d95e4294f47d61f1a04a1f8c6567c9802f504 (patch) | |
tree | 33a7143bf1dcf60830c2e1fcd4b396175af45e64 /sphinx/util/jsdump.py | |
parent | 7327e56dff865d4766c43d46405ae827e10fd6c3 (diff) | |
parent | ce5d66e618c111b115a9bb7b1401a26483fcfa8f (diff) | |
download | sphinx-git-fe6d95e4294f47d61f1a04a1f8c6567c9802f504.tar.gz |
Merge branch 'master' into patch-1
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r-- | sphinx/util/jsdump.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py index 114fd7075..6d534cb3a 100644 --- a/sphinx/util/jsdump.py +++ b/sphinx/util/jsdump.py @@ -109,8 +109,8 @@ def loads(x: str) -> Any: nothing = object() i = 0 n = len(x) - stack = [] # type: List[Union[List, Dict]] - obj = nothing # type: Any + stack: List[Union[List, Dict]] = [] + obj: Any = nothing key = False keys = [] while i < n: @@ -160,7 +160,7 @@ def loads(x: str) -> Any: raise ValueError("multiple values") key = False else: - y = None # type: Any + y: Any = None m = _str_re.match(x, i) if m: y = decode_string(m.group()[1:-1]) |