class documentation
class FilterVisitor(ApiObjectVisitor): (source)
Visits objects applying the predicate. If the predicate returrns a False value, the object will be removed from it's containing list.
- Usage::
- module: pydocspec.Module # removes entries starting by one underscore that are not dunder methods, aka private API. predicate = lambda ob: not ob.name.startswith("_") or ob.name.startswith("__") and ob.name.endswith("__") filter_visitor = FilterVisitor(predicate) filter_visitor.walk(module)
Method | __init__ |
Undocumented |
Method | apply |
Undocumented |
Method | unknown |
Undocumented |
Method | unknown |
Undocumented |
Instance Variable | predicate |
Undocumented |
Inherited from _ApiObjectVisitorGetChildren
(via ApiObjectVisitor
):
Class Method | get |
Undocumented |