code: def release(button=LEFT):
      
      location = get_position()
      button_code, _, button_up, _ = _button_mapping[button]
      e = Quartz.CGEventCreateMouseEvent(
          None,
          button_up,
          location,
          button_code)
  
      if _last_click["time"] is not None and _last_click["time"] > datetime.datetime.now() - datetime.timedelta(microseconds=300000) and _last_click["button"] == button and _last_click["position"] == location:
          # Repeated Click
          Quartz.CGEventSetIntegerValueField(
              e,
              Quartz.kCGMouseEventClickState,
              _last_click["click_count"])
      Quartz.CGEventPost(Quartz.kCGHIDEventTap, e)
      _button_state[button] = False
docs: Sends an up event for the specified button, using the provided constants