Skip to content

Commit

Permalink
typing for Prompt.ask
Browse files Browse the repository at this point in the history
  • Loading branch information
aisi-inspect committed Oct 6, 2024
1 parent c60c684 commit b723cc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/inspect_ai/approval/_human.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ def render_approval(approval: Approval) -> Approval:

while True:
decision = Prompt.ask(
prompt,
prompt=prompt,
console=console,
choices=list(prompts.keys()),
default="a",
case_sensitive=False,
).lower()

if decision == "a":
Expand Down

0 comments on commit b723cc2

Please sign in to comment.