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

Method _info

traitlets/traitlets.py:3298–3301  ·  view source on GitHub ↗

Returns a description of the trait.

(self, as_rst: bool = False)

Source from the content-addressed store, hash-verified

3296 self.error(obj, value)
3297
3298 def _info(self, as_rst: bool = False) -> str:
3299 """Returns a description of the trait."""
3300 none = " or %s" % ("`None`" if as_rst else "None") if self.allow_none else ""
3301 return f"any of {self._choices_str(as_rst)} (case-insensitive){none}"
3302
3303 def info(self) -> str:
3304 return self._info(as_rst=False)

Callers 2

infoMethod · 0.95
info_rstMethod · 0.95

Calls 1

_choices_strMethod · 0.45

Tested by

no test coverage detected