Why isn't beartype complaining with callables? #409
Replies: 2 comments 2 replies
-
|
...heh. The answer to all these questions (and more) is: "...because @leycec is lazy." Sometimes, it's not a virtue. 😢 In other words, @beartype currently only shallowly type-checks callables. Clearly, this is non-ideal. Clearly, however, deeply type-checking callables at runtime in the way that you and everybody else wants is super non-trivial. In theory, it's feasible for various subsets of pure-Python callables; in practice, it's rough stuff that we'd better think about very carefully before even attempting. See also the official @beartype feature support matrix. |
Beta Was this translation helpful? Give feedback.
-
|
Yay! So sorry about that, @Artur-Galstyan. And thanks for sticking it out with @beartype despite API growing pains like this. 😞 Proper |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why isn't beartype complaining here? (Pyright is, but I want beartype to complain too!)
Beta Was this translation helpful? Give feedback.
All reactions