MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / add_label

Method add_label

tools/python-3.11.9-amd64/Lib/mailbox.py:1844–1850  ·  view source on GitHub ↗

Add label to list of labels on the message.

(self, label)

Source from the content-addressed store, hash-verified

1842 self._labels = list(labels)
1843
1844 def add_label(self, label):
1845 """Add label to list of labels on the message."""
1846 if isinstance(label, str):
1847 if label not in self._labels:
1848 self._labels.append(label)
1849 else:
1850 raise TypeError('label must be a string: %s' % type(label))
1851
1852 def remove_label(self, label):
1853 """Remove label from the list of labels on the message."""

Callers 4

_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80

Calls 2

typeClass · 0.50
appendMethod · 0.45

Tested by

no test coverage detected