Browse Source

Add repr to the SequenceProxy

pull/10109/head
Jakub Kuczys 3 years ago
committed by dolfies
parent
commit
8cc0deab08
  1. 3
      discord/utils.py

3
discord/utils.py

@ -238,6 +238,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]

Loading…
Cancel
Save