Buckets:
ktongue/docker_container / simsite /venv /lib /python3.14 /site-packages /fontTools /misc /enumTools.py
| """Enum-related utilities, including backports for older Python versions.""" | |
| from __future__ import annotations | |
| from enum import Enum | |
| __all__ = ["StrEnum"] | |
| # StrEnum is only available in Python 3.11+ | |
| try: | |
| from enum import StrEnum | |
| except ImportError: | |
| class StrEnum(str, Enum): | |
| """ | |
| Minimal backport of Python 3.11's StrEnum for older versions. | |
| An Enum where all members are also strings. | |
| """ | |
| def __str__(self) -> str: | |
| return self.value | |
Xet Storage Details
- Size:
- 502 Bytes
- Xet hash:
- c41000bf53e27b5d944d13846509a71e9076a7fb49f4b541539f1855540eab70
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.