This commit is contained in:
Erik Johnston 2017-06-09 16:25:42 +01:00
parent e54d7d536e
commit b0d975e216
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ MAX_STATE_DELTA_HOPS = 100
class _GetStateGroupDelta(namedtuple("_GetStateGroupDelta", ("prev_group", "delta_ids"))):
"""Return type of get_state_group_delta that implements __len__, which lets
us use the itrable flag when caching
"""
__slots__ = []
def __len__(self):