diff options
| author | Rapptz <[email protected]> | 2021-05-01 09:23:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-01 09:24:47 -0400 |
| commit | 4c97b8efdd8857754405f65067b42b4bf9e56be6 (patch) | |
| tree | 2aed55b9088ec5d849856085c9b37b11e32cbecf /discord/utils.py | |
| parent | Fix SyncWebhook exception case causing attribute errors (diff) | |
| download | discord.py-4c97b8efdd8857754405f65067b42b4bf9e56be6.tar.xz discord.py-4c97b8efdd8857754405f65067b42b4bf9e56be6.zip | |
Fix typings for utils._parse_ratelimit_header
A CIMultiDict is not a Dict but a Mapping
Diffstat (limited to 'discord/utils.py')
| -rw-r--r-- | discord/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index ec4e1bba..bd29caab 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -37,6 +37,7 @@ from typing import ( Iterator, List, Literal, + Mapping, Optional, Protocol, Sequence, @@ -116,7 +117,7 @@ if TYPE_CHECKING: from .template import Template class _RequestLike(Protocol): - headers: Dict[str, Any] + headers: Mapping[str, Any] else: |