is_user_defined_method
FunctionSource
v_1: bool = is_user_defined_method(cls: type[Any], method: Any)
Check whether a member is defined in a class.
Arguments
Requires
| Name | Type | Required | |
|---|---|---|---|
cls | type[Any] | The class to be inspected. | |
method | Any | A method to be checked. It will be marked as True is it is detected to be possibly defined in the given class. |
Returns
| Name | Type | |
|---|---|---|
v_1 | bool | A flag. If True, the method is thought to be a member of cls. |