Remove self from the arguments for the function add_type().

Backport candidate.
1 file changed