mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Some cleaning up of code
This commit is contained in:
@@ -10,6 +10,7 @@ from jedi.evaluate.base_context import NO_CONTEXTS
|
|||||||
from jedi.evaluate.context import iterable
|
from jedi.evaluate.context import iterable
|
||||||
from jedi.evaluate.param import get_params, ExecutedParam
|
from jedi.evaluate.param import get_params, ExecutedParam
|
||||||
|
|
||||||
|
|
||||||
def try_iter_content(types, depth=0):
|
def try_iter_content(types, depth=0):
|
||||||
"""Helper method for static analysis."""
|
"""Helper method for static analysis."""
|
||||||
if depth > 10:
|
if depth > 10:
|
||||||
@@ -199,9 +200,9 @@ class TreeArguments(AbstractArguments):
|
|||||||
arguments = param.var_args
|
arguments = param.var_args
|
||||||
break
|
break
|
||||||
|
|
||||||
if arguments.argument_node:
|
if arguments.argument_node is not None:
|
||||||
return [arguments.argument_node]
|
return [arguments.argument_node]
|
||||||
if arguments.trailer:
|
if arguments.trailer is not None:
|
||||||
return [arguments.trailer]
|
return [arguments.trailer]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user