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

Change component colouring in __repr__ #91

Merged
merged 1 commit into from
Jan 6, 2020
Merged

Change component colouring in __repr__ #91

merged 1 commit into from
Jan 6, 2020

Conversation

lgeiger
Copy link
Member

@lgeiger lgeiger commented Jan 6, 2020

This PR slightly changes the coloured string representation. It removes the spacing for the keyword arguments and makes the printing multicolour:

master

Screenshot 2020-01-06 at 10 59 17

PR

Screenshot 2020-01-06 at 11 05 02

@lgeiger
Copy link
Member Author

lgeiger commented Jan 6, 2020

Thinking about this again, it would be even nicer to use proper Python syntax highlighting. prompt-toolkit has support for this already. Though this is not something we need to look into right now.

Copy link
Contributor

@AdamHillier AdamHillier left a comment

Choose a reason for hiding this comment

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

That's nicer, thanks :)

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.

2 participants