Skip to content

Commit

Permalink
Deployed 7210384 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bitplane committed Sep 24, 2023
1 parent b4bf983 commit 9070294
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions construction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,12 +557,6 @@ <h2 id="ranges-from-a-string">Ranges from a string</h2>
</span><span id="__span-1-6"><a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a><span class="c1"># The ranges are sorted and combined as they are added</span>
</span><span id="__span-1-7"><a id="__codelineno-1-7" name="__codelineno-1-7" href="#__codelineno-1-7"></a><span class="n">overlapping</span> <span class="o">=</span> <span class="n">Ranges</span><span class="p">(</span><span class="s2">&quot;start:10, 14, 1:3&quot;</span><span class="p">)</span>
</span><span id="__span-1-8"><a id="__codelineno-1-8" name="__codelineno-1-8" href="#__codelineno-1-8"></a><span class="k">assert</span> <span class="n">overlapping</span> <span class="o">==</span> <span class="s2">&quot;:10,14&quot;</span>
</span><span id="__span-1-9"><a id="__codelineno-1-9" name="__codelineno-1-9" href="#__codelineno-1-9"></a>
</span><span id="__span-1-10"><a id="__codelineno-1-10" name="__codelineno-1-10" href="#__codelineno-1-10"></a><span class="c1"># But you can&#39;t hash Ranges because they&#39;re mutable</span>
</span><span id="__span-1-11"><a id="__codelineno-1-11" name="__codelineno-1-11" href="#__codelineno-1-11"></a><span class="kn">import</span> <span class="nn">pytest</span>
</span><span id="__span-1-12"><a id="__codelineno-1-12" name="__codelineno-1-12" href="#__codelineno-1-12"></a>
</span><span id="__span-1-13"><a id="__codelineno-1-13" name="__codelineno-1-13" href="#__codelineno-1-13"></a><span class="k">with</span> <span class="n">pytest</span><span class="o">.</span><span class="n">raises</span><span class="p">(</span><span class="ne">ValueError</span><span class="p">):</span>
</span><span id="__span-1-14"><a id="__codelineno-1-14" name="__codelineno-1-14" href="#__codelineno-1-14"></a> <span class="n">a</span> <span class="o">=</span> <span class="p">{</span><span class="n">overlapping</span><span class="p">:</span> <span class="s2">&quot;whatever&quot;</span><span class="p">}</span>
</span></code></pre></div>
<h2 id="ranges-from-range-like-objects">Ranges from range-like objects</h2>
<p>If it has a start, stop and step attribute then it quacks like a range so you
Expand Down
Loading

0 comments on commit 9070294

Please sign in to comment.