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

Method __init__

traitlets/traitlets.py:302–309  ·  view source on GitHub ↗
(
        self, source: t.Any, target: t.Any, transform: t.Iterable[FuncT] | None = None
    )

Source from the content-addressed store, hash-verified

300 updating = False
301
302 def __init__(
303 self, source: t.Any, target: t.Any, transform: t.Iterable[FuncT] | None = None
304 ) -> None:
305 _validate_link(source, target)
306 self.source, self.target = source, target
307 if transform:
308 self._transform, self._transform_inv = transform # type:ignore[method-assign]
309 self.link()
310
311 def _transform(self, x: T) -> T:
312 """default transform: no-op"""

Callers

nothing calls this directly

Calls 2

linkMethod · 0.95
_validate_linkFunction · 0.85

Tested by

no test coverage detected