overload#
Module Contents#
Single-dispatch generic method descriptor. |
- class singledispatchmethod(func)#
Single-dispatch generic method descriptor.
Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.
- property __isabstractmethod__#
- register(cls, method=None)#
generic_method.register(cls, func) -> func
Registers a new implementation for the given cls on a generic_method.
- __get__(obj, cls=None)#