code: def _split_what(what):
      
      return (
          frozenset(cls for cls in what if isclass(cls)),
          frozenset(cls for cls in what if isinstance(cls, Attribute)),
      )
docs: Returns a tuple of `frozenset`s of classes and attributes.