I am trying to add a method to an existing Python scipy.stats class but it is generating a _construct_docstrings
error.
import scipy.stats as stats
class myPoisson(stats.poisson) :
def myMethod(var, **kwargs) :
return var
I have tried adding an __init__
method with a call to super().__init__(self)
but this has not changed the error.
What am I missing for extending existing Python classes?