Fix type annotations to adhere to latest pyright release

This commit is contained in:
Josh authored and GitHub committed 2022-06-12 15:30:45 -04:00
1 parent 334ef1d7fa
commit c9f777c873
14 files changed
+50 -47

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@ from .utils import parse_time, _get_as_snowflake, _bytes_to_base64_data, MISSING
if TYPE_CHECKING:
from .types.scheduled_event import (
GuildScheduledEvent as GuildScheduledEventPayload,
GuildScheduledEvent as BaseGuildScheduledEventPayload,
GuildScheduledEventWithUserCount as GuildScheduledEventWithUserCountPayload,
EntityMetadata,
)
@@ -46,7 +46,7 @@ if TYPE_CHECKING:
from .state import ConnectionState
from .user import User
GuildScheduledEventPayload = Union[GuildScheduledEventPayload, GuildScheduledEventWithUserCountPayload]
GuildScheduledEventPayload = Union[BaseGuildScheduledEventPayload, GuildScheduledEventWithUserCountPayload]
# fmt: off
__all__ = (