blob: f0703090676fed5b48cfbc325dd8ef1fed5a4de9 [file] [log] [blame]
"""A test that verifies documenting a multi-leveled namespace of functions with whitelist symbols.
The whitelist 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] # @unused
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,
)