mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Remove get_call_signature_for_any
This commit is contained in:
@@ -172,18 +172,6 @@ def get_call_signature(funcdef, width=72, call_string=None,
|
||||
return '\n'.join(textwrap.wrap(code, width))
|
||||
|
||||
|
||||
def get_call_signature_for_any(any_node):
|
||||
call_signature = None
|
||||
if any_node.type == 'classdef':
|
||||
for funcdef in any_node.iter_funcdefs():
|
||||
if funcdef.name.value == '__init__':
|
||||
call_signature = \
|
||||
get_call_signature(funcdef, call_string=any_node.name.value)
|
||||
elif any_node.type in ('funcdef', 'lambdef'):
|
||||
call_signature = get_call_signature(any_node)
|
||||
return call_signature
|
||||
|
||||
|
||||
def move(node, line_offset):
|
||||
"""
|
||||
Move the `Node` start_pos.
|
||||
|
||||
@@ -84,5 +84,3 @@ def test_get_call_signature(code, call_signature):
|
||||
if node.type == 'simple_stmt':
|
||||
node = node.children[0]
|
||||
assert parser_utils.get_call_signature(node) == call_signature
|
||||
|
||||
assert parser_utils.get_call_signature_for_any(node) == call_signature
|
||||
|
||||
Reference in New Issue
Block a user