code: def test_class_alias_having_doccomment(app):
      actual = do_autodoc(app, "class", "target.classes.OtherAlias")
      assert list(actual) == [
          "",
          ".. py:attribute:: OtherAlias",
          "   :module: target.classes",
          "",
          "   docstring",
          "",
      ]
  
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 16 for calling a global function with example usage: test_class_alias_having_doccomment(app) without return types