mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Remove unnecessary code
This commit is contained in:
@@ -467,8 +467,6 @@ class Completion(BaseDefinition):
|
|||||||
and self.type == 'function':
|
and self.type == 'function':
|
||||||
append = '('
|
append = '('
|
||||||
|
|
||||||
self._name.api_type
|
|
||||||
|
|
||||||
name = self._name.get_public_name()
|
name = self._name.get_public_name()
|
||||||
if like_name:
|
if like_name:
|
||||||
name = name[self._like_name_length:]
|
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(), [])
|
_assert_interpreter_complete('foo.bar.baz', locals(), [])
|
||||||
|
|
||||||
if allow_unsafe_getattr:
|
if allow_unsafe_getattr:
|
||||||
assert lst == [1, 1]
|
assert lst == [1]
|
||||||
else:
|
else:
|
||||||
# There should not be side effects
|
# There should not be side effects
|
||||||
assert lst == []
|
assert lst == []
|
||||||
@@ -287,7 +287,7 @@ def test_property_error_newstyle(allow_unsafe_getattr):
|
|||||||
_assert_interpreter_complete('foo.bar.baz', locals(), [])
|
_assert_interpreter_complete('foo.bar.baz', locals(), [])
|
||||||
|
|
||||||
if allow_unsafe_getattr:
|
if allow_unsafe_getattr:
|
||||||
assert lst == [1, 1]
|
assert lst == [1]
|
||||||
else:
|
else:
|
||||||
# There should not be side effects
|
# There should not be side effects
|
||||||
assert lst == []
|
assert lst == []
|
||||||
|
|||||||
Reference in New Issue
Block a user