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

condition: improve Condition.__str__, ConditionSet.__repr__ #118

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

kmantel
Copy link
Owner

@kmantel kmantel commented Dec 14, 2023

Increase number of situations where str or repr output a result that can be used to recreate the original objects

- surround string argument values with single quotes
- print keyword arguments as k=v

In many cases, this prints valid code that reproduces the condition.
use repr of owner and add dict brackets to increase the number of
situations in which the repr can be used to recreate the original object
@coveralls
Copy link

Coverage Status

coverage: 91.625% (+0.1%) from 91.511%
when pulling 5fcb008 on cond-strs
into 7cb391c on main.

@kmantel kmantel merged commit 51676e5 into main Dec 14, 2023
43 checks passed
@kmantel kmantel deleted the cond-strs branch December 14, 2023 03:24
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

2 participants