def paint(self, painter, option, widget) -> None:  # pylint: disable=unused-argument
        """
        Draw the minimap outline and viewport box.
        """
        # Minimap outline
        painter.setPen(QPen(Conf.disasm_view_minimap_outline_color, self.PEN_WIDTH))
        path = QPainterPath()
        path.addRect(self._scene_rect)
        painter.drawPath(path)

        # Shadow
        scene_clip_region = QRegion(self._scene_rect.toAlignedRect())
        viewport_clip_region = QRegion(self._viewport_rect.toAlignedRect())
        painter.setClipRegion(scene_clip_region - viewport_clip_region)
        painter.fillRect(self._scene_rect, Conf.disasm_view_minimap_shadow_color)
        painter.setClipRegion(scene_clip_region)

        # Viewport box
        painter.setPen(QPen(Conf.disasm_view_minimap_viewport_color, self.PEN_WIDTH))
        path = QPainterPath()
        path.addRect(self._viewport_rect)
        painter.drawPath(path)

        Draw the minimap outline and viewport box.
        
angrmanagement/ui/widgets/qminimap.py