Lines Matching full:type
31 """Action to convert input values to lower case prior to converting to an Enum type"""
33 def __init__(self, option_strings, dest, type, default, **kwargs): argument
34 if not issubclass(type, Enum):
35 raise ValueError(f"{type} must be an Enum")
36 # store provided enum type
37 self.enum_type = type
45 raise argparse.ArgumentTypeError("Invalid value type, must be str or iterable")
46 # prevent automatic type conversion
57 raise argparse.ArgumentTypeError("Invalid value type, must be str or iterable")
351 known[key] = test_fields[index].type(value) # type: ignore
354 known[key] = get_origin(test_fields[index].type)(value) # type: ignore