prompt takes a type, and if you pass in type=None then this will be run:
if not type:
type = lambda: x
But a type callback needs to take a value, the correct lambda is lambda x: x.
Also, the default lambda lower cases the input value, is that desired? I'm wondering if I should create an iprompt that would be case-insensitive because prompt lowercasing a value just totally bit me
prompt takes a
type
, and if you pass intype=None
then this will be run:But a type callback needs to take a value, the correct lambda is
lambda x: x
.Also, the default lambda lower cases the input value, is that desired? I'm wondering if I should create an iprompt that would be case-insensitive because prompt lowercasing a value just totally bit me