Buckets:
ktongue/docker_container / .vscode-server /extensions /ms-python.python-2026.4.0 /python_files /lib /jedilsp /cattrs /literals.py
| from enum import Enum | |
| from typing import Any | |
| from ._compat import is_literal | |
| __all__ = ["is_literal", "is_literal_containing_enums"] | |
| def is_literal_containing_enums(type: Any) -> bool: | |
| """Is this a literal containing at least one Enum?""" | |
| return is_literal(type) and any(isinstance(val, Enum) for val in type.__args__) | |
Xet Storage Details
- Size:
- 331 Bytes
- Xet hash:
- 67e08119eb5fdeb820fe85861839176cf83cdde33c9b52c1747fe0e92f653247
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.