Add various missing generic arguments (#7702)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Sebastian Rittau
2022-04-27 14:25:35 +02:00
committed by GitHub
parent ae09e4e866
commit 2d468966f5
9 changed files with 17 additions and 14 deletions

View File

@@ -1,9 +1,12 @@
import collections
from typing import Any
from collections import OrderedDict
from typing import Any, Generic, TypeVar
from humanfriendly.compat import unicode
class CaseInsensitiveDict(collections.OrderedDict):
_KT = TypeVar("_KT")
_VT = TypeVar("_VT")
class CaseInsensitiveDict(OrderedDict[_KT, _VT], Generic[_KT, _VT]):
def __init__(self, other: Any | None = ..., **kw) -> None: ...
def coerce_key(self, key): ...
@classmethod