Path 1: 483 calls (0.82)

list (458) [] (25)

'top' (483)

5 (65) 14 (29) 19 (29) 6 (28) 7 (24) 10 (24) 3 (24) 22 (23) 0 (23) 9 (22)

Style (483)

list (483)

1def align_cell(
2                cell: List[List[Segment]],
3                vertical: "VerticalAlignMethod",
4                width: int,
5                style: Style,
6            ) -> List[List[Segment]]:
7                if header_row:
8                    vertical = "bottom"
9                elif footer_row:
10                    vertical = "top"
11
12                if vertical == "top":
13                    return _Segment.align_top(cell, width, row_height, style)
14                elif vertical == "middle":
15                    return _Segment.align_middle(cell, width, row_height, style)
16                return _Segment.align_bottom(cell, width, row_height, style)
            

Path 2: 77 calls (0.13)

list (62) [] (15)

'top' (77)

0 (13) 5 (13) 22 (12) 17 (9) 10 (6) 9 (3) 14 (2) 19 (2) 16 (2) 6 (2)

Style (77)

list (77)

1def align_cell(
2                cell: List[List[Segment]],
3                vertical: "VerticalAlignMethod",
4                width: int,
5                style: Style,
6            ) -> List[List[Segment]]:
7                if header_row:
8                    vertical = "bottom"
9                elif footer_row:
10                    vertical = "top"
11
12                if vertical == "top":
13                    return _Segment.align_top(cell, width, row_height, style)
14                elif vertical == "middle":
15                    return _Segment.align_middle(cell, width, row_height, style)
16                return _Segment.align_bottom(cell, width, row_height, style)
            

Path 3: 24 calls (0.04)

list (19) [] (5)

'top' (24)

0 (5) 17 (4) 10 (4) 22 (3) 5 (3) 9 (2) 25 (1) 19 (1) 4 (1)

Style (24)

list (24)

1def align_cell(
2                cell: List[List[Segment]],
3                vertical: "VerticalAlignMethod",
4                width: int,
5                style: Style,
6            ) -> List[List[Segment]]:
7                if header_row:
8                    vertical = "bottom"
9                elif footer_row:
10                    vertical = "top"
11
12                if vertical == "top":
13                    return _Segment.align_top(cell, width, row_height, style)
14                elif vertical == "middle":
15                    return _Segment.align_middle(cell, width, row_height, style)
16                return _Segment.align_bottom(cell, width, row_height, style)
            

Path 4: 1 calls (0.0)

list (1)

'middle' (1)

5 (1)

Style (1)

list (1)

1def align_cell(
2                cell: List[List[Segment]],
3                vertical: "VerticalAlignMethod",
4                width: int,
5                style: Style,
6            ) -> List[List[Segment]]:
7                if header_row:
8                    vertical = "bottom"
9                elif footer_row:
10                    vertical = "top"
11
12                if vertical == "top":
13                    return _Segment.align_top(cell, width, row_height, style)
14                elif vertical == "middle":
15                    return _Segment.align_middle(cell, width, row_height, style)
16                return _Segment.align_bottom(cell, width, row_height, style)
            

Path 5: 1 calls (0.0)

list (1)

'bottom' (1)

5 (1)

Style (1)

list (1)

1def align_cell(
2                cell: List[List[Segment]],
3                vertical: "VerticalAlignMethod",
4                width: int,
5                style: Style,
6            ) -> List[List[Segment]]:
7                if header_row:
8                    vertical = "bottom"
9                elif footer_row:
10                    vertical = "top"
11
12                if vertical == "top":
13                    return _Segment.align_top(cell, width, row_height, style)
14                elif vertical == "middle":
15                    return _Segment.align_middle(cell, width, row_height, style)
16                return _Segment.align_bottom(cell, width, row_height, style)