Fix typings for utils._parse_ratelimit_header

A CIMultiDict is not a Dict but a Mapping
This commit is contained in:
Rapptz 2021-05-01 09:23:38 -04:00
parent 60c1240849
commit 4c97b8efdd

View File

@ -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: