mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-01 04:03:45 +08:00
Add test _PseudoTreeNameClass.type == 'class'
This commit is contained in:
1 parent
7cd89cff6e
commit
7ccee7d8fc
1 file changed
+4
@@ -599,3 +599,7 @@ def test_get_type_hint(Script, code, expected, skip_pre_python36):
|
||||
code = 'from typing import *\n' + code
|
||||
d, = Script(code).goto()
|
||||
assert d.get_type_hint() == expected
|
||||
|
||||
|
||||
def test_pseudotreenameclass_type(Script):
|
||||
assert Script('from typing import Any\n').get_names()[0].type == 'class'
|
||||
Reference in new issue
Block a user