summaryrefslogtreecommitdiff
path: root/sphinx/util/jsdump.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:43:59 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:48:39 +0000
commit14a9289d780240bbce78ad3640e8e1b1b12df43f (patch)
treefd753f5b0f8c7053923b78c8fef2b90b60f9c7fa /sphinx/util/jsdump.py
parent26f79b0d2dd88b353ac65623897bdfbe8bc07cab (diff)
downloadsphinx-git-14a9289d780240bbce78ad3640e8e1b1b12df43f.tar.gz
Use PEP 604 types
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 = []