Skip to content
This repository was archived by the owner on Jun 16, 2018. It is now read-only.

Commit 6abcbcc

Browse files
committed
Added is_incumbent to the Candidate class documentation
1 parent 0fba660 commit 6abcbcc

8 files changed

Lines changed: 21 additions & 3 deletions

File tree

788 Bytes
Binary file not shown.
1.21 KB
Binary file not shown.

docs/_build/html/_sources/theapclient.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ A choice for voters in a race. In the presidential race, a person, like Barack O
373373
>>> obj.first_name
374374
'Michele'
375375

376+
.. attribute:: obj.is_incumbent
377+
378+
Returns `True` if the candidate is the current officeholder.
379+
376380
.. attribute:: obj.is_winner
377381

378382
Returns `True` if the candidate has won the race.

docs/_build/html/genindex.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,20 @@ <h2 id="I">I</h2>
216216
</dt>
217217

218218

219-
<dt><a href="theapclient.html#obj.is_primary">is_primary (obj attribute)</a>
219+
<dt><a href="theapclient.html#obj.is_incumbent">is_incumbent (obj attribute)</a>
220220
</dt>
221221

222222

223-
<dt><a href="theapclient.html#self.is_referendum">is_referendum (self attribute)</a>
223+
<dt><a href="theapclient.html#obj.is_primary">is_primary (obj attribute)</a>
224224
</dt>
225225

226226
</dl></td>
227227
<td style="width: 33%" valign="top"><dl>
228228

229+
<dt><a href="theapclient.html#self.is_referendum">is_referendum (self attribute)</a>
230+
</dt>
231+
232+
229233
<dt><a href="theapclient.html#obj.is_runoff">is_runoff (obj attribute)</a>
230234
</dt>
231235

docs/_build/html/objects.inv

11 Bytes
Binary file not shown.

docs/_build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_build/html/theapclient.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,12 @@ <h3>Candidates<a class="headerlink" href="#candidates" title="Permalink to this
547547
</div>
548548
</dd></dl>
549549

550+
<dl class="attribute">
551+
<dt id="obj.is_incumbent">
552+
<tt class="descclassname">obj.</tt><tt class="descname">is_incumbent</tt><a class="headerlink" href="#obj.is_incumbent" title="Permalink to this definition"></a></dt>
553+
<dd><p>Returns <cite>True</cite> if the candidate is the current officeholder.</p>
554+
</dd></dl>
555+
550556
<dl class="attribute">
551557
<dt id="obj.is_winner">
552558
<tt class="descclassname">obj.</tt><tt class="descname">is_winner</tt><a class="headerlink" href="#obj.is_winner" title="Permalink to this definition"></a></dt>

docs/theapclient.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ A choice for voters in a race. In the presidential race, a person, like Barack O
373373
>>> obj.first_name
374374
'Michele'
375375

376+
.. attribute:: obj.is_incumbent
377+
378+
Returns `True` if the candidate is the current officeholder.
379+
376380
.. attribute:: obj.is_winner
377381

378382
Returns `True` if the candidate has won the race.

0 commit comments

Comments
 (0)