Upgrade mypy to 0.990 (#9123)

This commit is contained in:
Alex Waygood
2022-11-07 19:20:47 +00:00
committed by GitHub
parent 94dc53ee90
commit 4f381af4c5
5 changed files with 18 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ class Waiter:
async def foo() -> int:
...
return 42
async def main() -> None:

View File

@@ -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()