Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a blacklist option for member attributes #19

Closed
wants to merge 2 commits into from

Conversation

Erik-White
Copy link

I found that it would be very useful to have a blacklist option for :members:, instead of the current whitelist option. I've added an extra command :members-exclude: that renders identically to :members:, but excludes any listed attributes

Example usage:

::: mocklib.ExampleClass
    :docstring:
    :members-exclude: example_property

@Erik-White
Copy link
Author

Updated to fix typo in commit message

@Erik-White
Copy link
Author

Erik-White commented May 10, 2020

@tomchristie any thoughts?

@tomchristie
Copy link
Owner

Thanks but I'd prefer to stick with things how they are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants