def get_init_params(cls):
    """Return the parameters expected when calling the class."""
    initializer = cls.__init__
    if initializer is object.__init__ and cls.__new__ is not object.__new__:
        initializer = cls.__new__
    try:
        return list(inspect.signature(initializer).parameters)[1:]
    except TypeError:
        return None
Return the parameters expected when calling the class.
recipes/Python/578457_Class_Decorator_that_Adds_copy/recipe-578457.py