Skip to content

Commit

Permalink
master docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Jan 4, 2024
1 parent f80e7dd commit 979f581
Show file tree
Hide file tree
Showing 58 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 0.1.0rc0/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4496bfa0f751289bfed38a9dc237c843
config: cb727d83d1c0ab41ff400eadc9261e1d
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified 0.1.0rc0/.doctrees/environment.pickle
Binary file not shown.
Binary file modified 0.1.0rc0/.doctrees/index.doctree
Binary file not shown.
Binary file modified 0.1.0rc0/.doctrees/pages/api/exceptions.doctree
Binary file not shown.
Binary file modified 0.1.0rc0/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified 0.1.0rc0/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified 0.1.0rc0/.doctrees/pages/install.doctree
Binary file not shown.
Binary file modified 0.1.0rc0/.doctrees/pages/quickstart.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion 0.1.1/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 07f0512fd2129e5aac955188fa9b5556
config: 8529196b84916442ba9ee13bd38af8e4
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified 0.1.1/.doctrees/environment.pickle
Binary file not shown.
Binary file modified 0.1.1/.doctrees/index.doctree
Binary file not shown.
Binary file modified 0.1.1/.doctrees/pages/api/exceptions.doctree
Binary file not shown.
Binary file modified 0.1.1/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified 0.1.1/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified 0.1.1/.doctrees/pages/examples.doctree
Binary file not shown.
Binary file modified 0.1.1/.doctrees/pages/install.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion 0.2.0/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 58eb175f1be57e300089131022f60275
config: 9d72afc0ef047dbed8bf6396f3727f20
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified 0.2.0/.doctrees/environment.pickle
Binary file not shown.
Binary file modified 0.2.0/.doctrees/index.doctree
Binary file not shown.
Binary file modified 0.2.0/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified 0.2.0/.doctrees/pages/api/functional.doctree
Binary file not shown.
Binary file modified 0.2.0/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified 0.2.0/.doctrees/pages/examples.doctree
Binary file not shown.
Binary file modified 0.2.0/.doctrees/pages/install.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion 0.3.0/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: af4cbd4e4c9f64d35096c803810cc377
config: 08fb4ec530590b64c90f93cf4d09abb7
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified 0.3.0/.doctrees/environment.pickle
Binary file not shown.
Binary file modified 0.3.0/.doctrees/index.doctree
Binary file not shown.
Binary file modified 0.3.0/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified 0.3.0/.doctrees/pages/api/functional.doctree
Binary file not shown.
Binary file modified 0.3.0/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified 0.3.0/.doctrees/pages/examples.doctree
Binary file not shown.
Binary file modified 0.3.0/.doctrees/pages/install.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion 0.4.0/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 08be7e2d3e78615e04250f74d7c70191
config: f5f6fdcfaa43f7ae3b82a9229622359a
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified 0.4.0/.doctrees/environment.pickle
Binary file not shown.
Binary file modified 0.4.0/.doctrees/index.doctree
Binary file not shown.
Binary file modified 0.4.0/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified 0.4.0/.doctrees/pages/api/functional.doctree
Binary file not shown.
Binary file modified 0.4.0/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified 0.4.0/.doctrees/pages/examples.doctree
Binary file not shown.
Binary file modified 0.4.0/.doctrees/pages/install.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion 0.4.1/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 05426e8caff1f106b5b1d128cfcb2adb
config: c4207ed7960d58f5193d034e933703a4
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified 0.4.1/.doctrees/environment.pickle
Binary file not shown.
Binary file modified 0.4.1/.doctrees/index.doctree
Binary file not shown.
Binary file modified 0.4.1/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified 0.4.1/.doctrees/pages/api/functional.doctree
Binary file not shown.
Binary file modified 0.4.1/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified 0.4.1/.doctrees/pages/examples.doctree
Binary file not shown.
Binary file modified 0.4.1/.doctrees/pages/install.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion master/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2b5f263944fabb76034cb72097f5aa7f
config: 056a42a68d370edd8d49b148560d0f09
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified master/.doctrees/environment.pickle
Binary file not shown.
Binary file modified master/.doctrees/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/pages/api/factory.doctree
Binary file not shown.
Binary file modified master/.doctrees/pages/api/functional.doctree
Binary file not shown.
Binary file modified master/.doctrees/pages/api/registry.doctree
Binary file not shown.
Binary file modified master/.doctrees/pages/examples.doctree
Binary file not shown.
Binary file modified master/.doctrees/pages/install.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion master/_modules/hydra_slayer/functional.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h1>Source code for hydra_slayer.functional</h1><div class="highlight"><pre>

<span class="c1"># assume that name of the factory can be provided as first argument</span>
<span class="c1"># or directly by keyword</span>
<span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwarg</span> <span class="o">=</span> <span class="n">_extract_factory_name_arg</span><span class="p">(</span>
<span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">_extract_factory_name_arg</span><span class="p">(</span>
<span class="n">factory_key</span><span class="o">=</span><span class="n">factory_key</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">=</span><span class="n">kwargs</span>
<span class="p">)</span>
<span class="k">if</span> <span class="n">name</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
Expand Down
6 changes: 3 additions & 3 deletions master/_modules/hydra_slayer/registry.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h1>Source code for hydra_slayer.registry</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="ow">not</span> <span class="n">provided_name</span><span class="p">:</span>
<span class="n">provided_name</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">f</span><span class="p">,</span> <span class="s2">&quot;__name__&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">provided_name</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Factory </span><span class="si">{</span><span class="n">f</span><span class="si">}</span><span class="s2"> has no &#39;__name__&#39; and no name was provided&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Factory &#39;</span><span class="si">{</span><span class="n">f</span><span class="si">}</span><span class="s2">&#39; has no &#39;__name__&#39; and no name was provided&quot;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">provided_name</span> <span class="o">==</span> <span class="s2">&quot;&lt;lambda&gt;&quot;</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Name for lambda factories must be provided&quot;</span><span class="p">)</span>
<span class="k">return</span> <span class="n">provided_name</span>
Expand Down Expand Up @@ -325,9 +325,9 @@ <h1>Source code for hydra_slayer.registry</h1><div class="highlight"><pre>
<span class="n">prefix</span> <span class="o">=</span> <span class="p">[</span><span class="n">prefix</span><span class="p">]</span>
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">prefix</span><span class="p">,</span> <span class="nb">list</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">any</span><span class="p">((</span><span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="nb">str</span><span class="p">))</span> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">prefix</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;All prefix in list must be strings.&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;All prefix in list must be strings&quot;</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Prefix must be a list or a string, got </span><span class="si">{</span><span class="nb">type</span><span class="p">(</span><span class="n">prefix</span><span class="p">)</span><span class="si">}</span><span class="s2">.&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Prefix must be a list or a string, got </span><span class="si">{</span><span class="nb">type</span><span class="p">(</span><span class="n">prefix</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>

<span class="n">to_add</span> <span class="o">=</span> <span class="p">{</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">p</span><span class="si">}{</span><span class="n">name</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">:</span> <span class="n">factories</span><span class="p">[</span><span class="n">name</span><span class="p">]</span> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">prefix</span> <span class="k">for</span> <span class="n">name</span> <span class="ow">in</span> <span class="n">names_to_add</span><span class="p">}</span>
<span class="bp">self</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="o">**</span><span class="n">to_add</span><span class="p">)</span></div>
Expand Down

0 comments on commit 979f581

Please sign in to comment.