sphinx-toolbox Demo - Autoprotocol ¶
- <{% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %} class="property"> {% if sphinx_version >= (9, 0) %} protocol {% else %}protocol{% endif %} {% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %}> <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. {{ sig_prename_tag }}> <{{ sig_prename_tag }} class="sig-name descname"> Frobnicater {{ sig_prename_tag }}> [source] ¶
-
This protocol is runtime checkable .
Classes that implement this protocol must have the following methods / attributes:
- <{% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %} class="property"> {% if sphinx_version >= (9, 0) %} protocol {% else %}protocol{% endif %} {% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %}> <{{ 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:
- <{% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %} class="property"> {% if sphinx_version >= (9, 0) %} protocol {% else %}protocol{% endif %} {% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %}> <{{ sig_prename_tag }} class="sig-prename descclassname"> autoprotocol_demo. {{ sig_prename_tag }}> <{{ sig_prename_tag }} class="sig-name descname"> HasGreaterThan {{ sig_prename_tag }}> [source] ¶
-
Classes that implement this protocol must have the following methods / attributes:
- <{% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %} class="property"> {% if sphinx_version >= (9, 0) %} protocol {% else %}protocol{% endif %} {% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %}> <{{ 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:
ProtocolClasses that implement this protocol must have the following methods / attributes:
- <{% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %} class="property"> {% if sphinx_version >= (9, 0) %} protocol {% else %}protocol{% endif %} {% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %}> <{{ 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:
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:
- <{% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %} class="property"> {% if sphinx_version >= (9, 0) %} abstractmethod {% else %}abstract{% if sphinx_version >= (8, 2) %}method{% endif %}{% endif %} {% if sphinx_version >= (9, 0) %}span{% else %}em{% endif %}> <{{ sig_prename_tag }} class="sig-name descname"> __abs__ {{ sig_prename_tag }}> ( ) [source] ¶
-
- Return type{% if docutils_version >= (0, 18) %} : {% endif %}
-
+T_co