Can still link to public items in private modules

implicit_namespaces
Ashley Whetter 6 years ago
parent 75ebcfc903
commit 7dd822eef4

@ -1,5 +1,4 @@
{% if not obj.display %}:orphan:
{% else %}
{% if not obj.display %}:orphan:{% endif %}
{% if obj.docstring or obj.subpackages or obj.submodules or obj.children %}
:mod:`{{ obj.name }}`
======={{ "=" * obj.name|length }}
@ -86,4 +85,3 @@ Functions
{% endif %}{% endblock %}
{% endif %}
{% endif %}

@ -1,3 +1,6 @@
def _private_function():
"""This is private."""
return 5
class PrivateClass(object):
"""A private class with public facing methods."""
def public_method():
"""This is public."""
return 5

@ -280,7 +280,7 @@ class PythonTests(LanguageIntegrationTests):
with io.open(private_path, encoding='utf8') as private_handle:
private_file = private_handle.read()
self.assertNotIn('private', private_file)
self.assertIn('public_method', private_file)
class DotNetTests(LanguageIntegrationTests):

Loading…
Cancel
Save