Update pyright version

This commit is contained in:
Josh
2023-07-02 08:26:27 +10:00
committed by GitHub
parent 0871b34fc8
commit 630b2a1e55
17 changed files with 45 additions and 27 deletions

View File

@ -47,6 +47,7 @@ if TYPE_CHECKING:
InviteGuild as InviteGuildPayload,
GatewayInvite as GatewayInvitePayload,
)
from .types.guild import GuildFeature
from .types.channel import (
PartialChannel as InviteChannelPayload,
)
@ -189,7 +190,7 @@ class PartialInviteGuild:
self._state: ConnectionState = state
self.id: int = id
self.name: str = data['name']
self.features: List[str] = data.get('features', [])
self.features: List[GuildFeature] = data.get('features', [])
self._icon: Optional[str] = data.get('icon')
self._banner: Optional[str] = data.get('banner')
self._splash: Optional[str] = data.get('splash')