summaryrefslogtreecommitdiff
path: root/sphinx/util/jsdump.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r--sphinx/util/jsdump.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py
index 4b40c2bb9..5d8a32781 100644
--- a/sphinx/util/jsdump.py
+++ b/sphinx/util/jsdump.py
@@ -7,7 +7,7 @@ from __future__ import annotations
import re
import warnings
-from typing import IO, Any, Union
+from typing import IO, Any
from sphinx.deprecation import RemovedInSphinx70Warning
@@ -111,7 +111,7 @@ def loads(x: str) -> Any:
nothing = object()
i = 0
n = len(x)
- stack: list[Union[list, dict]] = []
+ stack: list[list | dict] = []
obj: Any = nothing
key = False
keys = []