Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Change docstrings to raw in main level functions #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

anttimc
Copy link

@anttimc anttimc commented Dec 17, 2024

Docstrings with math with the escape character \ don't work in python >=3.12 (fails at import). When running the code in debugger with PyCharm 2024 version I get a SyntaxError from docstrings.

    from . import misc
E     File "/home/anttimc/conda_new/envs/lh-py311-Nov23/lib/python3.11/site-packages/bayespy/utils/misc.py", line 272
E       """
E       ^^^
E   SyntaxError: invalid escape sequence '\c'

This change replaces regular-string docstrings with find-and-replace to raw strings.

@anttimc
Copy link
Author

anttimc commented Dec 17, 2024

Related cpython change python/cpython#98401

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.

1 participant