Skip to content

Commit

Permalink
deploy: b36b5de
Browse files Browse the repository at this point in the history
  • Loading branch information
rsokl committed Jan 1, 2025
1 parent 3f559eb commit 37b44ed
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/_hydra_overloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen._hydra_overloads</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">Provides annotation overloads for various hydra functions, using the types defined in `hydra_zen.typing`.</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/_launch.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen._launch</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="kn">import</span> <span class="nn">warnings</span>
<span class="kn">from</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="n">UserList</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.structured_configs._implementations</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="kn">import</span> <span class="nn">functools</span>
<span class="kn">import</span> <span class="nn">inspect</span>
Expand Down Expand Up @@ -1454,7 +1454,7 @@ <h1>Source code for hydra_zen.structured_configs._implementations</h1><div class

<span class="k">if</span> <span class="n">cast</span> <span class="ow">in</span> <span class="p">{</span><span class="nb">list</span><span class="p">,</span> <span class="nb">tuple</span><span class="p">,</span> <span class="nb">dict</span><span class="p">}:</span>
<span class="n">x</span> <span class="o">=</span> <span class="bp">cls</span><span class="o">.</span><span class="n">_sanitize_collection</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">convert_dataclass</span><span class="o">=</span><span class="n">settings</span><span class="p">[</span><span class="s2">&quot;dataclass&quot;</span><span class="p">])</span>
<span class="k">return</span> <span class="n">field</span><span class="p">(</span><span class="n">default_factory</span><span class="o">=</span><span class="k">lambda</span><span class="p">:</span> <span class="n">cast</span><span class="p">(</span><span class="n">x</span><span class="p">))</span>
<span class="k">return</span> <span class="n">field</span><span class="p">(</span><span class="n">default_factory</span><span class="o">=</span><span class="k">lambda</span><span class="p">:</span> <span class="n">cast</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> <span class="c1"># type: ignore</span>
<span class="k">return</span> <span class="n">field</span><span class="p">(</span><span class="n">default_factory</span><span class="o">=</span><span class="k">lambda</span><span class="p">:</span> <span class="n">x</span><span class="p">)</span>

<div class="viewcode-block" id="BuildsFn._make_hydra_compatible">
Expand Down Expand Up @@ -2381,7 +2381,7 @@ <h1>Source code for hydra_zen.structured_configs._implementations</h1><div class
<span class="sd"> &gt;&gt;&gt; ChildConf = builds(dict, b=-2, c=-3, builds_bases=(ParentConf,))</span>
<span class="sd"> &gt;&gt;&gt; instantiate(ChildConf)</span>
<span class="sd"> {&#39;a&#39;: 1, &#39;b&#39;: -2, &#39;c&#39;: -3}</span>
<span class="sd"> &gt;&gt;&gt; issubclass(ChildConf, ParentConf)</span>
<span class="sd"> &gt;&gt;&gt; issubclass(ChildConf, ParentConf) # type: ignore</span>
<span class="sd"> True</span>

<span class="sd"> .. _builds-validation:</span>
Expand Down Expand Up @@ -3001,7 +3001,7 @@ <h1>Source code for hydra_zen.structured_configs._implementations</h1><div class
<span class="k">if</span> <span class="n">is_dataclass</span><span class="p">(</span><span class="n">target</span><span class="p">):</span>
<span class="n">_fields</span> <span class="o">=</span> <span class="p">{</span><span class="n">f</span><span class="o">.</span><span class="n">name</span><span class="p">:</span> <span class="n">f</span> <span class="k">for</span> <span class="n">f</span> <span class="ow">in</span> <span class="n">fields</span><span class="p">(</span><span class="n">target</span><span class="p">)}</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">_fields</span> <span class="o">=</span> <span class="n">target</span><span class="o">.</span><span class="n">__fields__</span>
<span class="n">_fields</span> <span class="o">=</span> <span class="n">target</span><span class="o">.</span><span class="n">__fields__</span> <span class="c1"># type: ignore</span>
<span class="n">_update</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">name</span><span class="p">,</span> <span class="n">param</span> <span class="ow">in</span> <span class="n">signature_params</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">if</span> <span class="n">name</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">_fields</span><span class="p">:</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/structured_configs/_just.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.structured_configs._just</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>

<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">FrozenSet</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Type</span><span class="p">,</span> <span class="n">TypeVar</span><span class="p">,</span> <span class="n">Union</span><span class="p">,</span> <span class="n">overload</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.structured_configs._make_config</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Type</span><span class="p">,</span> <span class="n">Union</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.structured_configs._make_custom_builds</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="c1"># pyright: strict</span>
<span class="kn">import</span> <span class="nn">inspect</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.structured_configs._type_guards</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="c1"># pyright: strict</span>
<span class="kn">from</span> <span class="nn">dataclasses</span> <span class="kn">import</span> <span class="n">MISSING</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/third_party/beartype.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.third_party.beartype</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="kn">import</span> <span class="nn">inspect</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">TypeVar</span><span class="p">,</span> <span class="n">cast</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/third_party/pydantic.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.third_party.pydantic</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="c1"># pyright: reportUnnecessaryTypeIgnoreComment=false</span>
<span class="kn">import</span> <span class="nn">functools</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/typing/_implementations.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.typing._implementations</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>

<span class="c1"># pyright: strict</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/_modules/hydra_zen/wrapper/_implementations.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
<article class="bd-article">

<h1>Source code for hydra_zen.wrapper._implementations</h1><div class="highlight"><pre>
<span></span><span class="c1"># Copyright (c) 2024 Massachusetts Institute of Technology</span>
<span></span><span class="c1"># Copyright (c) 2025 Massachusetts Institute of Technology</span>
<span class="c1"># SPDX-License-Identifier: MIT</span>
<span class="c1"># pyright: strict, reportUnnecessaryTypeIgnoreComment = true, reportUnnecessaryIsInstance = false</span>

Expand Down
2 changes: 1 addition & 1 deletion docs/generated/hydra_zen.builds.html
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ <h1>hydra_zen.builds<a class="headerlink" href="#hydra-zen-builds" title="Link t
<span class="gp">&gt;&gt;&gt; </span><span class="n">ChildConf</span> <span class="o">=</span> <span class="n">builds</span><span class="p">(</span><a class="sphinx-codeautolink-a" href="https://docs.python.org/3/library/stdtypes.html#dict" title="dict"><span class="nb">dict</span></a><span class="p">,</span> <span class="n">b</span><span class="o">=-</span><span class="mi">2</span><span class="p">,</span> <span class="n">c</span><span class="o">=-</span><span class="mi">3</span><span class="p">,</span> <span class="n">builds_bases</span><span class="o">=</span><span class="p">(</span><span class="n">ParentConf</span><span class="p">,))</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">instantiate</span><span class="p">(</span><span class="n">ChildConf</span><span class="p">)</span>
<span class="go">{'a': 1, 'b': -2, 'c': -3}</span>
<span class="gp">&gt;&gt;&gt; </span><a class="sphinx-codeautolink-a" href="https://docs.python.org/3/library/functions.html#issubclass" title="issubclass"><span class="nb">issubclass</span></a><span class="p">(</span><span class="n">ChildConf</span><span class="p">,</span> <span class="n">ParentConf</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><a class="sphinx-codeautolink-a" href="https://docs.python.org/3/library/functions.html#issubclass" title="issubclass"><span class="nb">issubclass</span></a><span class="p">(</span><span class="n">ChildConf</span><span class="p">,</span> <span class="n">ParentConf</span><span class="p">)</span> <span class="c1"># type: ignore</span>
<span class="go">True</span>
</pre></div>
</div>
Expand Down

0 comments on commit 37b44ed

Please sign in to comment.