Checks
Question
Is there a way to validate data input compared to type hinted function signature, without calling the function? I've seen https://pydantic-docs.helpmanual.io/usage/validation_decorator/ but that appears to do the validation check when calling the function.
Example use case/context:
User input (e.g. from a configuration file) is used to call different functions and/or initiate different classes. It would be nice to quickly provide the user with a collection of validation feedback in one go, and not having to wait on e.g. the first X function calls to be successful while X+1 turns out to have invalid data input.
Checks
Question
Is there a way to validate data input compared to type hinted function signature, without calling the function? I've seen https://pydantic-docs.helpmanual.io/usage/validation_decorator/ but that appears to do the validation check when calling the function.
Example use case/context:
User input (e.g. from a configuration file) is used to call different functions and/or initiate different classes. It would be nice to quickly provide the user with a collection of validation feedback in one go, and not having to wait on e.g. the first
Xfunction calls to be successful whileX+1turns out to have invalid data input.