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

Method __init__

traitlets/traitlets.py:395–399  ·  view source on GitHub ↗
(self, source: t.Any, target: t.Any, transform: t.Any = None)

Source from the content-addressed store, hash-verified

393 updating = False
394
395 def __init__(self, source: t.Any, target: t.Any, transform: t.Any = None) -> None:
396 self._transform = transform if transform else lambda x: x
397 _validate_link(source, target)
398 self.source, self.target = source, target
399 self.link()
400
401 def link(self) -> None:
402 try:

Callers

nothing calls this directly

Calls 2

linkMethod · 0.95
_validate_linkFunction · 0.85

Tested by

no test coverage detected