mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Update pyright version
This commit is contained in:
@ -26,7 +26,21 @@ from __future__ import annotations
|
||||
|
||||
from functools import reduce
|
||||
from operator import or_
|
||||
from typing import TYPE_CHECKING, Any, Callable, ClassVar, Dict, Iterator, List, Optional, Tuple, Type, TypeVar, overload
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Callable,
|
||||
ClassVar,
|
||||
Dict,
|
||||
Iterator,
|
||||
List,
|
||||
Optional,
|
||||
Sequence,
|
||||
Tuple,
|
||||
Type,
|
||||
TypeVar,
|
||||
overload,
|
||||
)
|
||||
|
||||
from .enums import UserFlags
|
||||
|
||||
@ -1621,7 +1635,7 @@ class ChannelFlags(BaseFlags):
|
||||
|
||||
class ArrayFlags(BaseFlags):
|
||||
@classmethod
|
||||
def _from_value(cls: Type[Self], value: List[int]) -> Self:
|
||||
def _from_value(cls: Type[Self], value: Sequence[int]) -> Self:
|
||||
self = cls.__new__(cls)
|
||||
# This is a micro-optimization given the frequency this object can be created.
|
||||
# (1).__lshift__ is used in place of lambda x: 1 << x
|
||||
|
Reference in New Issue
Block a user