It might be nice to move this into a utility function `get_num_args` or something, that returns the number of args excluding `self` on a method or function.  It might make it more clear what the real purpose of this clause is.