code: def test_autodoc_typehints_format_fully_qualified_for_newtype_alias(
      app,
  ):
      actual = do_autodoc(app, "class", "target.typevar.T6")
      assert list(actual) == [
          "",
          ".. py:class:: T6",
          "   :module: target.typevar",
          "",
          "   T6",
          "",
          "   alias of :py:class:`datetime.date`",
          "",
      ]
  
imports: import platform
  import sys
  from contextlib import contextmanager
  import pytest
  from sphinx.testing import restructuredtext
  from tests.test_extensions.test_ext_autodoc import do_autodoc
label_desc: Use image node_id 31 for calling a global function with example usage: test_autodoc_typehints_format_fully_qualified_for_newtype_alias(app) without return types