python - 在 Sphinx 中将类和/或方法标记为已弃用

标签 python python-sphinx deprecated

有没有办法在 Sphinx 中将一个类和/或方法标记为已弃用?我只能找到一个不推荐使用的模块选项。

使用通用警告会起作用,但不会带有语义含义。

最佳答案

我想你正在寻找 deprecated .

关于python - 在 Sphinx 中将类和/或方法标记为已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14729943/

相关文章:

python - Python StreamRequestHandler

python - 如何理解Python装饰器参数传递

python - save() 得到了一个意外的关键字参数 'using'

python - Flask 中的通用端点

java - “java.io.ObjectOutputStream”已弃用 - Intellij IDEA 中的错误

python-sphinx - 对齐图标题 Sphinx 中的图例文本

python - 如何在不复制所有内容的情况下将 Sphinx 与子包一起使用?

python-sphinx - 用 reStructuredText (Sphinx) 替换文件名?

mysql - mysql 扩展已弃用,将来会删除 : use mysqli or PDO instead

symfony - 解决关于 $this 的弃用 - get ('twig' )-> getextension ('form' )