summaryrefslogtreecommitdiff
path: root/sphinx/transforms/post_transforms/code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-23 01:45:04 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-24 23:35:19 +0900
commit7e6ea15b68960d809d742c18e0e9baa63a7d0d4c (patch)
treef927f82395746418431757a65ab684a9eb40f268 /sphinx/transforms/post_transforms/code.py
parent141735f90cf8efc97ae14f63ba411f018e921ba0 (diff)
downloadsphinx-git-7e6ea15b68960d809d742c18e0e9baa63a7d0d4c.tar.gz
refactor: Use PEP-526 based variable annotation (sphinx.transforms)
Diffstat (limited to 'sphinx/transforms/post_transforms/code.py')
-rw-r--r--sphinx/transforms/post_transforms/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/transforms/post_transforms/code.py b/sphinx/transforms/post_transforms/code.py
index a880c4cd4..52bca8e12 100644
--- a/sphinx/transforms/post_transforms/code.py
+++ b/sphinx/transforms/post_transforms/code.py
@@ -49,7 +49,7 @@ class HighlightLanguageTransform(SphinxTransform):
class HighlightLanguageVisitor(nodes.NodeVisitor):
def __init__(self, document: nodes.document, default_language: str) -> None:
self.default_setting = HighlightSetting(default_language, False, sys.maxsize)
- self.settings = [] # type: List[HighlightSetting]
+ self.settings: List[HighlightSetting] = []
super().__init__(document)
def unknown_visit(self, node: Node) -> None: