From c38c9348cbb1500813e9853fe8c7406b89c179ee Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@ericsson.com>
Date: Mon, 4 Mar 2024 11:49:24 +0100
Subject: [PATCH] changed type signature, v2.24.1

Change-Id: I7f16377f1d9a464e63a7c6da27f5c963e644c75f
---
 CHANGELOG.md                          | 1 +
 satella/coding/sequences/iterators.py | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 601f12c8..1e0dc528 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,4 +6,5 @@
 * unit tests for overloading
 * fixed #60
 * fixed #59
+* extended type signature of ListWrapperIterator
 
diff --git a/satella/coding/sequences/iterators.py b/satella/coding/sequences/iterators.py
index 99a059ba..706ab497 100644
--- a/satella/coding/sequences/iterators.py
+++ b/satella/coding/sequences/iterators.py
@@ -499,7 +499,7 @@ class _ListWrapperIteratorIterator(tp.Iterator[T]):
         return item
 
 
-class ListWrapperIterator(tp.Iterator[T]):
+class ListWrapperIterator(tp.Sequence[T], tp.Iterator[T]):
     """
     A wrapped for an iterator, enabling using it as a normal list.
 
@@ -512,6 +512,8 @@ class ListWrapperIterator(tp.Iterator[T]):
     Essentially a class that lets you reuse one-shot iterators.
 
     This is additionally a generic class.
+
+    :ivar internal_pointer: (int) the number of element this list internally points to
     """
 
     __slots__ = 'iterator', 'exhausted', 'list', 'internal_pointer'
-- 
GitLab