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

Fix validation of Callable in a compound trait #798

Merged
merged 3 commits into from
Jan 23, 2020

Conversation

mdickinson
Copy link
Member

Fix validation of a Callable trait inside an Either.

Fixes #793

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@@ -4223,7 +4229,7 @@ static int
_set_trait_comparison_mode(trait_object *trait, PyObject *value, void *closure)
{
long comparison_mode = PyLong_AsLong(value);

Copy link
Member Author

Choose a reason for hiding this comment

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

VS Code did this, not me! (Apparently there was some trailing whitespace in ctraits.c)

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Copy link
Member Author

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

@kitchoi Do you have bandwidth for review?

@mdickinson mdickinson requested a review from kitchoi January 23, 2020 17:25

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@codecov-io
Copy link

codecov-io commented Jan 23, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@5691120). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #798   +/-   ##
=========================================
  Coverage          ?   72.41%           
=========================================
  Files             ?       51           
  Lines             ?     6363           
  Branches          ?     1274           
=========================================
  Hits              ?     4608           
  Misses            ?     1362           
  Partials          ?      393

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5691120...475755d. Read the comment docs.

@kitchoi
Copy link
Contributor

kitchoi commented Jan 23, 2020

Yes I can review. Thank you for fixing it!

@mdickinson mdickinson merged commit 0343434 into master Jan 23, 2020
@mdickinson mdickinson deleted the fix/callable-in-compound branch January 23, 2020 20:49
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.

Unexpected validation failure when using Callable with Either
3 participants