A string holding a valid dotted object name in Python, such as A.b3._c
| 3053 | |
| 3054 | |
| 3055 | class 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 | |
| 3066 | class Bool(TraitType[G, S]): |
no outgoing calls
no test coverage detected
searching dependent graphs…