frontera
frontera copied to clipboard
Addition: Docs need to say that _refresh_states() also takes a non iterable
The docs need to be changed to let the user know that _refresh_states() also takes a non iterable, aka a single object not contained in a list.
https://github.com/scrapinghub/frontera/blob/8ac23162e97f6e685534c029e1da19d867c037d7/frontera/strategy/init.py#L139-L145
That's because the function refresh_and_keep() converts the non iterable object into a non-iterable object contained within a list.
https://github.com/scrapinghub/frontera/blob/8ac23162e97f6e685534c029e1da19d867c037d7/frontera/core/manager.py#L818-L822
Good catch! Can you make PR @IAlwaysBeCoding ?