Make give_user_input async (#584)

The only callsite in gui.py expects this to be async or return a coroutine.
This commit is contained in:
Mase Graye 2023-10-25 16:03:33 -05:00 • committed by GitHub
parent 570f61de5a
commit ef459463e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,7 @@ class Autopilot(ContinueBaseModel):
for callback in self._on_update_callbacks:
await callback(full_state)
def give_user_input(self, input: str, index: int):
async def give_user_input(self, input: str, index: int):
self._user_input_queue.post(str(index), input)
async def wait_for_user_input(self) -> str: