While writing documentation using Sphinx, I know that I can link to a class by using Intersphinx :
:py:class:`logging.Logger`
But how do I link directly to a specific method, like logging.Logger.warning()
?
只是用
:py:meth:`module.class.mymethodname`
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.