diff --git a/test/completion/pep0484_typing.py b/test/completion/pep0484_typing.py index 0467c8c5..2dfc50fc 100644 --- a/test/completion/pep0484_typing.py +++ b/test/completion/pep0484_typing.py @@ -198,3 +198,27 @@ from typing import Union as U def union4(x: U[int, str]): #? int() str() x + +class TestDict(typing.Dict[str, int]): + def setdud(self): + pass + +def testdict(x: TestDict): + #? ["setdud", "setdefault"] + x.setd + for key in x.keys(): + #? str() + key + for value in x.values(): + #? int() + value + +x = TestDict() +#? ["setdud", "setdefault"] +x.setd +for key in x.keys(): + #? str() + key +for value in x.values(): + #? int() + value