diff options
| author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-04-07 10:46:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-07 10:46:05 +0200 |
| commit | 76172d4dfabba4d18ef821c2ef223f9feea03d04 (patch) | |
| tree | 8d47a2a66594e5bd774894e9d8cea8bdba2caa12 /tests | |
| parent | 8e2872028d5ee287032f0c22ba5e11af01ed29c9 (diff) | |
| download | astroid-git-76172d4dfabba4d18ef821c2ef223f9feea03d04.tar.gz | |
Use inference_tip for typing.TypedDict brain (#928)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unittest_brain.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/unittest_brain.py b/tests/unittest_brain.py index 57b9dc09..c1ef8103 100644 --- a/tests/unittest_brain.py +++ b/tests/unittest_brain.py @@ -1372,12 +1372,9 @@ class TypingBrain(unittest.TestCase): var: int """ ) - assert len(node.bases) == 1 inferred_base = next(node.bases[0].infer()) - self.assertIsInstance(inferred_base, nodes.ClassDef, node.as_string()) - typing_module = inferred_base.root() - assert len(typing_module.locals["TypedDict"]) == 1 - assert inferred_base == typing_module.locals["TypedDict"][0] + assert isinstance(inferred_base, nodes.ClassDef) + assert inferred_base.qname() == "typing.TypedDict" @test_utils.require_version(minver="3.7") def test_typing_alias_type(self): |
