prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.1k stars 717 forks source link

Update type definition for `words` argument #1889

Open mxr opened 2 weeks ago

mxr commented 2 weeks ago

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