Skip to content

Fixing docstring backslash SyntaxError - #137

Merged
TomGeorge1234 merged 1 commit into
RatInABox-Lab:mainfrom
colleenjg:cjg-dev
Jul 9, 2026
Merged

Fixing docstring backslash SyntaxError#137
TomGeorge1234 merged 1 commit into
RatInABox-Lab:mainfrom
colleenjg:cjg-dev

Conversation

@colleenjg

@colleenjg colleenjg commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Fixed SyntaxError arising in python 3.12 when ratinabox is imported. The error is caused by invalid escape sequences in certain docstrings (ValueNeuron.py and SuccessorFeatures.py) where math symbol notation is used. Solved by adding escape backslashes in each case.

e.g., \theta -> \\theta

edit: It's actually a SyntaxWarning, not a SyntaxError, so it's not breaking anything - just annoying.

…in docstrings using math notation (e.g., \theta) by adding escape backslashes.
@TomGeorge1234

Copy link
Copy Markdown
Collaborator

ah this has been annoying me, thanks so much!

@TomGeorge1234
TomGeorge1234 merged commit f144ebc into RatInABox-Lab:main Jul 9, 2026
3 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.

2 participants