-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
enhancementNew feature or improved functionality.New feature or improved functionality.
Milestone
Description
Everywhere it seems has_next and is_last is used they are used as methods i.e. has_next(), yet in the spec they are attributes, and even in the code, they appear to be attributes, see
ably-python/ably/http/paginatedresult.py
Lines 21 to 32 in bb72bdc
| @property | |
| def items(self): | |
| return self.__items | |
| def has_first(self): | |
| return self.__rel_first is not None | |
| def has_next(self): | |
| return self.__rel_next is not None | |
| def is_last(self): | |
| return not self.has_next() |
We should change all examples to access as attributes and update the docs as well if this is possible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improved functionality.New feature or improved functionality.