Suppose I have the following setup:
class ExternalPackageClass:
def __call__(self, *args, **kwargs):
return self.forward(*args, **kwargs)
def forward(self, *args, **kwargs):
raise NotImplementedError
class MyClass(ExternalPackageClass):
def forward(self, input):
r"""Prints the input"""
print(input)
Can I configure autodoc somehow to document the forward() method as
__call__()? Otherwise I always need to include the information somewhere
that forward() is invoked if MyClass is called.
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/9df0564f-f823-499c-a7e5-6d0efee594e9%40googlegroups.com.