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

Method __init__

traitlets/traitlets.py:3317–3327  ·  view source on GitHub ↗
(
        self: FuzzyEnum[t.Any],
        values: t.Any,
        default_value: t.Any = Undefined,
        case_sensitive: bool = False,
        substring_matching: bool = False,
        **kwargs: t.Any,
    )

Source from the content-addressed store, hash-verified

3315 substring_matching = False
3316
3317 def __init__(
3318 self: FuzzyEnum[t.Any],
3319 values: t.Any,
3320 default_value: t.Any = Undefined,
3321 case_sensitive: bool = False,
3322 substring_matching: bool = False,
3323 **kwargs: t.Any,
3324 ) -> None:
3325 self.case_sensitive = case_sensitive
3326 self.substring_matching = substring_matching
3327 super().__init__(values, default_value=default_value, **kwargs)
3328
3329 def validate(self, obj: t.Any, value: t.Any) -> G:
3330 if not isinstance(value, str):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected