Skip to content

Conversation

@mxr
Copy link
Contributor

@mxr mxr commented Jun 16, 2024

The type definition permits list[str] | Callable[[], list[str]] however a tuple is valid too. Updating the type definition to use Sequence[str] | Callable[[], Sequence[str]] to allow using a tuple without errors

@jonathanslenders jonathanslenders merged commit df4e244 into prompt-toolkit:master Sep 25, 2024
@jonathanslenders
Copy link
Member

Thanks!

@mxr mxr deleted the patch-1 branch September 25, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants