This reverts commit 6512c71a49.
While this fixes the problem it doesn't do it in a comprehensive way.
The right way would be to implement real validation.
The reverted patch breaks on methods marked as deprecated because the
deprecated decorator is a function that accepts *args and **kwargs.
This bypasses the check and we go back to the same TypeError from the
original bug.
Related-Bug: #1149987
Change-Id: I0efbcce9abc23bf79eb970e441e5f7644b1c8453