mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Remove unnecessary code
This commit is contained in:
@@ -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:]
|
||||
|
||||
@@ -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 == []
|
||||
|
||||
Reference in New Issue
Block a user