{% 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 - TypeVars — 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.typevars_demo">
       <span id="sphinx-toolbox-demo-typevars">
       </span>
       <h1>
        sphinx-toolbox Demo - TypeVars
        <a class="headerlink" href="#module-tests.test_output.typevars_demo" title="{{ permalink }} to this {{ heading }}">
         ¶
        </a>
       </h1>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.DS">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          DS
         </{{ sig_prename_tag }}>
         <em class="property">
          = TypeVar(DS, SlotsDemo, Demo)
         </em>
         <a class="headerlink" href="#tests.test_output.typevars_demo.DS" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
         </p>
         <p>
          Invariant
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
          constrained to
          <a class="reference internal" href="#tests.test_output.typevars_demo.SlotsDemo" title="tests.test_output.typevars_demo.SlotsDemo">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             tests.test_output.typevars_demo.SlotsDemo
            </span>
           </code>
          </a>
          and
          <a class="reference internal" href="#tests.test_output.typevars_demo.Demo" title="tests.test_output.typevars_demo.Demo">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             tests.test_output.typevars_demo.Demo
            </span>
           </code>
          </a>
          .
         </p>
        </dd>
       </dl>
       <dl class="py class">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.Demo">
         <em class="property">
          class
         </em>
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          Demo
         </{{ sig_prename_tag }}>
         <span class="sig-paren">
          (
         </span>
         <em class="sig-param">
          <span class="n">
           arg1
          </span>
         </em>
         ,
         <em class="sig-param">
          <span class="n">
           arg2
          </span>
         </em>
         <span class="sig-paren">
          )
         </span>
         <a class="reference internal" href="_modules/tests/test_output/typevars_demo.html#Demo">
          <span class="viewcode-link">
           [source]
          </span>
         </a>
         <a class="headerlink" href="#tests.test_output.typevars_demo.Demo" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          An attrs class
         </p>
         <dl class="py attribute">
          <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.Demo.arg1">
           <{{ sig_prename_tag }} class="sig-name descname">
            arg1
           </{{ sig_prename_tag }}>
           <a class="headerlink" href="#tests.test_output.typevars_demo.Demo.arg1" 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>
           <p>
            An argument
           </p>
          </dd>
         </dl>
         <dl class="py attribute">
          <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.Demo.arg2">
           <{{ sig_prename_tag }} class="sig-name descname">
            arg2
           </{{ sig_prename_tag }}>
           <a class="headerlink" href="#tests.test_output.typevars_demo.Demo.arg2" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            <strong>
             Type:
            </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-class docutils literal notranslate">
              <span class="pre">
               int
              </span>
             </code>
            </a>
           </p>
           <p>
            Another argument
           </p>
          </dd>
         </dl>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.FR">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          FR
         </{{ sig_prename_tag }}>
         <em class="property">
          = TypeVar(FR, bound=SlotsDemo)
         </em>
         <a class="headerlink" href="#tests.test_output.typevars_demo.FR" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
         </p>
         <p>
          Invariant
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
          bound to
          <a class="reference internal" href="#tests.test_output.typevars_demo.SlotsDemo" title="tests.test_output.typevars_demo.SlotsDemo">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             tests.test_output.typevars_demo.SlotsDemo
            </span>
           </code>
          </a>
          .
         </p>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.S">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          S
         </{{ sig_prename_tag }}>
         <em class="property">
          = TypeVar(S, bound=SlotsDemo)
         </em>
         <a class="headerlink" href="#tests.test_output.typevars_demo.S" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
         </p>
         <p>
          Invariant
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
          bound to
          <a class="reference internal" href="#tests.test_output.typevars_demo.SlotsDemo" title="tests.test_output.typevars_demo.SlotsDemo">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             tests.test_output.typevars_demo.SlotsDemo
            </span>
           </code>
          </a>
          .
         </p>
        </dd>
       </dl>
       <dl class="py class">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.SlotsDemo">
         <em class="property">
          class
         </em>
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          SlotsDemo
         </{{ sig_prename_tag }}>
         <span class="sig-paren">
          (
         </span>
         <em class="sig-param">
          <span class="n">
           arg1
          </span>
         </em>
         ,
         <em class="sig-param">
          <span class="n">
           arg2
          </span>
         </em>
         <span class="sig-paren">
          )
         </span>
         <a class="reference internal" href="_modules/tests/test_output/typevars_demo.html#SlotsDemo">
          <span class="viewcode-link">
           [source]
          </span>
         </a>
         <a class="headerlink" href="#tests.test_output.typevars_demo.SlotsDemo" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          An attrs class with slots=True
         </p>
         <dl class="py attribute">
          <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.SlotsDemo.arg1">
           <{{ sig_prename_tag }} class="sig-name descname">
            arg1
           </{{ sig_prename_tag }}>
           <a class="headerlink" href="#tests.test_output.typevars_demo.SlotsDemo.arg1" 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>
           <p>
            An argument
           </p>
          </dd>
         </dl>
         <dl class="py attribute">
          <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.SlotsDemo.arg2">
           <{{ sig_prename_tag }} class="sig-name descname">
            arg2
           </{{ sig_prename_tag }}>
           <a class="headerlink" href="#tests.test_output.typevars_demo.SlotsDemo.arg2" title="Permalink to this definition">
            ¶
           </a>
          </dt>
          <dd>
           <p>
            <strong>
             Type:
            </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-class docutils literal notranslate">
              <span class="pre">
               int
              </span>
             </code>
            </a>
           </p>
           <p>
            Another argument
           </p>
          </dd>
         </dl>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.T">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          T
         </{{ sig_prename_tag }}>
         <em class="property">
          = TypeVar(T)
         </em>
         <a class="headerlink" href="#tests.test_output.typevars_demo.T" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
         </p>
         <p>
          Invariant
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
          .
         </p>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.T_co">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          T_co
         </{{ sig_prename_tag }}>
         <em class="property">
          = TypeVar(T_co, covariant=True)
         </em>
         <a class="headerlink" href="#tests.test_output.typevars_demo.T_co" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
         </p>
         <p>
          Covariant
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
          .
         </p>
        </dd>
       </dl>
       <dl class="py data">
        <dt{{ sig_object_class }} id="tests.test_output.typevars_demo.T_contra">
         <{{ sig_prename_tag }} class="sig-prename descclassname">
          tests.test_output.typevars_demo.
         </{{ sig_prename_tag }}>
         <{{ sig_prename_tag }} class="sig-name descname">
          T_contra
         </{{ sig_prename_tag }}>
         <em class="property">
          = TypeVar(T_contra, contravariant=True)
         </em>
         <a class="headerlink" href="#tests.test_output.typevars_demo.T_contra" title="Permalink to this definition">
          ¶
         </a>
        </dt>
        <dd>
         <p>
          <strong>
           Type:
          </strong>
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
         </p>
         <p>
          Contravariant
          <a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.TypeVar" title="(in Python v3.14)">
           <code class="xref py py-class docutils literal notranslate">
            <span class="pre">
             TypeVar
            </span>
           </code>
          </a>
          .
         </p>
        </dd>
       </dl>
      </div>{% if sphinx_version >= (8, 1) %}
      <div class="clearer">
      </div>{% endif %}
     </div>
    </div>
   </div>
   <div class="clearer">
   </div>
  </div>
 </body>
</html>
