From 04a738c014f96d7b4082ae9662790103dc4909ce Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 1 Jan 2020 23:11:02 +0100 Subject: [PATCH] Remove unnecessary code --- jedi/api/classes.py | 2 -- test/test_api/test_interpreter.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index ee906bf3..1322fdc0 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -467,8 +467,6 @@ class Completion(BaseDefinition): and self.type == 'function': append = '(' - self._name.api_type - name = self._name.get_public_name() if like_name: name = name[self._like_name_length:] diff --git a/test/test_api/test_interpreter.py b/test/test_api/test_interpreter.py index 1bfc3d7f..c443280c 100644 --- a/test/test_api/test_interpreter.py +++ b/test/test_api/test_interpreter.py @@ -267,7 +267,7 @@ def test_property_error_oldstyle(allow_unsafe_getattr): _assert_interpreter_complete('foo.bar.baz', locals(), []) if allow_unsafe_getattr: - assert lst == [1, 1] + assert lst == [1] else: # There should not be side effects assert lst == [] @@ -287,7 +287,7 @@ def test_property_error_newstyle(allow_unsafe_getattr): _assert_interpreter_complete('foo.bar.baz', locals(), []) if allow_unsafe_getattr: - assert lst == [1, 1] + assert lst == [1] else: # There should not be side effects assert lst == []