Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny typing fix #406

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cle/backends/regions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Generic, List, Optional, TypeVar
from typing import Generic, Iterator, List, Optional, TypeVar

from cle.utils import key_bisect_find, key_bisect_insort_left

Expand Down Expand Up @@ -57,6 +57,9 @@ def __setitem__(self, idx: int, item: R) -> None:
# update self._sorted_list
self._sorted_list = self._make_sorted(self._list)

def __iter__(self) -> Iterator[R]:
return iter(self._list)

def __len__(self) -> int:
return len(self._list)

Expand Down