diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-07-16 19:01:51 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-07 19:54:17 +0300 |
commit | eb68c237dddbceecb7a295642e51e4ac8a5b36c2 (patch) | |
tree | 5cd9f57808fe4dd067b1d75d840157c8d5129e63 /sphinx/addnodes.py | |
parent | 245b3c32df1965b6bd5952cf25e19beef965a01b (diff) |
refactor: Use PEP-526 based variable annotation
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r-- | sphinx/addnodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py index 9ec4898c1..5645ac91b 100644 --- a/sphinx/addnodes.py +++ b/sphinx/addnodes.py @@ -104,7 +104,7 @@ class toctree(nodes.General, nodes.Element, translatable): self['caption'] = translated_message def extract_original_messages(self) -> List[str]: - messages = [] # type: List[str] + messages: List[str] = [] # toctree entries messages.extend(self.get('rawentries', [])) @@ -209,7 +209,7 @@ class desc_content(nodes.General, nodes.Element): class desc_sig_element(nodes.inline): """Common parent class of nodes for inline text of a signature.""" - classes = [] # type: List[str] + classes: List[str] = [] def __init__(self, rawsource: str = '', text: str = '', *children: Element, **attributes: Any) -> None: |