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

Method info

traitlets/traitlets.py:2321–2328  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2319 self.error(obj, value)
2320
2321 def info(self) -> str:
2322 if isinstance(self.klass, str):
2323 result = add_article(self.klass)
2324 else:
2325 result = describe("a", self.klass)
2326 if self.allow_none:
2327 result += " or None"
2328 return result
2329
2330 def instance_init(self, obj: t.Any) -> None:
2331 # we can't do this in subclass_init because that

Callers

nothing calls this directly

Calls 2

add_articleFunction · 0.85
describeFunction · 0.85

Tested by

no test coverage detected