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

feat: improve python inline asserts to not require printing #542

Merged
merged 4 commits into from
Mar 10, 2024

Conversation

typpo
Copy link
Collaborator

@typpo typpo commented Mar 9, 2024

This makes it possible to debug inline assert with print statements, for example. And overall makes things cleaner and less hacky.

This is a breaking change for multiline inline python assertions - to fix, you should replace statements like print(json.dumps(result)) with return result instead.

@typpo typpo merged commit a7915e0 into main Mar 10, 2024
18 checks passed
@typpo typpo deleted the python-inline-asserts branch March 10, 2024 02:15
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

1 participant