diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-12-30 21:13:29 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-01 20:48:38 +0000 |
commit | 26f79b0d2dd88b353ac65623897bdfbe8bc07cab (patch) | |
tree | 0d2f0c752cf1f49a45cde1d7f414d75a6114f1ce /sphinx/transforms/references.py | |
parent | f4c8a0a68e0013808d169357c9f77ebdf19d0f4e (diff) | |
download | sphinx-git-26f79b0d2dd88b353ac65623897bdfbe8bc07cab.tar.gz |
Use PEP 595 types
Diffstat (limited to 'sphinx/transforms/references.py')
-rw-r--r-- | sphinx/transforms/references.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/transforms/references.py b/sphinx/transforms/references.py index 0d520e026..49b8d2f8c 100644 --- a/sphinx/transforms/references.py +++ b/sphinx/transforms/references.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Dict +from typing import TYPE_CHECKING, Any from docutils.transforms.references import DanglingReferences @@ -36,7 +36,7 @@ class SphinxDomains(SphinxTransform): domain.process_doc(self.env, self.env.docname, self.document) -def setup(app: "Sphinx") -> Dict[str, Any]: +def setup(app: "Sphinx") -> dict[str, Any]: app.add_transform(SphinxDanglingReferences) app.add_transform(SphinxDomains) |