You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(rendering.DocstringInheritStrategy.if_not_present, ['"""base"""', '"""main"""', ''], ['base', 'main', 'main']), # main: stays the same (no merge); sub: main is taken (not base)
176
-
(rendering.DocstringInheritStrategy.merge, ['"""base"""', '"""main"""', ''], ['base', 'base+main', 'base+main']), # main: is merged with base; sub: empty is merged with base+main (not base+main+)
177
-
(rendering.DocstringInheritStrategy.merge, ['', '"""main"""', ''], [None, 'main', 'main']), # Base class has no docstring after merging (as opposed to an empty one)
"""Test the inheritance strategies of docstrings for members.
183
194
184
195
Parameters:
185
196
strategy: The docstring inheritance strategy to use.
186
197
docstrings_list: The list of docstrings for the base, main, and sub classes. Needs triple quotes.
187
198
expected_docstrings_list: The expected list of docstrings for the base, main, and sub classes. Just the content, i.e. without triple quotes. None for no docstring at all.
0 commit comments