mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix mypy and flake8 violations
This commit is contained in:
parent
e14b86ef7d
commit
5b53b74bd9
@ -27,7 +27,7 @@ from sphinx.util.images import get_image_size
|
||||
|
||||
if False:
|
||||
# For type annotation
|
||||
from typing import Any # NOQA
|
||||
from typing import Any, Tuple # NOQA
|
||||
from sphinx.builders.html import StandaloneHTMLBuilder # NOQA
|
||||
|
||||
|
||||
@ -304,7 +304,7 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
|
||||
secnumber = self.get_secnumber(node)
|
||||
if secnumber:
|
||||
self.body.append('<span class="section-number">%s</span>' %
|
||||
('.'.join(map(str, secnumber)) + self.secnumber_suffix))
|
||||
('.'.join(map(str, secnumber)) + self.secnumber_suffix))
|
||||
|
||||
def add_fignumber(self, node):
|
||||
# type: (nodes.Element) -> None
|
||||
|
Loading…
Reference in New Issue
Block a user