2👍
✅
Doesn’t exactly answer your question, but a class can be a callable:
>>> class Foo(object):
... def __call__(self):
... print "Called me"
...
>>>
>>> foo = Foo()
>>> foo()
Called me
Source:stackexchange.com