-
Notifications
You must be signed in to change notification settings - Fork 571
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
Marks some doctstrings as raw, to silence a SyntaxWarning about invalid escape sequences. #2756
Conversation
…id escape sequences. Before ``` sh $ python -c 'import rdflib.extras.external_graph_libs' rdflib/extras/external_graph_libs.py:79: SyntaxWarning: invalid escape sequence '\*' """Converts the given graph into a networkx.MultiDiGraph. rdflib/extras/external_graph_libs.py:136: SyntaxWarning: invalid escape sequence '\*' """Converts the given graph into a networkx.DiGraph. rdflib/extras/external_graph_libs.py:199: SyntaxWarning: invalid escape sequence '\*' """Converts the given graph into a networkx.Graph. $ ``` After: ``` sh $ python -c 'import rdflib.extras.external_graph_libs' $ ```
@mr-c is this PR still needed now? There have been a number of updates to the various syntax checkers in use recently. Could you please confirm this is still relevant on Debian and, if so, I will merge. The Debian bug report seems to indicate this is fixed in RDFLib 7.0.0 |
Hello, I'm on vacation and away from any computer. Can you run the following on the tip of the development branch? If any warnings print then yes, this PR is still needed.
|
It is fixed in the Debian package of A.k.a. |
@nicholascar This isn't related to linting, the warning is emitted when Python is configured to print SyntaxWarnings on import of packages. Its technically a bug in the docstrings on the RDFLib @mr-c This is a nice simple patch, I'll merge it. |
Summary of changes
This was reported by a Debian user: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067726
Before
After:
$ python -c 'import rdflib.extras.external_graph_libs' $
Checklist
the same change.
so maintainers can fix minor issues and keep your PR up to date.