{% set permalink = ("Link" if sphinx_version >= (7, 2) else 'Permalink') -%}
{% set heading = ("heading" if sphinx_version >= (5, 0) else 'headline') -%}
{% set sig_prename_tag=("span" if sphinx_version >= (4, 0) else 'code') -%}
{% set sig_object_class=(' class="sig sig-object py"' if sphinx_version >= (4, 0) else '') -%}
<!DOCTYPE html>
<html{% if sphinx_version >= (7, 2) %} data-content_root="./"{% endif %}{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  {% if docutils_version[1] == 18 %}<meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
  {% elif docutils_version[1] == 17 %}<meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
  {% elif docutils_version[1] == 19 %}<meta content="Docutils 0.19: https://docutils.sourceforge.io/" name="generator"/>
  {% elif docutils_version[1] >= 20 %}<meta content="width=device-width, initial-scale=1" name="viewport"/>
  {% endif %}<title>
   sphinx-toolbox Demo - Overloads — Python  documentation
  </title>{% if sphinx_version >= (7, 2) %}
  <script src="_static/documentation_options.js?v=5929fcd5">{% else %}
  <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js{% if sphinx_version >= (7, 1) %}?v=b3ba4146{% endif %}">{% endif %}
  </script>{% if sphinx_version < (6, 0) %}
  <script src="_static/jquery.js">
  </script>
  <script src="_static/underscore.js">
  </script>{% if sphinx_version >= (5, 0) %}
  <script src="_static/_sphinx_javascript_frameworks_compat.js">
  </script>{% endif %}{% endif %}
  <script src="_static/doctools.js{% if sphinx_version >= (8, 1) %}?v=9bcbadda{% elif sphinx_version >= (7, 3) %}?v=9a2dae69{% elif sphinx_version >= (7, 1) %}?v=888ff710{% endif %}">
  </script>{% if sphinx_version >= (5, 2) %}
  <script src="_static/sphinx_highlight.js{% if sphinx_version >= (7, 2) %}?v=dc90522c{% elif sphinx_version >= (7, 1) %}?v=4825356b{% endif %}">
  </script>{% endif %}
  <script src="_static/sphinx_toolbox_installation.js">
  </script>
 </head>
 <body>
  <div class="document">
   <div class="documentwrapper">
    <div class="bodywrapper">
     <div class="body" role="main">
      <div class="section" id="module-tests.test_output.overloads_demo">
       <span id="sphinx-toolbox-demo-overloads">
       </span>
       <h1>
        sphinx-toolbox Demo - Overloads
        <a class="headerlink" href="#module-tests.test_output.overloads_demo" title="{{ permalink }} to this {{ heading }}">
         ¶
        </a>
       </h1>
       <dl class="py class">
        <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.Bar">
         <em class="property">
          class
         </em>
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.overloads_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          Bar
         </{{ sig_prename_tag }}>
         <a class="reference internal" href="_modules/tests/test_output/overloads_demo.html#Bar">
          <span class="viewcode-link">
           [source]
          </span>
         </a>
         <a class="headerlink" href="#tests.test_output.overloads_demo.Bar" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <dl class="py method">
          <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.Bar.__getitem__">
           <{{ sig_prename_tag }} class="sig-name descname">
            __getitem__
           </{{ sig_prename_tag }}>
           <span class="sig-paren">
            (
           </span>
           <em class="sig-param">
            <span class="n">
             item
            </span>
           </em>
           <span class="sig-paren">
            )
           </span>
           <a class="reference internal" href="_modules/tests/test_output/overloads_demo.html#Bar.__getitem__">
            <span class="viewcode-link">
             [source]
            </span>
           </a>
           <a class="headerlink" href="#tests.test_output.overloads_demo.Bar.__getitem__" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            Return the item with the given index.
           </p>
           <div class="versionadded">
            <p>
             <span class="versionmodified added">
              {% if sphinx_version >= (7, 3) %}Added{% else %}New{% endif %} in version 1.2.3.
             </span>
            </p>
           </div>
           <dl class="field-list simple">
            <dt class="field-odd">
             Parameters{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-odd">
             <p>
              <strong>
               item
              </strong>
              (
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Union" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Union
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 int
                </span>
               </code>
              </a>
              ,
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#slice" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 slice
                </span>
               </code>
              </a>
              ])
             </p>
            </dd>
            <dt class="field-even">
             Return type{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-even">
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Union" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Union
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              ,
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.List" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 List
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              ]]
             </p>
            </dd>
            <dt class="field-odd">
             Overloads{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-odd">
             <ul class="simple">
              <li>
               <p>
                <a class="reference internal" href="#tests.test_output.overloads_demo.Bar.__getitem__" title="tests.test_output.overloads_demo.Bar.__getitem__">
                 <code class="xref py py-class docutils literal notranslate">
                  <span class="pre">
                   __getitem__
                  </span>
                 </code>
                </a>
                (
                <strong>
                 item
                </strong>
                :
                <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   int
                  </span>
                 </code>
                </a>
                ) -&gt;
                <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   str
                  </span>
                 </code>
                </a>
               </p>
              </li>
              <li>
               <p>
                <a class="reference internal" href="#tests.test_output.overloads_demo.Bar.__getitem__" title="tests.test_output.overloads_demo.Bar.__getitem__">
                 <code class="xref py py-class docutils literal notranslate">
                  <span class="pre">
                   __getitem__
                  </span>
                 </code>
                </a>
                (
                <strong>
                 item
                </strong>
                :
                <a class="reference external" href="https://docs.python.org/3/library/functions.html#slice" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   slice
                  </span>
                 </code>
                </a>
                ) -&gt;{% if python_version >= (3, 12) and sphinx_version < (7, 4) %}
                <code class="xref py py-obj docutils literal notranslate">
                 <span class="pre">
                  List[str]
                 </span>
                </code>{% else %}
                <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.List" title="(in Python v3.14)">
                 <code class="xref py py-class docutils literal notranslate">
                  <span class="pre">
                   List
                  </span>
                 </code>
                </a>
                [
                <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   str
                  </span>
                 </code>
                </a>
                ]{% endif %}
               </p>
              </li>
             </ul>
            </dd>
           </dl>
          </dd>
         </dl>
         <dl class="py attribute">
          <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.Bar.__module__">
           <{{ sig_prename_tag }} class="sig-name descname">
            __module__
           </{{ sig_prename_tag }}>
           <em class="property">
            = 'tests.test_output.overloads_demo'
           </em>
           <a class="headerlink" href="#tests.test_output.overloads_demo.Bar.__module__" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            <strong>
             Type:
            </strong>
            <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               str
              </span>
             </code>
            </a>
           </p>
          </dd>
         </dl>
        </dd>
       </dl>
       <dl class="py class">
        <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.Foo">
         <em class="property">
          class
         </em>
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.overloads_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          Foo
         </{{ sig_prename_tag }}>
         <a class="reference internal" href="_modules/tests/test_output/overloads_demo.html#Foo">
          <span class="viewcode-link">
           [source]
          </span>
         </a>
         <a class="headerlink" href="#tests.test_output.overloads_demo.Foo" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <dl class="py method">
          <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.Foo.__getitem__">
           <{{ sig_prename_tag }} class="sig-name descname">
            __getitem__
           </{{ sig_prename_tag }}>
           <span class="sig-paren">
            (
           </span>
           <em class="sig-param">
            <span class="n">
             item
            </span>
           </em>
           <span class="sig-paren">
            )
           </span>
           <a class="reference internal" href="_modules/tests/test_output/overloads_demo.html#Foo.__getitem__">
            <span class="viewcode-link">
             [source]
            </span>
           </a>
           <a class="headerlink" href="#tests.test_output.overloads_demo.Foo.__getitem__" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            Return the item with the given index.
           </p>
           <dl class="field-list simple">
            <dt class="field-odd">
             Parameters{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-odd">
             <p>
              <strong>
               item
              </strong>
              (
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Union" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Union
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 int
                </span>
               </code>
              </a>
              ,
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#slice" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 slice
                </span>
               </code>
              </a>
              ])
             </p>
            </dd>
            <dt class="field-even">
             Return type{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-even">
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Union" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Union
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              ,
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.List" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 List
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              ]]
             </p>
            </dd>
            <dt class="field-odd">
             Overloads{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-odd">
             <ul class="simple">
              <li>
               <p>
                <a class="reference internal" href="#tests.test_output.overloads_demo.Foo.__getitem__" title="tests.test_output.overloads_demo.Foo.__getitem__">
                 <code class="xref py py-class docutils literal notranslate">
                  <span class="pre">
                   __getitem__
                  </span>
                 </code>
                </a>
                (
                <strong>
                 item
                </strong>
                :
                <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   int
                  </span>
                 </code>
                </a>
                ) -&gt;
                <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   str
                  </span>
                 </code>
                </a>
               </p>
              </li>
              <li>
               <p>
                <a class="reference internal" href="#tests.test_output.overloads_demo.Foo.__getitem__" title="tests.test_output.overloads_demo.Foo.__getitem__">
                 <code class="xref py py-class docutils literal notranslate">
                  <span class="pre">
                   __getitem__
                  </span>
                 </code>
                </a>
                (
                <strong>
                 item
                </strong>
                :
                <a class="reference external" href="https://docs.python.org/3/library/functions.html#slice" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   slice
                  </span>
                 </code>
                </a>
                ) -&gt;{% if python_version >= (3, 12) and sphinx_version < (7, 4) %}
                <code class="xref py py-obj docutils literal notranslate">
                 <span class="pre">
                  List[str]
                 </span>
                </code>{% else %}
                <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.List" title="(in Python v3.14)">
                 <code class="xref py py-class docutils literal notranslate">
                  <span class="pre">
                   List
                  </span>
                 </code>
                </a>
                [
                <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
                 <code class="xref py py-{{'obj' if python_version >= (3, 12) and sphinx_version < (7, 4) else 'class'}} docutils literal notranslate">
                  <span class="pre">
                   str
                  </span>
                 </code>
                </a>
                ]{% endif %}
               </p>
              </li>
             </ul>
            </dd>
           </dl>
           <div class="versionadded">
            <p>
             <span class="versionmodified added">
              {% if sphinx_version >= (7, 3) %}Added{% else %}New{% endif %} in version 1.2.3.
             </span>
            </p>
           </div>
          </dd>
         </dl>
         <dl class="py attribute">
          <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.Foo.__module__">
           <{{ sig_prename_tag }} class="sig-name descname">
            __module__
           </{{ sig_prename_tag }}>
           <em class="property">
            = 'tests.test_output.overloads_demo'
           </em>
           <a class="headerlink" href="#tests.test_output.overloads_demo.Foo.__module__" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            <strong>
             Type:
            </strong>
            <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               str
              </span>
             </code>
            </a>
           </p>
          </dd>
         </dl>
        </dd>
       </dl>
       <dl class="py function">
        <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.serde">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.overloads_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          serde
         </{{ sig_prename_tag }}>
         <span class="sig-paren">
          (
         </span>
         <em class="sig-param">
          <span class="n">
           cls
          </span>
          <span class="o">
           =
          </span>
          <span class="default_value">
           None
          </span>
         </em>
         ,
         <em class="sig-param">
          <span class="n">
           from_key
          </span>
          <span class="o">
           =
          </span>
          <span class="default_value">
           'from'
          </span>
         </em>
         ,
         <em class="sig-param">
          <span class="n">
           to_key
          </span>
          <span class="o">
           =
          </span>
          <span class="default_value">
           'to'
          </span>
         </em>
         <span class="sig-paren">
          )
         </span>
         <a class="reference internal" href="_modules/tests/test_output/overloads_demo.html#serde">
          <span class="viewcode-link">
           [source]
          </span>
         </a>
         <a class="headerlink" href="#tests.test_output.overloads_demo.serde" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          Decorator to add serialisation and deserialisation capabilities to attrs classes.
         </p>
         <dl class="field-list simple">
          <dt class="field-odd">
           Parameters{% if docutils_version >= (0, 18) %}
           <span class="colon">
            :
           </span>{% endif %}
          </dt>
          <dd class="field-odd">
           <ul class="simple">
            <li>
             <p>
              <strong>
               cls
              </strong>
              (
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Optional" title="(in Python v3.14)">
               <code class="xref py py-data docutils literal notranslate">
                <span class="pre">
                 Optional
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Type
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 object
                </span>
               </code>
              </a>
              ]]) – The attrs class to add the methods to.
             </p>
            </li>
            <li>
             <p>
              <strong>
               from_key
              </strong>
              (
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              )
             </p>
            </li>
            <li>
             <p>
              <strong>
               to_key
              </strong>
              (
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              )
             </p>
            </li>
           </ul>
          </dd>
          <dt class="field-even">
           Return type{% if docutils_version >= (0, 18) %}
           <span class="colon">
            :
           </span>{% endif %}
          </dt>
          <dd class="field-even">
           <p>
            <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Union" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               Union
              </span>
             </code>
            </a>
            [
            <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               Type
              </span>
             </code>
            </a>
            [
            <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               object
              </span>
             </code>
            </a>
            ],
            <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Callable" title="(in Python v3.14)">
             <code class="xref py py-data docutils literal notranslate">
              <span class="pre">
               Callable
              </span>
             </code>
            </a>
            [[
            <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               Type
              </span>
             </code>
            </a>
            [
            <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               object
              </span>
             </code>
            </a>
            ]],
            <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               Type
              </span>
             </code>
            </a>
            [
            <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
             <code class="xref py py-class docutils literal notranslate">
              <span class="pre">
               object
              </span>
             </code>
            </a>
            ]]]
           </p>
          </dd>
          <dt class="field-odd">
           Overloads{% if docutils_version >= (0, 18) %}
           <span class="colon">
            :
           </span>{% endif %}
          </dt>
          <dd class="field-odd">
           <ul class="simple">
            <li>
             <p>
              <a class="reference internal" href="#tests.test_output.overloads_demo.serde" title="tests.test_output.overloads_demo.serde">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 serde
                </span>
               </code>
              </a>
              (
              <strong>
               cls
              </strong>
              :{% if python_version >= (3, 12) and sphinx_version < (7, 4) %}
              <code class="xref py py-obj docutils literal notranslate">
               <span class="pre">
                Type[object]
               </span>
              </code>
              ,
              <strong>
               from_key
              </strong>
              :
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-obj docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              = …,
              <strong>
               to_key
              </strong>
              :{% else %}
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Type
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 object
                </span>
               </code>
              </a>
              ],
              <strong>
               from_key
              </strong>
              = …,
              <strong>
               to_key
              </strong>{% endif %}{% if python_version >= (3, 12) and sphinx_version < (7, 4) %}
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-obj docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              = … ) -&gt;
              <code class="xref py py-obj docutils literal notranslate">
               <span class="pre">
                Type[object]
               </span>
              </code>{% else %}
              = … ) -&gt;
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Type
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 object
                </span>
               </code>
              </a>
              ]{% endif %}
             </p>
            </li>
            <li>
             <p>
              <a class="reference internal" href="#tests.test_output.overloads_demo.serde" title="tests.test_output.overloads_demo.serde">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 serde
                </span>
               </code>
              </a>
              (
              <strong>
               cls
              </strong>
              :
              <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)">
               <code class="xref py py-obj docutils literal notranslate">
                <span class="pre">
                 None
                </span>
               </code>
              </a>
              = None,
              <strong>
               from_key
              </strong>{% if python_version >= (3, 12) and sphinx_version < (7, 4) %}
              :
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-obj docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              = …,
              <strong>
               to_key
              </strong>
              :
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-{{'obj' if python_version >= (3, 12) else 'class'}} docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              = … ) -&gt;
              <code class="xref py py-obj docutils literal notranslate">
               <span class="pre">
                'Callable[[Type[object]],
               </span>
               <span class="pre">
                Type[object]]'
               </span>
              </code>{% else %}
              = …,
              <strong>
               to_key
              </strong>
              = … ) -&gt;
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Callable" title="(in Python v3.14)">
               <code class="xref py py-data docutils literal notranslate">
                <span class="pre">
                 Callable
                </span>
               </code>
              </a>
              [[
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Type
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 object
                </span>
               </code>
              </a>
              ]],
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Type" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Type
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 object
                </span>
               </code>
              </a>
              ]]{% endif %}
             </p>
            </li>
           </ul>
          </dd>
         </dl>
         <p>
          Classes decorated with
          <code class="xref py py-deco docutils literal notranslate">
           <span class="pre">
            @serde
           </span>
          </code>
          will have two new methods added:
         </p>
         <dl class="py method">
          <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.from_dict">
           <em class="property">
            classmethod
           </em>
           <{{ sig_prename_tag }} class="sig-prename descclassname">
            tests.test_output.overloads_demo.
           </{{ sig_prename_tag }}>
           <{{ sig_prename_tag }} class="sig-name descname">
            from_dict
           </{{ sig_prename_tag }}>
           <span class="sig-paren">
            (
           </span>
           <em class="sig-param">
            <span class="n">
             d
            </span>
           </em>
           <span class="sig-paren">
            )
           </span>
           <a class="headerlink" href="#tests.test_output.overloads_demo.from_dict" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            Construct an instance of the class from a dictionary.
           </p>
           <dl class="field-list simple">
            <dt class="field-odd">
             Parameters{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-odd">
             <p>
              <strong>
               d
              </strong>
              –
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Mapping" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 Mapping
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              ,
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Any" title="(in Python v3.14)">
               <code class="xref py py-obj docutils literal notranslate">
                <span class="pre">
                 Any
                </span>
               </code>
              </a>
              ]
             </p>
            </dd>
           </dl>
          </dd>
         </dl>
         <dl class="py method">
          <dt{{ sig_object_class }} id="tests.test_output.overloads_demo.to_dict">
           <{{ sig_prename_tag }} class="sig-prename descclassname">
            tests.test_output.overloads_demo.
           </{{ sig_prename_tag }}>
           <{{ sig_prename_tag }} class="sig-name descname">
            to_dict
           </{{ sig_prename_tag }}>
           <span class="sig-paren">
            (
           </span>
           <span class="sig-paren">
            )
           </span>
           {% if sphinx_version >= (4, 1) -%}
           <span class="sig-return">
            <span class="sig-return-icon">
             →
            </span>
            <span class="sig-return-typehint">
             MutableMapping[str, Any]:
            </span>
           </span>
           {% else -%}→ MutableMapping[str, Any]:
           {% endif -%}
           <a class="headerlink" href="#tests.test_output.overloads_demo.to_dict" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            Returns a dictionary containing the contents of the class.
           </p>
           <dl class="field-list simple">
            <dt class="field-odd">
             Return type{% if docutils_version >= (0, 18) %}
             <span class="colon">
              :
             </span>{% endif %}
            </dt>
            <dd class="field-odd">
             <p>
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.MutableMapping" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 MutableMapping
                </span>
               </code>
              </a>
              [
              <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)">
               <code class="xref py py-class docutils literal notranslate">
                <span class="pre">
                 str
                </span>
               </code>
              </a>
              ,
              <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Any" title="(in Python v3.14)">
               <code class="xref py py-obj docutils literal notranslate">
                <span class="pre">
                 Any
                </span>
               </code>
              </a>
              ]
             </p>
            </dd>
           </dl>
          </dd>
         </dl>
        </dd>
       </dl>
      </div>{% if sphinx_version >= (8, 1) %}
      <div class="clearer">
      </div>{% endif %}
     </div>
    </div>
   </div>
   <div class="clearer">
   </div>
  </div>
 </body>
</html>
