Merge pull request #5639 from stephenfin/text-writer-nits

Fix two nits with the TextBuilder class
This commit is contained in:
Takeshi KOMIYA 2018-11-21 00:31:06 +09:00 committed by GitHub
commit 5c6def439b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,15 +19,12 @@ from docutils.utils import column_width
from sphinx import addnodes
from sphinx.locale import admonitionlabels, _
from sphinx.util import logging
if False:
# For type annotation
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union # NOQA
from sphinx.builders.text import TextBuilder # NOQA
logger = logging.getLogger(__name__)
class Cell:
"""Represents a cell in a table.
@ -393,7 +390,6 @@ class TextWriter(writers.Writer):
class TextTranslator(nodes.NodeVisitor):
sectionchars = '*=-~"+`'
def __init__(self, document, builder):
# type: (nodes.Node, TextBuilder) -> None