Skip to content

Commit

Permalink
Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Mar 14, 2021
1 parent 2a2b19e commit e1fd242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinxcontrib/websupport/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def prepare_writing(self, docnames):
self.globalcontext['no_search_suffix'] = True

def write_doc(self, docname, doctree):
# type: (str, nodes.Node) -> None
# type: (str, nodes.document) -> None
destination = StringOutput(encoding='utf-8')
doctree.settings = self.docsettings

Expand Down Expand Up @@ -115,7 +115,7 @@ def load_indexer(self, docnames):
self.indexer.init_indexing(changed=docnames) # type: ignore

def _render_page(self, pagename, addctx, templatename, event_arg=None):
# type: (str, Dict, str, str) -> Tuple[Dict, Dict]
# type: (str, Dict, str, Any) -> Tuple[Dict, Dict]
# This is mostly copied from StandaloneHTMLBuilder. However, instead
# of rendering the template and saving the html, create a context
# dict and pickle it.
Expand Down Expand Up @@ -162,7 +162,7 @@ def pathto(otheruri, resource=False,

def handle_page(self, pagename, addctx, templatename='page.html',
outfilename=None, event_arg=None):
# type: (str, Dict, str, str, str) -> None
# type: (str, Dict, str, str, Any) -> None
ctx, doc_ctx = self._render_page(pagename, addctx,
templatename, event_arg)

Expand Down

0 comments on commit e1fd242

Please sign in to comment.