is_member_abstract
FunctionSource
v_1: bool = is_member_abstract(attr: Any)
Check whether a value is an abstract member of a class.
Arguments
Requires
| Name | Type | Required | |
|---|---|---|---|
attr | Any | The attribute of a class. It can be a value, method, property, or operator. Note that the attribute needs to be provided by the method inspect.getmembers_static(...). |
Returns
| Name | Type | |
|---|---|---|
v_1 | bool | If the attribute has been decorated by @abstractmethod, returns True. If the value is not a method (such as a variable), will return False. |