Method
__init__
(
self: CaselessStrEnum[t.Any],
values: t.Any,
default_value: t.Any = Undefined,
**kwargs: t.Any,
)
Source from the content-addressed store, hash-verified
| 3278 | """An enum of strings where the case should be ignored.""" |
| 3279 | |
| 3280 | def __init__( |
| 3281 | self: CaselessStrEnum[t.Any], |
| 3282 | values: t.Any, |
| 3283 | default_value: t.Any = Undefined, |
| 3284 | **kwargs: t.Any, |
| 3285 | ) -> None: |
| 3286 | super().__init__(values, default_value=default_value, **kwargs) |
| 3287 | |
| 3288 | def validate(self, obj: t.Any, value: t.Any) -> G: |
| 3289 | if not isinstance(value, str): |
Callers
nothing calls this directly
Tested by
no test coverage detected