Set the sender of the message. Args: sender: The sender. Note: When creating a message the sender is automatically set. Normally there will be no need for this method to be called. This method will be used when strict control is requi
(self, sender: MessagePump)
| 100 | self._forwarded = True |
| 101 | |
| 102 | def set_sender(self, sender: MessagePump) -> Self: |
| 103 | """Set the sender of the message. |
| 104 | |
| 105 | Args: |
| 106 | sender: The sender. |
| 107 | |
| 108 | Note: |
| 109 | When creating a message the sender is automatically set. |
| 110 | Normally there will be no need for this method to be called. |
| 111 | This method will be used when strict control is required over |
| 112 | the sender of a message. |
| 113 | |
| 114 | Returns: |
| 115 | Self. |
| 116 | """ |
| 117 | self._sender = sender |
| 118 | return self |
| 119 | |
| 120 | def can_replace(self, message: "Message") -> bool: |
| 121 | """Check if another message may supersede this one. |
no outgoing calls
no test coverage detected