Пример #1
0
def test_empty_node() -> None:
    enum_mod = extract_node("import enum")
    empty = EmptyNode(parent=enum_mod)
    empty.is_statement = True
    filtered_statements = _filter_stmts(empty, [empty.statement(future=True)],
                                        empty.frame(future=True), 0)
    assert filtered_statements[0] is empty