def yn_validator(optdict, name, value): """validate and return a converted value for option of type 'yn' """ return optparse.check_yn(None, name, value)
def yn_validator(optdict: Dict[str, Any], name: str, value: Union[bool, str]) -> bool: """validate and return a converted value for option of type 'yn'""" return optik_ext.check_yn(None, name, value)