MCPcopy Create free account
hub / github.com/ipython/traitlets / __init__

Method __init__

traitlets/traitlets.py:3280–3286  ·  view source on GitHub ↗
(
        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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected