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 the ability to disable the display of object attributes, or to only display selected attributes in the inspect function. #3294

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mateusz-wozny
Copy link

Type of changes

  • New feature
  • Documentation / docstrings
  • Tests

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

I want to use inspect method for object which have some attributes very large (for example list of 1000 items) and currently all attributes are displayed. The output is quite unreadable so I want to disable displaying object attributes or display only selected. I added parameter to enable/disable displaying object attributes and parameter to pass names of attributes I want to display (if not specified all attributes will be displayed).

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

1 participant