You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of today, some systems work with prompt_toolkit v1 by default, but
Arch Linux has migrated to v2, and it's the last version on PyPI
To maintain the Arch Linux package of this library, it was required to
revert the 8dba4c0 commit, yet that didn't suffice to make the Human
class work in that system
This commit changes the Human strategy to work on environments with
either prompt_toolkit versions, the main differences are:
- Human._history_toolbar no longer return a list with a tuple, but
just the raw content (making its tests more straightforward)
- self.status_messages["toolbar"] is a function as expected by the
prompt_toolkit version available
Although the "pygments.toolbar" string is there when using the
prompt_toolkit v2, the "pygments" library isn't a dependency, since
using the Human strategy works fine in a virtual environment without
pygments
0 commit comments