Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /click /_utils.py
| from __future__ import annotations | |
| import enum | |
| import typing as t | |
| class Sentinel(enum.Enum): | |
| """Enum used to define sentinel values. | |
| .. seealso:: | |
| `PEP 661 - Sentinel Values <https://peps.python.org/pep-0661/>`_. | |
| """ | |
| UNSET = object() | |
| FLAG_NEEDS_VALUE = object() | |
| def __repr__(self) -> str: | |
| return f"{self.__class__.__name__}.{self.name}" | |
| UNSET: t.Literal[Sentinel.UNSET] = Sentinel.UNSET | |
| """Sentinel used to indicate that a value is not set.""" | |
| FLAG_NEEDS_VALUE: t.Literal[Sentinel.FLAG_NEEDS_VALUE] = Sentinel.FLAG_NEEDS_VALUE | |
| """Sentinel used to indicate an option was passed as a flag without a | |
| value but is not a flag option. | |
| ``Option.consume_value`` uses this to prompt or use the ``flag_value``. | |
| """ | |
| T_UNSET: t.TypeAlias = t.Literal[Sentinel.UNSET] | |
| """Type hint for the :data:`UNSET` sentinel value.""" | |
| T_FLAG_NEEDS_VALUE: t.TypeAlias = t.Literal[Sentinel.FLAG_NEEDS_VALUE] | |
| """Type hint for the :data:`FLAG_NEEDS_VALUE` sentinel value.""" | |
Xet Storage Details
- Size:
- 996 Bytes
- Xet hash:
- 6fb2ff85e7e742b99f5c3a8c36bf125720eb740afc71eb72c3c225c714fb016e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.