docs: def dispatch_line(self, frame):
          """Handle line action and return the next line callback."""
          callback = TerminalPdb.dispatch_line(self, frame)
  
          # If the ipdb session ended, don't return a callback for the next line
          if self.stoplineno == -1:
              return None
  
          return callback