mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix Sequence inheritance in 3.8
This commit is contained in:
parent
fbb8a35de6
commit
4f85494c11
@ -25,7 +25,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import array
|
import array
|
||||||
import asyncio
|
import asyncio
|
||||||
import collections.abc
|
|
||||||
import inspect
|
import inspect
|
||||||
from typing import (
|
from typing import (
|
||||||
Any,
|
Any,
|
||||||
@ -190,7 +189,7 @@ def cached_slot_property(name: str) -> Callable[[Callable[[T], T_co]], CachedSlo
|
|||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
||||||
class SequenceProxy(collections.abc.Sequence[T_co]):
|
class SequenceProxy(Sequence[T_co]):
|
||||||
"""Read-only proxy of a Sequence."""
|
"""Read-only proxy of a Sequence."""
|
||||||
|
|
||||||
def __init__(self, proxied: Sequence[T_co]):
|
def __init__(self, proxied: Sequence[T_co]):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user