Skip to content

How to ignore module imports #263

Answered by NiklasRosenstein
nrbnlulu asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply.

Since you're using the API directly rather than the command line, it appears you are missing what the filter that is usually applied by default.

modules = loader.load()

processor = FilterProcessor()
processor.process(modules)

# ...

The default configuration of the processor will remove API objects that have no docstrings and no child elements (so your class that has no docstring but has a method with a docstring will be kept).

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@nrbnlulu
Comment options

@lucacorbucci
Comment options

@nrbnlulu
Comment options

@lucacorbucci
Comment options

@nrbnlulu
Comment options

Comment options

You must be logged in to vote
1 reply
@nrbnlulu
Comment options

Answer selected by nrbnlulu
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants