Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update type definition for words argument #1889

Merged
merged 2 commits into from
Sep 25, 2024

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
6 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants