-
Notifications
You must be signed in to change notification settings - Fork 14
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
Combinating composition and conditional operators does not work #41
Labels
Comments
Because of the operator precedence in Python and some inherent complexity with lazy evaluation in such case, it's not currently possible using The recommended style here that actually works is using the yield chain operator instead: {1: {2: 3}} | should.have.key(1) > should.any(
should.have.key(2).that.should.be.equal(3),
should.have.key(2).that.should.be.empty) |
Thanks, Tomás, I can use that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if this is expected to work, but I had hoped to combine composition and conditional operators:
The text was updated successfully, but these errors were encountered: