mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix an issue where a default value was wrongly used
This commit is contained in:
@@ -290,6 +290,9 @@ def test_type(Script):
|
||||
else:
|
||||
assert c.type in ('function', 'instance')
|
||||
|
||||
for c in Script('list.').completions():
|
||||
assert c.type
|
||||
|
||||
# Github issue #397, type should never raise an error.
|
||||
for c in Script('import os; os.path.').completions():
|
||||
assert c.type
|
||||
|
||||
Reference in New Issue
Block a user