devctrl.gui.devices.auto_setter_getter.resolve_subclass_function_pointer#
- resolve_subclass_function_pointer(cls, f)[source]#
Get the function pointer of a subclassed method from the base class method.
Searches through all
clsand all parents ofclsand returns the first implementation off.This function allows you to get the correct override of a method at runtime, while specifying only the base class method in the source.
- Parameters:
cls – The subclass of which the method should be returned
f – Base class method
- Returns:
Subclass method if found, else the
f.