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

gh-92734: Add indentation feature to reprlib.Repr #92735

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

finefoot
Copy link
Contributor

@finefoot finefoot commented May 12, 2022

Add an indentation feature to the reprlib.Repr class. This includes
the actual implementation as well as added tests and an attribute
description for the docs.
Copy link

@Ovsyanka83 Ovsyanka83 left a comment

I haven't found any issues with the code or the tests. The docs are my only concern.

@@ -123,6 +123,16 @@ which format specific object types.
similar manner as :attr:`maxstring`. The default is ``20``.


.. attribute:: Repr.indent

If this attribute is set to ``None`` (default), no indentation of the output
Copy link

@Ovsyanka83 Ovsyanka83 May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These docs are a little confusing and have to be read multiple times to understand, even though the API itself is more or less intuitive.

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

Successfully merging this pull request may close these issues.

None yet

3 participants