Skip to content

Commit

Permalink
fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed Aug 28, 2023
1 parent ed9169e commit 150e841
Show file tree
Hide file tree
Showing 52 changed files with 435 additions and 417 deletions.
48 changes: 30 additions & 18 deletions docs/Source/mixins/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,10 @@ <h4 id="torrentfile.mixins.ProgMixin.NoProg" class="doc doc-heading">

<h5 id="torrentfile.mixins.ProgMixin.NoProg.update" class="doc doc-heading">
<code class="highlight language-python"><span class="n">update</span><span class="p">(</span><span class="n">value</span><span class="p">)</span></code>

<span class="doc doc-labels">
<small class="doc doc-label doc-label-staticmethod"><code>staticmethod</code></small>
</span>

<a href="#torrentfile.mixins.ProgMixin.NoProg.update" class="headerlink" title="Permanent link">#</a></h5>

Expand Down Expand Up @@ -1001,8 +1005,7 @@ <h5 id="torrentfile.mixins.ProgMixin.NoProg.update" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\mixins.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">204</span>
<span class="normal">205</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">205</span>
<span class="normal">206</span>
<span class="normal">207</span>
<span class="normal">208</span>
Expand All @@ -1015,7 +1018,10 @@ <h5 id="torrentfile.mixins.ProgMixin.NoProg.update" class="doc doc-heading">
<span class="normal">215</span>
<span class="normal">216</span>
<span class="normal">217</span>
<span class="normal">218</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">update</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">):</span>
<span class="normal">218</span>
<span class="normal">219</span>
<span class="normal">220</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">update</span><span class="p">(</span><span class="n">value</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Return the value.</span>

Expand Down Expand Up @@ -1117,9 +1123,7 @@ <h4 id="torrentfile.mixins.ProgMixin.get_progress_tracker" class="doc doc-headin

<details class="quote">
<summary>Source code in <code>torrentfile\mixins.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">220</span>
<span class="normal">221</span>
<span class="normal">222</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">222</span>
<span class="normal">223</span>
<span class="normal">224</span>
<span class="normal">225</span>
Expand All @@ -1134,7 +1138,9 @@ <h4 id="torrentfile.mixins.ProgMixin.get_progress_tracker" class="doc doc-headin
<span class="normal">234</span>
<span class="normal">235</span>
<span class="normal">236</span>
<span class="normal">237</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">get_progress_tracker</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">total</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">message</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
<span class="normal">237</span>
<span class="normal">238</span>
<span class="normal">239</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">get_progress_tracker</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">total</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">message</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return the progress bar object for external management.</span>

<span class="sd"> Parameters</span>
Expand Down Expand Up @@ -1341,6 +1347,10 @@ <h3 id="torrentfile.mixins.ProgressBar" class="doc doc-heading">

<h4 id="torrentfile.mixins.ProgressBar.close_out" class="doc doc-heading">
<code class="highlight language-python"><span class="n">close_out</span><span class="p">()</span></code>

<span class="doc doc-labels">
<small class="doc doc-label doc-label-staticmethod"><code>staticmethod</code></small>
</span>

<a href="#torrentfile.mixins.ProgressBar.close_out" class="headerlink" title="Permanent link">#</a></h4>

Expand All @@ -1361,7 +1371,9 @@ <h4 id="torrentfile.mixins.ProgressBar.close_out" class="doc doc-heading">
<span class="normal">140</span>
<span class="normal">141</span>
<span class="normal">142</span>
<span class="normal">143</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">close_out</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="normal">143</span>
<span class="normal">144</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">close_out</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Finalize the last bits of progress bar.</span>

Expand Down Expand Up @@ -1561,8 +1573,7 @@ <h4 id="torrentfile.mixins.ProgressBar.new" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\mixins.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">162</span>
<span class="normal">163</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">163</span>
<span class="normal">164</span>
<span class="normal">165</span>
<span class="normal">166</span>
Expand All @@ -1589,7 +1600,8 @@ <h4 id="torrentfile.mixins.ProgressBar.new" class="doc doc-heading">
<span class="normal">187</span>
<span class="normal">188</span>
<span class="normal">189</span>
<span class="normal">190</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@classmethod</span>
<span class="normal">190</span>
<span class="normal">191</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">new</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">total</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">path</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">length</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">50</span><span class="p">,</span> <span class="n">unit</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;bytes&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Generate a new progress bar for the given file path.</span>
Expand Down Expand Up @@ -1664,8 +1676,7 @@ <h4 id="torrentfile.mixins.ProgressBar.update" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\mixins.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">145</span>
<span class="normal">146</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">146</span>
<span class="normal">147</span>
<span class="normal">148</span>
<span class="normal">149</span>
Expand All @@ -1679,7 +1690,8 @@ <h4 id="torrentfile.mixins.ProgressBar.update" class="doc doc-heading">
<span class="normal">157</span>
<span class="normal">158</span>
<span class="normal">159</span>
<span class="normal">160</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">update</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">val</span><span class="p">:</span> <span class="nb">int</span><span class="p">):</span>
<span class="normal">160</span>
<span class="normal">161</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">update</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">val</span><span class="p">:</span> <span class="nb">int</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Update progress bar.</span>

Expand Down Expand Up @@ -1777,9 +1789,7 @@ <h3 id="torrentfile.mixins.waiting" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\mixins.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">240</span>
<span class="normal">241</span>
<span class="normal">242</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">242</span>
<span class="normal">243</span>
<span class="normal">244</span>
<span class="normal">245</span>
Expand Down Expand Up @@ -1817,7 +1827,9 @@ <h3 id="torrentfile.mixins.waiting" class="doc doc-heading">
<span class="normal">277</span>
<span class="normal">278</span>
<span class="normal">279</span>
<span class="normal">280</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">waiting</span><span class="p">(</span><span class="n">msg</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">flag</span><span class="p">:</span> <span class="nb">list</span><span class="p">,</span> <span class="n">timeout</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">20</span><span class="p">):</span>
<span class="normal">280</span>
<span class="normal">281</span>
<span class="normal">282</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">waiting</span><span class="p">(</span><span class="n">msg</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">flag</span><span class="p">:</span> <span class="nb">list</span><span class="p">,</span> <span class="n">timeout</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">20</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Show loading message while thread completes processing.</span>

Expand Down
12 changes: 6 additions & 6 deletions docs/coverage/covindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>Coverage report:
</form>
<p class="text">
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</header>
Expand Down Expand Up @@ -175,10 +175,10 @@ <h1>Coverage report:
</tr>
<tr class="file">
<td class="name left"><a href="d_1bc82e0ab2fcb2ec_mixins_py.html">torrentfile\mixins.py</a></td>
<td>105</td>
<td>107</td>
<td>0</td>
<td>4</td>
<td class="right" data-ratio="105 105">100%</td>
<td class="right" data-ratio="107 107">100%</td>
</tr>
<tr class="file">
<td class="name left"><a href="d_1bc82e0ab2fcb2ec_rebuild_py.html">torrentfile\rebuild.py</a></td>
Expand Down Expand Up @@ -219,10 +219,10 @@ <h1>Coverage report:
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>3029</td>
<td>3031</td>
<td>0</td>
<td>69</td>
<td class="right" data-ratio="3029 3029">100%</td>
<td class="right" data-ratio="3031 3031">100%</td>
</tr>
</tfoot>
</table>
Expand All @@ -234,7 +234,7 @@ <h1>Coverage report:
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
<aside class="hidden">
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec___init___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec___main___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_cli_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -121,7 +121,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_cli_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec_cli_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_commands_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -754,7 +754,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_commands_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec_commands_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_edit_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -546,7 +546,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_edit_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec_edit_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_hasher_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -211,7 +211,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_hasher_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec_hasher_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_interactive_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -662,7 +662,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_interactive_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec_interactive_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_mixins_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -497,7 +497,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_mixins_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-27 21:04 -0700
created at 2023-08-27 21:50 -0700
</p>
</div>
</footer>
Expand Down
Loading

0 comments on commit 150e841

Please sign in to comment.