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

Class DottedObjectName

traitlets/traitlets.py:3055–3063  ·  view source on GitHub ↗

A string holding a valid dotted object name in Python, such as A.b3._c

Source from the content-addressed store, hash-verified

3053
3054
3055class DottedObjectName(ObjectName):
3056 """A string holding a valid dotted object name in Python, such as A.b3._c"""
3057
3058 def validate(self, obj: t.Any, value: t.Any) -> str:
3059 value = self.coerce_str(obj, value)
3060
3061 if isinstance(value, str) and all(a.isidentifier() for a in value.split(".")):
3062 return value
3063 self.error(obj, value)
3064
3065
3066class Bool(TraitType[G, S]):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…