def __init__(self, rdf: 'RDataFrame') -> None: self.rdf = rdf self.col_names: typing.List[str] = rdf.GetColumnNames() self.func: typing.Callable self.return_type: str self.params: typing.List[str] self.func_args: typing.Dict(str, any) self.args_info: typing.Dict(str, (str, any)) self.func_sign: str self.func_call: str
def test_no_dict_instantiation(self): with self.assertRaises(TypeError): typing.Dict() with self.assertRaises(TypeError): typing.Dict[KT, VT]() with self.assertRaises(TypeError): typing.Dict[str, int]()