code: def vars_class(cls):
      
      return dict(chain.from_iterable(
          vars(cls).items() for cls in reversed(cls.__mro__)))
docs: Return a dict of vars for the given class, including all ancestors.
  
      This differs from the usual behaviour of `vars` which returns attributes
      belonging to the given class and not its ancestors.