mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 09:33:25 +08:00
Upgrade mypy to 0.990 (#9123)
This commit is contained in:
@@ -15,7 +15,7 @@ class Waiter:
|
||||
|
||||
|
||||
async def foo() -> int:
|
||||
...
|
||||
return 42
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
|
||||
@@ -16,11 +16,13 @@ _VT = TypeVar("_VT")
|
||||
|
||||
|
||||
class KeysAndGetItem(Generic[_KT, _VT]):
|
||||
data: Dict[_KT, _VT]
|
||||
|
||||
def keys(self) -> Iterable[_KT]:
|
||||
...
|
||||
return self.data.keys()
|
||||
|
||||
def __getitem__(self, __k: _KT) -> _VT:
|
||||
...
|
||||
return self.data[__k]
|
||||
|
||||
|
||||
kt1: KeysAndGetItem[int, str] = KeysAndGetItem()
|
||||
|
||||
Reference in New Issue
Block a user