Returns a description of the trait.
(self, as_rst: bool = False)
| 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) |
no test coverage detected