Add the class template for autosummary (copied from numpy)