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

Method info

traitlets/traitlets.py:2161–2170  ·  view source on GitHub ↗

Returns a description of the trait.

(self)

Source from the content-addressed store, hash-verified

2159 self.error(obj, value)
2160
2161 def info(self) -> str:
2162 """Returns a description of the trait."""
2163 if isinstance(self.klass, str):
2164 klass = self.klass
2165 else:
2166 klass = self.klass.__module__ + "." + self.klass.__name__
2167 result = "a subclass of '%s'" % klass
2168 if self.allow_none:
2169 return result + " or None"
2170 return result
2171
2172 def instance_init(self, obj: t.Any) -> None:
2173 # we can't do this in subclass_init because that

Callers 10

test_infoMethod · 0.45
test_infoMethod · 0.45
test_logger_adapterFunction · 0.45
test_logMethod · 0.45
test_logging_configFunction · 0.45
__init__Method · 0.45
element_errorMethod · 0.45
class_get_trait_helpMethod · 0.45
class_config_sectionMethod · 0.45
startMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_infoMethod · 0.36
test_infoMethod · 0.36
test_logger_adapterFunction · 0.36
test_logMethod · 0.36
test_logging_configFunction · 0.36