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
use type aliases for shorthand constraints #6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pro this, but we should be explicit in docs and tests about whether these work with bytes
and bytearray
.
|
So firstly I think your comment generally applies regardless of using type aliases or not: Here are a couple paths forward for this: Only provide a predicate for
|
Just some very quick thoughts because it's rather late here:
This would need to be "we do not specify semantics for predicates which can't be applied to the type in question" - Hypothesis is just going to turn |
Ok, then let's just leave it as is and as a note to the docs. |
I'll get the docs... Hopefully tonight, and then we can merge! |
#5 (comment)
I think these names make more sense when they're wrapping the type, but I'm happy to keep the old ones