Fix #6589: autodoc: Formatting issues with autodoc_typehints='none'

This commit is contained in:
Takeshi KOMIYA
2019-07-21 20:18:55 +09:00
parent 4732ec5edf
commit ace7b4ded7
4 changed files with 10 additions and 5 deletions

View File

@@ -501,15 +501,15 @@ def test_autodoc_typehints_none(app):
'.. py:module:: target.typehints',
'',
'',
'.. py:class:: Math(s, o = None)',
'.. py:class:: Math(s, o=None)',
' :module: target.typehints',
'',
' ',
' .. py:method:: Math.incr(a, b = 1) -> int',
' .. py:method:: Math.incr(a, b=1)',
' :module: target.typehints',
' ',
'',
'.. py:function:: incr(a, b = 1) -> int',
'.. py:function:: incr(a, b=1)',
' :module: target.typehints',
''
]