">Instance</span><span class="p">,</span>
        <span class="n">profile</span><span class="p">:</span> <span class="n">AbstractProfile</span><span class="p">,</span>
        <span class="n">ballot</span><span class="p">:</span> <span class="n">AbstractOrdinalBallot</span><span class="p">,</span>
    <span class="p">):</span>
        <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">ballot</span><span class="p">,</span> <span class="n">AbstractOrdinalBallot