Skip to content

Commit

Permalink
type properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed May 15, 2024
1 parent cc69401 commit 474eeb8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,11 @@ class LazySequenceCopy:
in O(1) time. The full list API is not supported yet but there's no reason
in principle it couldn't be."""

__mask: Optional[Dict[int, int]]

def __init__(self, values: Sequence[int]):
self.__values = values
self.__len = len(values)
self.__mask = None
self.__popped_indices = None
self.__mask: Optional[Dict[int, int]] = None
self.__popped_indices: Optional[SortedList] = None

def __len__(self) -> int:
if self.__popped_indices is None:
Expand Down

0 comments on commit 474eeb8

Please sign in to comment.