Skip to content

Commit

Permalink
deploy: bd54f77
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Oct 19, 2024
1 parent 83fc750 commit 001838a
Show file tree
Hide file tree
Showing 107 changed files with 890 additions and 687 deletions.
Binary file modified .doctrees/api/tyro/_arguments/index.doctree
Binary file not shown.
Binary file modified .doctrees/api/tyro/_fields/index.doctree
Binary file not shown.
Binary file modified .doctrees/api/tyro/_instantiators/index.doctree
Binary file not shown.
Binary file modified .doctrees/api/tyro/_parsers/index.doctree
Binary file not shown.
Binary file modified .doctrees/api/tyro/_resolver/index.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions _modules/functools/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/10_flax/">JAX/Flax Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/11_custom_constructors/">Custom Constructors</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/12_aliases/">Argument Aliases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/12_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/13_type_statement/">Type Aliases (Python 3.12+)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/13_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/14_suppress_console_outputs/">Cleaner Console Outputs for Scripts with Multiple Workers</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/15_decorator_subcommands/">Decorator-based Subcommands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/04_additional/16_type_statement/">Type Aliases (Python 3.12+)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Notes</span></p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/10_flax/">JAX/Flax Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/11_custom_constructors/">Custom Constructors</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/12_aliases/">Argument Aliases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/12_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/13_type_statement/">Type Aliases (Python 3.12+)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/13_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/14_suppress_console_outputs/">Cleaner Console Outputs for Scripts with Multiple Workers</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/15_decorator_subcommands/">Decorator-based Subcommands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../examples/04_additional/16_type_statement/">Type Aliases (Python 3.12+)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Notes</span></p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions _modules/tyro/_argparse/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/10_flax/">JAX/Flax Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/11_custom_constructors/">Custom Constructors</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_aliases/">Argument Aliases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_type_statement/">Type Aliases (Python 3.12+)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/14_suppress_console_outputs/">Cleaner Console Outputs for Scripts with Multiple Workers</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/15_decorator_subcommands/">Decorator-based Subcommands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/16_type_statement/">Type Aliases (Python 3.12+)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Notes</span></p>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions _modules/tyro/_argparse_formatter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/10_flax/">JAX/Flax Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/11_custom_constructors/">Custom Constructors</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_aliases/">Argument Aliases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_type_statement/">Type Aliases (Python 3.12+)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/14_suppress_console_outputs/">Cleaner Console Outputs for Scripts with Multiple Workers</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/15_decorator_subcommands/">Decorator-based Subcommands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/16_type_statement/">Type Aliases (Python 3.12+)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Notes</span></p>
<ul>
Expand Down
17 changes: 4 additions & 13 deletions _modules/tyro/_arguments/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/10_flax/">JAX/Flax Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/11_custom_constructors/">Custom Constructors</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_aliases/">Argument Aliases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_type_statement/">Type Aliases (Python 3.12+)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/14_suppress_console_outputs/">Cleaner Console Outputs for Scripts with Multiple Workers</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/15_decorator_subcommands/">Decorator-based Subcommands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/16_type_statement/">Type Aliases (Python 3.12+)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Notes</span></p>
<ul>
Expand Down Expand Up @@ -280,7 +280,6 @@ <h1>Source code for tyro._arguments</h1><div class="highlight"><pre>
<span class="n">TYPE_CHECKING</span><span class="p">,</span>
<span class="n">Any</span><span class="p">,</span>
<span class="n">Callable</span><span class="p">,</span>
<span class="n">Dict</span><span class="p">,</span>
<span class="n">Iterable</span><span class="p">,</span>
<span class="n">Mapping</span><span class="p">,</span>
<span class="n">Optional</span><span class="p">,</span>
Expand All @@ -295,8 +294,7 @@ <h1>Source code for tyro._arguments</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">shtab</span>

<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">_argparse</span> <span class="k">as</span> <span class="n">argparse</span>
<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">_fields</span><span class="p">,</span> <span class="n">_instantiators</span><span class="p">,</span> <span class="n">_resolver</span><span class="p">,</span> <span class="n">_strings</span>
<span class="kn">from</span> <span class="nn">._typing</span> <span class="kn">import</span> <span class="n">TypeForm</span>
<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">_fields</span><span class="p">,</span> <span class="n">_instantiators</span><span class="p">,</span> <span class="n">_strings</span>
<span class="kn">from</span> <span class="nn">.conf</span> <span class="kn">import</span> <span class="n">_markers</span>

<span class="k">if</span> <span class="n">TYPE_CHECKING</span><span class="p">:</span>
Expand Down Expand Up @@ -384,7 +382,6 @@ <h1>Source code for tyro._arguments</h1><div class="highlight"><pre>
<span class="n">extern_prefix</span><span class="p">:</span> <span class="nb">str</span> <span class="c1"># User-facing prefix.</span>
<span class="n">subcommand_prefix</span><span class="p">:</span> <span class="nb">str</span> <span class="c1"># Prefix for nesting.</span>
<span class="n">field</span><span class="p">:</span> <span class="n">_fields</span><span class="o">.</span><span class="n">FieldDefinition</span>
<span class="n">type_from_typevar</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="n">TypeVar</span><span class="p">,</span> <span class="n">TypeForm</span><span class="p">[</span><span class="n">Any</span><span class="p">]]</span>

<div class="viewcode-block" id="ArgumentDefinition.add_argument">
<a class="viewcode-back" href="../../../api/tyro/_arguments/#tyro._arguments.ArgumentDefinition.add_argument">[docs]</a>
Expand Down Expand Up @@ -540,12 +537,7 @@ <h1>Source code for tyro._arguments</h1><div class="highlight"><pre>
<span class="n">arg</span><span class="p">:</span> <span class="n">ArgumentDefinition</span><span class="p">,</span>
<span class="n">lowered</span><span class="p">:</span> <span class="n">LoweredArgumentDefinition</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="p">(</span>
<span class="n">_resolver</span><span class="o">.</span><span class="n">apply_type_from_typevar</span><span class="p">(</span>
<span class="n">arg</span><span class="o">.</span><span class="n">field</span><span class="o">.</span><span class="n">type_or_callable</span><span class="p">,</span> <span class="n">arg</span><span class="o">.</span><span class="n">type_from_typevar</span>
<span class="p">)</span>
<span class="ow">is</span> <span class="ow">not</span> <span class="nb">bool</span>
<span class="p">):</span>
<span class="k">if</span> <span class="n">arg</span><span class="o">.</span><span class="n">field</span><span class="o">.</span><span class="n">type_or_callable</span> <span class="ow">is</span> <span class="ow">not</span> <span class="nb">bool</span><span class="p">:</span>
<span class="k">return</span>

<span class="k">if</span> <span class="p">(</span>
Expand Down Expand Up @@ -591,7 +583,6 @@ <h1>Source code for tyro._arguments</h1><div class="highlight"><pre>
<span class="k">try</span><span class="p">:</span>
<span class="n">instantiator</span><span class="p">,</span> <span class="n">metadata</span> <span class="o">=</span> <span class="n">_instantiators</span><span class="o">.</span><span class="n">instantiator_from_type</span><span class="p">(</span>
<span class="n">arg</span><span class="o">.</span><span class="n">field</span><span class="o">.</span><span class="n">type_or_callable</span><span class="p">,</span>
<span class="n">arg</span><span class="o">.</span><span class="n">type_from_typevar</span><span class="p">,</span>
<span class="n">arg</span><span class="o">.</span><span class="n">field</span><span class="o">.</span><span class="n">markers</span><span class="p">,</span>
<span class="p">)</span>
<span class="k">except</span> <span class="n">_instantiators</span><span class="o">.</span><span class="n">UnsupportedTypeAnnotationError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
Expand Down
4 changes: 2 additions & 2 deletions _modules/tyro/_calling/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/10_flax/">JAX/Flax Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/11_custom_constructors/">Custom Constructors</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_aliases/">Argument Aliases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/12_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_type_statement/">Type Aliases (Python 3.12+)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/13_counters/">Counters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/14_suppress_console_outputs/">Cleaner Console Outputs for Scripts with Multiple Workers</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/15_decorator_subcommands/">Decorator-based Subcommands</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../examples/04_additional/16_type_statement/">Type Aliases (Python 3.12+)</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Notes</span></p>
<ul>
Expand Down
Loading

0 comments on commit 001838a

Please sign in to comment.