Fix _Mapping
@@ -29,12 +29,12 @@ _V = TypeVar("_V")
class _Mapping(Generic[_K, _V]):
def __len__(self) -> int: ...
def __contains__(self, key: _K) -> bool: ...
- def __iter__(self) -> str: ...
- def iterkeys(self) -> Iterator[str]: ...
+ def __iter__(self) -> Iterator[_K]: ...
+ def iterkeys(self) -> Iterator[_K]: ...
def itervalues(self) -> Iterator[_V]: ...
- def iteritems(self) -> Iterator[Tuple[str, _V]]: ...
- def keys(self) -> List[str]: ...
- def items(self) -> List[Tuple[str, _V]]: ...
+ def iteritems(self) -> Iterator[Tuple[_K, _V]]: ...
+ def keys(self) -> List[_K]: ...
+ def items(self) -> List[Tuple[_K, _V]]: ...
def values(self) -> List[_V]: ...
def __bool__(self) -> bool: ...
def __getitem__(self, key: _K) -> _V: ...
@@ -186,7 +186,7 @@ class VariantRecordInfo(_Mapping[str, _InfoValue]):
def __delitem__(self, key: str) -> None: ...
def clear(self) -> None: ...
def update(
- self, items: Optional[Mapping[str, _InfoValue]] = ..., **kwargs
+ self, items: Optional[_Mapping[str, _InfoValue]] = ..., **kwargs
) -> None: ...
def pop(self, key: str, default: _D = ...) -> Union[_D, _InfoValue]: ...
def __eq__(self, other) -> bool: ...
