def get_selection(self) -> tuple[int, int] | None:
        """
        Get active selection, returning (minaddr, maxaddr) inclusive.
        """
        if self.selection_start is None:
            return None
        if self.start_addr <= self.cursor < self.end_addr:
            minaddr = min(self.cursor, self.selection_start)
            maxaddr = max(self.cursor, self.selection_start)
            return (minaddr, maxaddr)
        return None

        Get active selection, returning (minaddr, maxaddr) inclusive.
        
angrmanagement/ui/views/hex_view.py