mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Warn on using the :property: flag with .. py:method:: (#10852)
This commit is contained in:
@@ -828,6 +828,8 @@ class PyMethod(PyObject):
|
||||
prefix.append(nodes.Text('classmethod'))
|
||||
prefix.append(addnodes.desc_sig_space())
|
||||
if 'property' in self.options:
|
||||
logger.warning(_('Using the :property: flag with the py:method directive'
|
||||
'is deprecated, use ".. py:property::" instead.'))
|
||||
prefix.append(nodes.Text('property'))
|
||||
prefix.append(addnodes.desc_sig_space())
|
||||
if 'staticmethod' in self.options:
|
||||
|
||||
Reference in New Issue
Block a user