def make_init_spec(dependency): if using_object_init(dependency): return injectable, dependency, [], 0 else: name = dependency.__name__ + "." + "__init__" owner_message = "{cls!r} class".format(cls=dependency.__name__) args, have_defaults = make_func_spec(dependency.__init__, name, owner_message) return injectable, dependency, args[1:], have_defaults
def make_value_spec(dependency): function = dependency.__function__ args, have_defaults = make_func_spec(function, function.__name__, "FIXME!") check_method(args) return injectable, function, args, have_defaults
def make_operation_spec(dependency): function = dependency.__function__ args, have_defaults = make_func_spec(function, function.__name__, "") check_method(args) return injectable, OperationSpec(function), args, have_defaults