🐛 Bug Fix
Fixed: Python 3.11 compatibility error in design_system.py
Problem
SyntaxError: f-string expression part cannot include a backslash
This error occurred on Python 3.11 and earlier when running --design-system flag.
Solution
Extracted the newline character to a variable before using in f-string:
# Before (Python 3.12+ only)
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
# After (Python 3.11+ compatible)
newline_bullet = '\n- '
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")Compatibility
| Python Version | Status |
|---|---|
| 3.11 | ✅ Fixed |
| 3.12+ | ✅ Works |
Installation
npm install -g uipro-cli
uipro init --ai claudeFull Changelog: v2.1.1...v2.1.2