Returns a description of the trait.
(self, as_rst: bool = False)
| 4299 | return repr(list(choices)) # Listify because py3.4- prints odict-class |
| 4300 | |
| 4301 | def _info(self, as_rst: bool = False) -> str: |
| 4302 | """Returns a description of the trait.""" |
| 4303 | none = " or %s" % ("`None`" if as_rst else "None") if self.allow_none else "" |
| 4304 | return f"any of {self._choices_str(as_rst)}{none}" |
| 4305 | |
| 4306 | def info(self) -> str: |
| 4307 | return self._info(as_rst=False) |
no test coverage detected