Closed soxofaan closed 3 years ago
Hello Stefaan,
If we use some bleach of any kind to clean up the Sphinx warning message, I'm afraid we get side effects…
A ”normal user” of your library should be a developper too, isn't it? So, he can understand weird syntax.
I must consider your request more carefully. In the meanwhile, do you have any suggestion on how to change that, with a PR?
Regards.
If we use some bleach of any kind to clean up the Sphinx warning message, I'm afraid we get side effects…
I would only strip :py:func:
like construct, not the whole Sphinx syntax set. Can be done with a tight regex, that shouldn't cause much trouble.
I already started a PR here: #42
🐍 Deprecated v1.2.12 released 🚀!
Say you use the sphinx decorator with Sphinx syntax references like this:
the DeprecationWarning will say:
For a normal user of my library this
:py:func:
looks weird. The user typically does not know/care that I use Sphinx as documentation build tool, let alone that they understand this syntax.Feature request:
Strip this kind of Sphinx syntax from the
DeprecationWarning
message