__eq__
Unit.eq
__eq__(self, Optional[Unit] other) -> bool
Determines whether this instance and a specified object, which must also be a Unit object, have the same value.
| Parameter | Type | Description |
|---|---|---|
other | Optional[Unit] | The Unit to compare to this instance. |
Return Type: bool — True if other is a Unit and its value is the same as this instance, otherwise False. If other is None, the method returns false.