def bytes_validator(optdict, name, value): """validate and return an integer for option of type 'bytes'""" return optparse.check_bytes(None, name, value)
def bytes_validator(optdict: Dict[str, str], name: str, value: Union[int, str]) -> int: """validate and return an integer for option of type 'bytes'""" return optik_ext.check_bytes(None, name, value)