-
Notifications
You must be signed in to change notification settings - Fork 9
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
NonEmpty[str]
type cannot be used as sorting key
#207
Comments
@flaeppe # This has the added benefit that you can provide minCharacters in the schema
# which is distinct to minItems in OpenAPI! (Learned this recently).
class NonEmptyStr(str, NonEmpty[str]):
...
|
I think you've made the same assumption as the OP of this issue: #160 (comment) I guess this is a good indication documentation could be improved. |
Thanks for the clarification! That makes sense. |
@flaeppe I'll close this issue for now but feel free to suggest ways to improve this 🙂 |
Not sure if I'm using
NonEmpty
incorrectly here withstr
. But the code below does not typecheck, and I think it should? (Since the underlying data type is a string)Results in the following error
The text was updated successfully, but these errors were encountered: