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

Dictionaries with tuple values are rendered incorrectly #2

Closed
DeepSpace2 opened this issue Aug 28, 2017 · 1 comment
Closed

Dictionaries with tuple values are rendered incorrectly #2

DeepSpace2 opened this issue Aug 28, 2017 · 1 comment

Comments

@DeepSpace2
Copy link

DeepSpace2 commented Aug 28, 2017

from lolviz import *

dict_tuple_values = dictviz({'a': (1, 2)})
dict_tuple_values.render(view=True, cleanup=True)

Is rendered as:
image

This only happens with 2-tuples. Any other tuple length is rendered as expected.

This is the offending line:

elif showassoc and type(el) == tuple and len(el) == 2:

What is the significance of ... and len(el) == 2 ?

@parrt
Copy link
Owner

parrt commented Aug 28, 2017

I need to check for this case.

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

No branches or pull requests

2 participants