Browse Source

Give `state` the correct type hinting

pull/10211/head
blord0 4 days ago
parent
commit
0ff7bb4bc9
  1. 2
      discord/primary_guild.py

2
discord/primary_guild.py

@ -57,7 +57,7 @@ class PrimaryGuild:
__slots__ = ('id', 'identity_enabled', 'tag', '_badge', '_state') __slots__ = ('id', 'identity_enabled', 'tag', '_badge', '_state')
def __init__(self, *, state, data: PrimaryGuildPayload) -> None: def __init__(self, *, state: ConnectionState, data: PrimaryGuildPayload) -> None:
self._state = state self._state = state
self._update(data) self._update(data)

Loading…
Cancel
Save