# Check that the right number of arguments were passed in
if len(args) < len(min_args) or len(args) > len(max_args):
raise PLCInvalidArgumentCount(len(args), len(min_args), len(max_args))
for name, value, expected in zip(max_args, args, self.accepts):
self.type_check(name, value, expected, args)
# Check that the right number of arguments were passed in
if len(args) < len(min_args) or len(args) > len(max_args):
raise PLCInvalidArgumentCount(len(args), len(min_args), len(max_args))
for name, value, expected in zip(max_args, args, self.accepts):
self.type_check(name, value, expected, args)