mirror of
https://github.com/HKUDS/CLI-Anything.git
synced 2026-09-18 23:42:43 +08:00
b04a4ebe26
* Fix Python 3.11 compatibility issue in cli_hub/preview.py * fix(cli-hub): remove backslash from f-string expression for pre-3.12 The prior change swapped the inner double quotes for single quotes, but pre-3.12 (before PEP 701) prohibits a backslash ANYWHERE in the expression part of an f-string — the escaped quote left a backslash in place, so preview.py still raised SyntaxError on Python 3.10/3.11. Hoist the fallback markup into an empty_message variable so the f-string expression contains no backslash. This also restores the original double-quoted HTML (class="artifact-file"); the rendered output is now byte-for-byte identical to origin/main. * chore(cli-hub): bump version to 0.4.1 Ships the pre-3.12 f-string fix in preview.py to PyPI. Without a version bump publish-cli-hub.yml sees 0.4.0 already on PyPI and skips, so users on Python 3.10/3.11 would keep installing the broken release. --------- Co-authored-by: yuhao <itsyuhao@icloud.com>
4 lines
94 B
Python
4 lines
94 B
Python
"""cli-hub — Download, manage, and browse CLI-Anything harnesses."""
|
|
|
|
__version__ = "0.4.1"
|