mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
14 lines
277 B
Python
14 lines
277 B
Python
class Callable:
|
|
"""A callable object that behaves like a function."""
|
|
|
|
def __call__(self, arg1, arg2, **kwargs):
|
|
pass
|
|
|
|
def method(self, arg1, arg2):
|
|
"""docstring of Callable.method()."""
|
|
pass
|
|
|
|
|
|
function = Callable()
|
|
method = function.method
|