Some cleaning up of code

This commit is contained in:
Dave Halter
2018-01-13 18:59:03 +01:00
parent 3a0ac37ee8
commit b92c7d3351

View File

@@ -10,6 +10,7 @@ from jedi.evaluate.base_context import NO_CONTEXTS
from jedi.evaluate.context import iterable
from jedi.evaluate.param import get_params, ExecutedParam
def try_iter_content(types, depth=0):
"""Helper method for static analysis."""
if depth > 10:
@@ -199,9 +200,9 @@ class TreeArguments(AbstractArguments):
arguments = param.var_args
break
if arguments.argument_node:
if arguments.argument_node is not None:
return [arguments.argument_node]
if arguments.trailer:
if arguments.trailer is not None:
return [arguments.trailer]
return []