Merge branch '2.x' into 3.x

This commit is contained in:
Takeshi KOMIYA 2020-03-12 01:37:08 +09:00
commit f85b870ad5
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ extras_require = {
'lint': [
'flake8>=3.5.0',
'flake8-import-order',
'mypy>=0.761',
'mypy>=0.770',
'docutils-stubs',
],
'test': [

View File

@ -489,7 +489,7 @@ class Sphinx:
other values.
"""
logger.debug('[app] adding config value: %r',
(name, default, rebuild) + ((types,) if types else ())) # type: ignore
(name, default, rebuild) + ((types,) if types else ()))
if rebuild in (False, True):
rebuild = 'env' if rebuild else ''
self.config.add(name, default, rebuild, types)

View File

@ -35,7 +35,7 @@ def get_terminal_width() -> int:
import termios
import fcntl
import struct
call = fcntl.ioctl(0, termios.TIOCGWINSZ,
call = fcntl.ioctl(0, termios.TIOCGWINSZ, # type: ignore
struct.pack('hhhh', 0, 0, 0, 0))
height, width = struct.unpack('hhhh', call)[:2]
terminal_width = width

View File

@ -199,7 +199,7 @@ def is_translatable(node: Node) -> bool:
if isinstance(node, addnodes.translatable):
return True
if isinstance(node, nodes.Inline) and 'translatable' not in node:
if isinstance(node, nodes.Inline) and 'translatable' not in node: # type: ignore
# inline node must not be translated if 'translatable' is not set
return False