For some reasons I don't really understand sometimes this causes an exception, sometimes it does not. Anyway, issubclass only access class objects as first argument so when the "validate" field is just defined as a function an error is raised. Using inspect to check that the passed value is actually a class should fix the issue (this was already employed in prompts/input.py).
For some reasons I don't really understand sometimes this causes an exception, sometimes it does not. Anyway,
issubclass
only access class objects as first argument so when the "validate" field is just defined as a function an error is raised. Usinginspect
to check that the passed value is actually a class should fix the issue (this was already employed inprompts/input.py
).