sphinx-toolbox Demo - Autoprotocol ¶
- protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. {{ sig_prename_tag }}> <{{ sig_prename_tag }} class="sig-name descname"> Frobnicater {{ sig_prename_tag }}> [source] ¶
- 
         typing.Protocol.This protocol is runtime checkable . Classes that implement this protocol must have the following methods / attributes: 
- protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. {{ sig_prename_tag }}> <{{ sig_prename_tag }} class="sig-name descname"> HasLessThan {{ sig_prename_tag }}> [source] ¶
- 
         typing.Protocolfor classes that support the<operator.Classes that implement this protocol must have the following methods / attributes: 
- protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. {{ sig_prename_tag }}> <{{ sig_prename_tag }} class="sig-name descname"> HasGreaterThan {{ sig_prename_tag }}> [source] ¶
- 
         typing.Protocol.Classes that implement this protocol must have the following methods / attributes: 
- protocol <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. {{ sig_prename_tag }}> <{{ sig_prename_tag }} class="sig-name descname"> HasGreaterThan {{ sig_prename_tag }}> [source]
- 
         Bases: typing.ProtocolClasses that implement this protocol must have the following methods / attributes: - <{{ sig_prename_tag }} class="sig-name descname"> __gt__ {{ sig_prename_tag }}> ( 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 }}> <{{ sig_prename_tag }} class="sig-name descname"> SupportsAbs {{ sig_prename_tag }}> [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{% if sphinx_version >= (8, 2) %}method{% endif %} <{{ sig_prename_tag }} class="sig-name descname"> __abs__ {{ sig_prename_tag }}> ( ) {%- if sphinx_version >= (4, 1) %} {{ tco_annotation }} {% elif sphinx_version >= (4, 0) %} → {{ tco_annotation }} {% else %} → T_co {% endif -%} [source] ¶