Skip to content

Commit b266aec

Browse files
viettranxclaude
andcommitted
fix: Python 3.11 compatibility for f-string backslash
- Extract newline character to variable before using in f-string - Fixes SyntaxError on Python 3.11 and earlier versions - Synced fix to all 11 design_system.py locations - Bump CLI version to 2.1.2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cc9eb6c commit b266aec

12 files changed

Lines changed: 23 additions & 12 deletions

File tree

.claude/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

.codex/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

.gemini/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

.shared/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

.trae/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

cli/assets/.claude/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

cli/assets/.codex/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

cli/assets/.gemini/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

cli/assets/.shared/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

cli/assets/.trae/skills/ui-ux-pro-max/scripts/design_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def format_markdown(design_system: dict) -> str:
440440
# Anti-patterns section
441441
if anti_patterns:
442442
lines.append("### Avoid (Anti-patterns)")
443-
lines.append(f"- {anti_patterns.replace(' + ', '\n- ')}")
443+
newline_bullet = '\n- '
444+
lines.append(f"- {anti_patterns.replace(' + ', newline_bullet)}")
444445
lines.append("")
445446

446447
# Pre-Delivery Checklist section

0 commit comments

Comments
 (0)