We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Pretty class doesn't support pretty printing NamedTuples.
We should attempt to auto detect named tuples in order to expand these on to multiple lines as appropriate.
NamedTuples inherit from tuple and don't have a common base class. They have a _fields attribute which could identify them as a named tuple.
tuple
_fields
We will also need to check if a custom repr has been provided (in the same was as we do dataclasses).
The text was updated successfully, but these errors were encountered:
Did I solve your problem?
Why not buy the devs a coffee to say thanks?
Sorry, something went wrong.
darrenburns
Successfully merging a pull request may close this issue.
The Pretty class doesn't support pretty printing NamedTuples.
We should attempt to auto detect named tuples in order to expand these on to multiple lines as appropriate.
NamedTuples inherit from
tuple
and don't have a common base class. They have a_fields
attribute which could identify them as a named tuple.We will also need to check if a custom repr has been provided (in the same was as we do dataclasses).
The text was updated successfully, but these errors were encountered: