Beartype
#808
Replies: 2 comments 1 reply
-
@j1c @asaadeldin11 @bdpedigo @jonmclean @Nyecarr |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm for using something like this - I don't know anything about Beartype and how it compares to any other possible solution though. I am guessing it will let us do "is this an int" and not "is this an int greater than 0"? If that is correct, then maybe we can get by with a mix of:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is less a feature and more a ceremony discussion, but what do you guys think about using https://github.com/beartype/beartype instead of rolling our own typechecking everywhere?
If not beartype, we can create our own annotations and maybe write our preconditions as annotations so that we don't have to rewrite the same "nonnegative" "is a float" "is an optional str" validation steps and whatnot in every callable or constructor entry point?
Beta Was this translation helpful? Give feedback.
All reactions