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

Changing to boolean argument in parallel_assert #11

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

brownbaerchen
Copy link

Since the regular Python assert works with booleans instead of callables, I was a bit confused why I had to add lambda for the parallel version now. The only situations where a callable is required as argument in parallel_assert that @connorjward could come up with are dubious coding practice.
So, to streamline the workflow for new users, we decided to switch to boolean argument, while still allowing callables, but raising a warning in that case.

I also added a basic CI pipeline with some unit tests for this. This includes tests that passing callables to parallel_assert still works.

Copy link
Collaborator

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

This is brilliant. Thank you!

Copy link
Collaborator

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

very very close now

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.

2 participants