mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Add test _PseudoTreeNameClass.type == 'class'
This commit is contained in:
@@ -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