code: def test_slots_attribute(app):
      options = {"members": None}
      actual = do_autodoc(app, "class", "target.slots.Bar", options)
      assert list(actual) == [
          "",
          ".. py:class:: Bar()",
          "   :module: target.slots",
          "",
          "   docstring",
          "",
          "",
          "   .. py:attribute:: Bar.attr1",
          "      :module: target.slots",
          "      :type: int",
          "",
          "      docstring of attr1",
          "",
          "",
          "   .. py:attribute:: Bar.attr2",
          "      :module: target.slots",
          "",
          "      docstring of instance attr2",
          "",
      ]
  
imports: from __future__ import annotations
  import typing
  from typing import Union
  import pytest
  from tests.test_extensions.test_ext_autodoc import do_autodoc
label_desc: Use image node_id 8 for calling a global function with example usage: test_slots_attribute(app) without return types