Skip to content

Commit

Permalink
deploy: 1540f17
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuanChen committed Aug 19, 2024
1 parent 9f78a38 commit 6539a51
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion feed_rss_created.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion feed_rss_updated.xml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions registry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2293,7 +2293,7 @@ <h2 id="chanfig.registry.Registry" class="doc doc-heading">
<a id="__codelineno-0-149" name="__codelineno-0-149"></a> <span class="bp">self</span><span class="o">.</span><span class="n">setattr</span><span class="p">(</span><span class="s2">&quot;default&quot;</span><span class="p">,</span> <span class="n">component</span><span class="p">)</span>
<a id="__codelineno-0-150" name="__codelineno-0-150"></a> <span class="k">return</span> <span class="n">component</span>
<a id="__codelineno-0-151" name="__codelineno-0-151"></a> <span class="c1"># @Registry.register</span>
<a id="__codelineno-0-152" name="__codelineno-0-152"></a> <span class="k">if</span> <span class="nb">callable</span><span class="p">(</span><span class="n">component</span><span class="p">)</span> <span class="ow">and</span> <span class="n">name</span> <span class="ow">is</span> <span class="n">Null</span><span class="p">:</span>
<a id="__codelineno-0-152" name="__codelineno-0-152"></a> <span class="k">if</span> <span class="n">component</span> <span class="ow">is</span> <span class="ow">not</span> <span class="n">Null</span> <span class="ow">and</span> <span class="nb">callable</span><span class="p">(</span><span class="n">component</span><span class="p">)</span> <span class="ow">and</span> <span class="n">name</span> <span class="ow">is</span> <span class="n">Null</span><span class="p">:</span>
<a id="__codelineno-0-153" name="__codelineno-0-153"></a> <span class="bp">self</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">component</span><span class="o">.</span><span class="vm">__name__</span><span class="p">,</span> <span class="n">component</span><span class="p">)</span>
<a id="__codelineno-0-154" name="__codelineno-0-154"></a> <span class="k">if</span> <span class="n">default</span><span class="p">:</span>
<a id="__codelineno-0-155" name="__codelineno-0-155"></a> <span class="bp">self</span><span class="o">.</span><span class="n">setattr</span><span class="p">(</span><span class="s2">&quot;default&quot;</span><span class="p">,</span> <span class="n">component</span><span class="p">)</span>
Expand Down Expand Up @@ -2411,7 +2411,7 @@ <h2 id="chanfig.registry.Registry" class="doc doc-heading">
<a id="__codelineno-0-267" name="__codelineno-0-267"></a> <span class="n">name</span> <span class="o">=</span> <span class="n">deepcopy</span><span class="p">(</span><span class="n">name</span><span class="p">)</span>
<a id="__codelineno-0-268" name="__codelineno-0-268"></a> <span class="n">name</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">name</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">getattr</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">,</span> <span class="s2">&quot;name&quot;</span><span class="p">)),</span> <span class="nb">dict</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="c1"># type: ignore[arg-type]</span>
<a id="__codelineno-0-269" name="__codelineno-0-269"></a> <span class="k">if</span> <span class="n">name</span> <span class="ow">is</span> <span class="n">Null</span><span class="p">:</span>
<a id="__codelineno-0-270" name="__codelineno-0-270"></a> <span class="n">name</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">getattr</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">)),</span> <span class="nb">dict</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<a id="__codelineno-0-270" name="__codelineno-0-270"></a> <span class="n">name</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">getattr</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">),</span> <span class="kc">None</span><span class="p">),</span> <span class="nb">dict</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<a id="__codelineno-0-271" name="__codelineno-0-271"></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">init</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lookup</span><span class="p">(</span><span class="n">name</span><span class="p">),</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="c1"># type: ignore[arg-type]</span>
</code></pre></div></td></tr></table></div>
</details>
Expand Down Expand Up @@ -2654,7 +2654,7 @@ <h3 id="chanfig.registry.Registry.build" class="doc doc-heading">
<a id="__codelineno-0-267" name="__codelineno-0-267"></a> <span class="n">name</span> <span class="o">=</span> <span class="n">deepcopy</span><span class="p">(</span><span class="n">name</span><span class="p">)</span>
<a id="__codelineno-0-268" name="__codelineno-0-268"></a> <span class="n">name</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">name</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">getattr</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">,</span> <span class="s2">&quot;name&quot;</span><span class="p">)),</span> <span class="nb">dict</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="c1"># type: ignore[arg-type]</span>
<a id="__codelineno-0-269" name="__codelineno-0-269"></a> <span class="k">if</span> <span class="n">name</span> <span class="ow">is</span> <span class="n">Null</span><span class="p">:</span>
<a id="__codelineno-0-270" name="__codelineno-0-270"></a> <span class="n">name</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">getattr</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">)),</span> <span class="nb">dict</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<a id="__codelineno-0-270" name="__codelineno-0-270"></a> <span class="n">name</span><span class="p">,</span> <span class="n">kwargs</span> <span class="o">=</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">getattr</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">),</span> <span class="kc">None</span><span class="p">),</span> <span class="nb">dict</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<a id="__codelineno-0-271" name="__codelineno-0-271"></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">init</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lookup</span><span class="p">(</span><span class="n">name</span><span class="p">),</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="c1"># type: ignore[arg-type]</span>
</code></pre></div></td></tr></table></div>
</details>
Expand Down Expand Up @@ -3222,7 +3222,7 @@ <h3 id="chanfig.registry.Registry.register" class="doc doc-heading">
<a id="__codelineno-0-149" name="__codelineno-0-149"></a> <span class="bp">self</span><span class="o">.</span><span class="n">setattr</span><span class="p">(</span><span class="s2">&quot;default&quot;</span><span class="p">,</span> <span class="n">component</span><span class="p">)</span>
<a id="__codelineno-0-150" name="__codelineno-0-150"></a> <span class="k">return</span> <span class="n">component</span>
<a id="__codelineno-0-151" name="__codelineno-0-151"></a> <span class="c1"># @Registry.register</span>
<a id="__codelineno-0-152" name="__codelineno-0-152"></a> <span class="k">if</span> <span class="nb">callable</span><span class="p">(</span><span class="n">component</span><span class="p">)</span> <span class="ow">and</span> <span class="n">name</span> <span class="ow">is</span> <span class="n">Null</span><span class="p">:</span>
<a id="__codelineno-0-152" name="__codelineno-0-152"></a> <span class="k">if</span> <span class="n">component</span> <span class="ow">is</span> <span class="ow">not</span> <span class="n">Null</span> <span class="ow">and</span> <span class="nb">callable</span><span class="p">(</span><span class="n">component</span><span class="p">)</span> <span class="ow">and</span> <span class="n">name</span> <span class="ow">is</span> <span class="n">Null</span><span class="p">:</span>
<a id="__codelineno-0-153" name="__codelineno-0-153"></a> <span class="bp">self</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">component</span><span class="o">.</span><span class="vm">__name__</span><span class="p">,</span> <span class="n">component</span><span class="p">)</span>
<a id="__codelineno-0-154" name="__codelineno-0-154"></a> <span class="k">if</span> <span class="n">default</span><span class="p">:</span>
<a id="__codelineno-0-155" name="__codelineno-0-155"></a> <span class="bp">self</span><span class="o">.</span><span class="n">setattr</span><span class="p">(</span><span class="s2">&quot;default&quot;</span><span class="p">,</span> <span class="n">component</span><span class="p">)</span>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 6539a51

Please sign in to comment.