-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
Description
Validator functions often raise warnings when something isn't quite right, eg:
However, the warning shows up to the user as coming from the validate
function, which is not all that helpful since they never call this directly. We can make this more useful by setting stacklevel=2
.
This way the warning will point to the evaluator that called validate, which is a little more helpful for debugging purposes, especially when the user is calling a module-level evaluate()
function.