Browse Source

Add repr to the SequenceProxy

pull/8972/head
Jakub Kuczys 3 years ago
committed by GitHub
parent
commit
dc34a8f1dc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      discord/utils.py

3
discord/utils.py

@ -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]

Loading…
Cancel
Save