blob: 694711c769ffd8f2ae59c9643616ea6587aa335a [file] [log] [blame]
"""A test that verifies documenting a multi-leveled namespace of functions with allowlist symbols.
The allowlist symbols should cause everything in my_namespace to to be documented, but only a
specific symbol in other_namespace to be documented."""
def _min(integers):
"""Returns the minimum of given elements."""
_ignore = [integers]
return 42
def _does_nothing():
"""This function does nothing."""
pass
my_namespace = struct(
dropped_field = "Note this field should not be documented",
min = _min,
math = struct(min = _min),
)
other_namespace = struct(
foo = struct(nothing = _does_nothing),
min = _min,
)