示例#1
0
def test_node_is_complex_field_false():
    m = astroid.parse(test_doc_complex_field)
    attr = list(m.body[2].body[2].body[1].get_children())[0]

    r = utils.node_is_complex_field(attr)

    assert r is False
示例#2
0
def _is_complex_field_compare(node):
    r = False
    _, right = node.ops[0]
    r = node_is_complex_field(right)
    return r
示例#3
0
def _is_complex_field_subscript(node):
    attr = node.value
    r = node_is_complex_field(attr)
    return r
示例#4
0
def _is_complex_field_for(node):
    attr = list(node.get_children())[1]
    r = node_is_complex_field(attr)
    return r