(self)
| 689 | class TextDisplayObject(DisplayObject): |
| 690 | """Validate that display data is text""" |
| 691 | def _check_data(self): |
| 692 | if self.data is not None and not isinstance(self.data, str): |
| 693 | raise TypeError("%s expects text, not %r" % (self.__class__.__name__, self.data)) |
| 694 | |
| 695 | class Pretty(TextDisplayObject): |
| 696 |
nothing calls this directly
no outgoing calls
no test coverage detected