Pylint complains “no value for argument 'cls'”
I have defined the following class-method to define my object from a pandas.DataFrame instead of from a list like so: class Container(object): @classmethod def from_df(cls, df): rows = [i for _, i in df.iterrows()] return cls(rows) and pylint complains at the return line with the E1120 'code-smell': No value for argument 'cls' in constructor call I can't see anything wrong with it, and it seems to work. Does anybody else maybe have an idea what could be wrong with it? Update : Ugh, user rogalski got it (I think): I confused myself by using the same variable name for a class that comes in as