sphinx-toolbox Demo - Autoprotocol

protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. <{{ sig_prename_tag }} class="sig-name descname"> Frobnicater [source]

typing.Protocol .

This protocol is runtime checkable .

Classes that implement this protocol must have the following methods / attributes:

<{{ sig_prename_tag }} class="sig-name descname"> frobnicate ( something ) {%- if sphinx_version >= (4, 1) %} Any {% else %} → Any {% endif -%} [source]
protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. <{{ sig_prename_tag }} class="sig-name descname"> HasLessThan [source]

typing.Protocol for classes that support the < operator.

Classes that implement this protocol must have the following methods / attributes:

<{{ sig_prename_tag }} class="sig-name descname"> __lt__ ( other ) {%- if sphinx_version >= (4, 1) %} bool {% else %} → bool {% endif -%} [source]

Return self < other .

protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. <{{ sig_prename_tag }} class="sig-name descname"> HasGreaterThan [source]

typing.Protocol .

Classes that implement this protocol must have the following methods / attributes:

<{{ sig_prename_tag }} class="sig-name descname"> __gt__ ( other ) {%- if sphinx_version >= (4, 1) %} bool {% else %} → bool {% endif -%} [source]

Return self > other .

protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. <{{ sig_prename_tag }} class="sig-name descname"> HasGreaterThan [source]

Bases: typing.Protocol

Classes that implement this protocol must have the following methods / attributes:

<{{ sig_prename_tag }} class="sig-name descname"> __gt__ ( other ) {%- if sphinx_version >= (4, 1) %} bool {% else %} → bool {% endif -%} [source]

Return self > other .

protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. <{{ sig_prename_tag }} class="sig-name descname"> SupportsAbs [source]

Bases: typing.Protocol [ +T_co ]

An ABC with one abstract method __abs__ that is covariant in its return type.

This protocol is runtime checkable .

Classes that implement this protocol must have the following methods / attributes:

abstract <{{ sig_prename_tag }} class="sig-name descname"> __abs__ ( ) {%- if sphinx_version >= (4, 1) %} {{ tco_annotation }} {% elif sphinx_version >= (4, 0) %} → {{ tco_annotation }} {% else %} → T_co {% endif -%} [source]