def METHOD_NAME(self, event: Button.Pressed) -> None:
    """Pressed one of the arithmetic operations."""
    self.right = Decimal(self.value or "0")
    self._do_math()
    assert event.button.id is not None
    self.operator = event.button.id