Returns True if the object has a trait with the specified name.
(self, name: str)
| 1830 | } |
| 1831 | |
| 1832 | def has_trait(self, name: str) -> bool: |
| 1833 | """Returns True if the object has a trait with the specified name.""" |
| 1834 | return name in self._traits |
| 1835 | |
| 1836 | def trait_has_value(self, name: str) -> bool: |
| 1837 | """Returns True if the specified trait has a value. |
no outgoing calls