Skip to content

Fix invalid escape sequences in qplayer docstring#461

Merged
jorisv merged 2 commits into
Simple-Robotics:develfrom
fabinsch:fix-qplayer-doc-str
May 11, 2026
Merged

Fix invalid escape sequences in qplayer docstring#461
jorisv merged 2 commits into
Simple-Robotics:develfrom
fabinsch:fix-qplayer-doc-str

Conversation

@fabinsch
Copy link
Copy Markdown
Collaborator

@fabinsch fabinsch commented May 9, 2026

Closes #458.

The QPFunction docstring in proxsuite/torch/qplayer.py contains LaTeX and Doxygen markup with backslashes.
Without the r prefix, Python treats these as string escapes, which raises a SyntaxWarning on 3.12+ (silent DeprecationWarning before)

- also enable ruff W605 to catch this
@fabinsch fabinsch force-pushed the fix-qplayer-doc-str branch 2 times, most recently from 4ea6fe4 to 9313b87 Compare May 9, 2026 08:21
@jorisv jorisv enabled auto-merge May 11, 2026 12:54
@jorisv jorisv merged commit cac06b3 into Simple-Robotics:devel May 11, 2026
118 of 123 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python import error due to docstring formatting issue

2 participants