def test_type():
    for c in Script('import os; os.path.').completions():
        assert c.type
Github issue #397, type should never raise an error.
dataset/ETHPy150Open davidhalter/jedi/test/test_api/test_classes.py/test_type