mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 03:50:12 +08:00
Remove unnecessary code
This commit is contained in:
1 parent
0a53ce5136
commit
04a738c014
2 files changed
+2
-4
No files matched your search
@@ -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