mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #6047: autodoc: `autofunction` emits a warning for method objects
This commit is contained in:
@@ -4,5 +4,10 @@ class Callable():
|
||||
def __call__(self, arg1, arg2, **kwargs):
|
||||
pass
|
||||
|
||||
def method(self, arg1, arg2):
|
||||
"""docstring of Callable.method()."""
|
||||
pass
|
||||
|
||||
|
||||
function = Callable()
|
||||
method = function.method
|
||||
|
||||
Reference in New Issue
Block a user