ducminh-phan/reformat-gherkin

View on GitHub
reformat_gherkin/ast_node/data_table.py

Summary

Maintainability
A
0 mins
Test Coverage
from typing import Tuple

from ._base import prepare
from .location import LocationMixin
from .table_row import TableRow


@prepare
class DataTable(LocationMixin):
    rows: Tuple[TableRow, ...]

    def __iter__(self):
        yield self

        yield from self.rows