Skip to content

Commit

Permalink
len changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathanjp91 committed Nov 6, 2023
1 parent 0974fb1 commit 5707c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions darwin/future/core/types/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __isub__(self, filter: QueryFilter) -> Query[T]:
def __len__(self) -> int:
if not self.results:
self.results = {**self.results, **self._collect()}
return len(self.results.keys())
return len(self.results)

def __iter__(self) -> Query[T]:
self.n = 0
Expand Down Expand Up @@ -319,4 +319,4 @@ def __next__(self) -> T:
def __len__(self) -> int:
if not self.completed:
self.collect_all()
return len(self.results.keys())
return len(self.results)

0 comments on commit 5707c97

Please sign in to comment.