Skip to content
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

comparison.py:11: SyntaxWarning: invalid escape sequence '\D' #32

Open
averyfreeman opened this issue Jun 12, 2024 · 0 comments
Open

comparison.py:11: SyntaxWarning: invalid escape sequence '\D' #32

averyfreeman opened this issue Jun 12, 2024 · 0 comments

Comments

@averyfreeman
Copy link

Hi, looks like your :math:\\Din the docstring ofcomparison.pyis throwing my interpreter, I'm onPython 3.12.3` Arch Linux OS

❯ python plot_color_gradients.py
/usr/lib/python3.12/site-packages/colorspacious/comparison.py:11: SyntaxWarning: invalid escape sequence '\D'
  """Computes the :math:`\Delta E` distance between pairs of colors.

I put a second backslash behind every single backslash in the docstring, and I can use the library now. I am not familiar with the :math: escapes, so I am not sure what that does to your document formatting.

I found discussion concerning the issue I faced on stackoverflow.com

If double-escapes break formatting for sphinx, maybe put the docstring in a separate file (?)

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

No branches or pull requests

1 participant