Usage of the strongly_typed validation with types defined with typing module breaks validations.
We should add support to this and raise more appropriate errors when the type used is actually not supported.
from parameters_validation import validate_parameters, strongly_typed
from typing import Optional
@validate_parameters
def foo(a: strongly_typed(Optional[str]) = "default value"):
print(a)
# Breaks and raises an obscure error
Usage of the
strongly_typedvalidation with types defined with typing module breaks validations.We should add support to this and raise more appropriate errors when the type used is actually not supported.