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

Method __init__

traitlets/utils/sentinel.py:11–15  ·  view source on GitHub ↗
(self, name: str, module: t.Any, docstring: str | None = None)

Source from the content-addressed store, hash-verified

9
10class Sentinel:
11 def __init__(self, name: str, module: t.Any, docstring: str | None = None) -> None:
12 self.name = name
13 self.module = module
14 if docstring:
15 self.__doc__ = docstring
16
17 def __repr__(self) -> str:
18 return str(self.module) + "." + self.name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected