Skip to main content

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​

NameTypeRequired
Description
clstype[Any]The class to be inspected.
methodAnyA method to be checked. It will be marked as True is it is detected to be possibly defined in the given class.

Returns​

NameType
Description
v_1boolA flag. If True, the method is thought to be a member of cls.