Fix typings for utils._parse_ratelimit_header
A CIMultiDict is not a Dict but a Mapping
This commit is contained in:
parent
60c1240849
commit
4c97b8efdd
@ -37,6 +37,7 @@ from typing import (
|
|||||||
Iterator,
|
Iterator,
|
||||||
List,
|
List,
|
||||||
Literal,
|
Literal,
|
||||||
|
Mapping,
|
||||||
Optional,
|
Optional,
|
||||||
Protocol,
|
Protocol,
|
||||||
Sequence,
|
Sequence,
|
||||||
@ -116,7 +117,7 @@ if TYPE_CHECKING:
|
|||||||
from .template import Template
|
from .template import Template
|
||||||
|
|
||||||
class _RequestLike(Protocol):
|
class _RequestLike(Protocol):
|
||||||
headers: Dict[str, Any]
|
headers: Mapping[str, Any]
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user