Add repr to the SequenceProxy

This commit is contained in:
Jakub Kuczys authored and GitHub committed 2022-10-02 17:51:19 -04:00
1 parent c30a2f3ca0
commit dc34a8f1dc
1 file changed
+3
+3
View File
@@ -224,6 +224,9 @@ class SequenceProxy(Sequence[T_co]):
self.__proxied = list(self.__proxied)
return self.__proxied
def __repr__(self) -> str:
return f"SequenceProxy({self.__proxied!r})"
def __getitem__(self, idx: int) -> T_co:
return self.__copied[idx]