def METHOD_NAME(self, assigned_printer: Optional["PrinterOutputModel"]) -> None:
    if self._assigned_printer != assigned_printer:
        old_printer = self._assigned_printer
        self._assigned_printer = assigned_printer
        if old_printer is not None:
            # If the previously assigned printer is set, this job is moved away from it.
            old_printer.updateActivePrintJob(None)
        self.assignedPrinterChanged.emit()