docs: def detach_all_classes(self):
          """
          Detach from all tracked classes.
          """
          classes = list(self._observers.keys())
          for cls in classes:
              self.detach_class(cls)