docs: def manager(self, obj):
          """Returns the :class:`AttachmentsManager` instance for this object."""
          manager = getattr(obj, _MANAGER_ATTR, None)
          if manager is None:
              manager = AttachmentsManager()
              setattr(obj.__class__, _MANAGER_ATTR, manager)
  
          return manager