code: def test_autodoc_process_bases(app):
      def autodoc_process_bases(app, name, obj, options, bases):
          assert name == "target.classes.Quux"
          assert obj.__module__ == "target.classes"
          assert obj.__name__ == "Quux"
          assert options == {"show-inheritance": True, "members": []}
          assert bases == [
              typing.List[Union[int, float]]
          ]  # NoQA: UP006
  
          bases.pop()
          bases.extend([int, str])
  
      app.connect("autodoc-process-bases", autodoc_process_bases)
  
      options = {"show-inheritance": None}
      actual = do_autodoc(app, "class", "target.classes.Quux", options)
      assert list(actual) == [
          "",
          ".. py:class:: Quux(iterable=(), /)",
          "   :module: target.classes",
          "",
          "   Bases: :py:class:`int`, :py:class:`str`",
          "",
          "   A subclass of List[Union[int, float]]",
          "",
      ]
  
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 11 for calling a global function with example usage: test_autodoc_process_bases(app) without return types