Python @classmethod() Decorator

Class methods are functions defined in a class that refer to the class as a whole rather than an individual instance of a class. A method is made a class method by adding the @classmethod decoration. Class methods take the cls object as the first parameter.

See Python Class Methods for a discussion on class methods.