You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: The `http_list` method will no longer
ignore the `iterator` argument if the `page` argument is not
None. The `ListMixin.list()` will now return either list or
iterator based on the `iterator` argument. This will make
certain type narrowing checks redundant.
Overload `ListMixin.list` method typing to return either
`RESTObjectList` or `list` based on the `iterator` argument.
By default then `iterator` is False return a list otherwise
return an iterator.
Provide 3 overloads:
1. `iterator: Literal[False]` - this is the default and returns a list.
2. `iterator: Literal[True]` - return an iterator.
3. `iterator: bool` - return either list or iterator. It is useful when
the list function is being extended by another function that can
also take either True or False for the `iterator` argument.
Make `page` argument to `http_list` not override the `iterator`
to make the function signatures more straight forward. This
also makes it easier to unpack `**kwargs` as only `iterator`
argument will control if a list or iterator is returned so the
`**kwargs` can no longer have a hidden page argument.
0 commit comments