summaryrefslogtreecommitdiff
path: root/sphinx/builders/changes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-13 16:30:59 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-13 16:37:50 +0900
commitaeb9e42d2be2b697879120b18a6380edf934e80b (patch)
treea60d542a501b15daa8bfdad2cf12b05e6be31379 /sphinx/builders/changes.py
parentc817c206265f545529b5fabe43fdf162bbc9bea2 (diff)
downloadsphinx-git-aeb9e42d2be2b697879120b18a6380edf934e80b.tar.gz
refactor: Use PEP-526 based variable annotation (sphinx.builders)
Diffstat (limited to 'sphinx/builders/changes.py')
-rw-r--r--sphinx/builders/changes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/builders/changes.py b/sphinx/builders/changes.py
index 87dd03fb8..5e51499f9 100644
--- a/sphinx/builders/changes.py
+++ b/sphinx/builders/changes.py
@@ -51,9 +51,9 @@ class ChangesBuilder(Builder):
def write(self, *ignored: Any) -> None:
version = self.config.version
domain = cast(ChangeSetDomain, self.env.get_domain('changeset'))
- libchanges = {} # type: Dict[str, List[Tuple[str, str, int]]]
- apichanges = [] # type: List[Tuple[str, str, int]]
- otherchanges = {} # type: Dict[Tuple[str, str], List[Tuple[str, str, int]]]
+ libchanges: Dict[str, List[Tuple[str, str, int]]] = {}
+ apichanges: List[Tuple[str, str, int]] = []
+ otherchanges: Dict[Tuple[str, str], List[Tuple[str, str, int]]] = {}
changesets = domain.get_changesets_for(version)
if not changesets: