def __init__(self, inputs: Union[None, str, Iterable[str]] = None, outputs: Union[None, str, Iterable[str]] = None, mode: Union[None, str, Iterable[str]] = None) -> None: self.inputs = to_list(inputs) self.outputs = to_list(outputs) self.mode = parse_modes(to_set(mode))
def __init__(self, inputs: Union[None, str, Iterable[str]] = None, outputs: Union[None, str, Iterable[str]] = None, mode: Union[None, str, Iterable[str]] = None) -> None: self.inputs = to_list(inputs) self.outputs = to_list(outputs) self.mode = parse_modes(to_set(mode)) self.fe_monitor_names = set() # The use-case here is rare enough that we don't want to add this to the init sig
def __init__(self, inputs: Union[None, str, Iterable[str]] = None, outputs: Union[None, str, Iterable[str]] = None, mode: Union[None, str, Iterable[str]] = None) -> None: self.inputs = to_list(inputs) self.outputs = to_list(outputs) self.mode = parse_modes(to_set(mode)) self.in_list = not isinstance(inputs, (str, type(None))) self.out_list = not isinstance(outputs, (str, type(None)))
def __init__(self, inputs: Union[None, str, Iterable[str]] = None, outputs: Union[None, str, Iterable[str]] = None, mode: Union[None, str, Iterable[str]] = None, ds_id: Union[None, str, Iterable[str]] = None) -> None: self.inputs = check_io_names(to_list(inputs)) self.outputs = check_io_names(to_list(outputs)) self.mode = parse_modes(to_set(mode)) self.ds_id = check_ds_id(to_set(ds_id)) self.in_list = not isinstance(inputs, (str, type(None))) self.out_list = not isinstance(outputs, (str, type(None)))