Merge pull request #7473 from eric-wieser/meta-public

Add support for :meta public:
This commit is contained in:
Takeshi KOMIYA
2020-04-23 02:15:42 +09:00
committed by GitHub
4 changed files with 40 additions and 0 deletions

View File

@@ -3,3 +3,9 @@ def private_function(name):
:meta private:
"""
def _public_function(name):
"""public_function is a docstring().
:meta public:
"""

View File

@@ -22,6 +22,14 @@ def test_private_field(app):
'',
'.. py:module:: target.private',
'',
'',
'.. py:function:: _public_function(name)',
' :module: target.private',
'',
' public_function is a docstring().',
'',
' :meta public:',
'',
]
@@ -36,6 +44,14 @@ def test_private_field_and_private_members(app):
'.. py:module:: target.private',
'',
'',
'.. py:function:: _public_function(name)',
' :module: target.private',
'',
' public_function is a docstring().',
'',
' :meta public:',
'',
'',
'.. py:function:: private_function(name)',
' :module: target.private',
'',