is_func_yield
FunctionSource
v_1: bool = is_func_yield(func: Any)
Check whether the given object is a function returning an iterator.
Will check the real-time implementation first. If not detected, will check the annotation.
Arguments
Requires
| Name | Type | Required | |
|---|---|---|---|
func | Any | The function candidate object to be checked. |
Returns
| Name | Type | |
|---|---|---|
v_1 | bool | A flag that will be True if the function returns the generator/iterator. |