Path 1: 586 calls (0.41)

5 (83) 0 (41) 22 (38) 10 (34) 17 (34) 19 (32) 14 (31) 6 (30) 9 (27) 7 (24)

NoChange (586)

NoChange (586)

'left' (408) 'right' (105) 'center' (73)

'ellipsis' (565) 'fold' (21)

False (431) True (155)

NoChange (586)

NoChange (586)

None (586)

ConsoleOptions (586)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 2: 408 calls (0.29)

NoChange (408)

NoChange (408)

NoChange (408)

None (398) 'left' (3) 'center' (3) 'right' (3) 'full' (1)

None (390) 'ignore' (18)

None (369) True (22) False (17)

None (408)

None (391) True (16) False (1)

None (408)

ConsoleOptions (408)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 3: 181 calls (0.13)

48 (17) 140 (15) 98 (15) 58 (12) 60 (8) 6 (8) 10 (7) 80 (6) 3 (6) 85 (5)

NoChange (181)

NoChange (181)

NoChange (181)

NoChange (181)

NoChange (181)

False (176) True (5)

NoChange (181)

None (181)

ConsoleOptions (181)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 4: 69 calls (0.05)

NoChange (69)

NoChange (69)

NoChange (69)

'left' (69)

NoChange (69)

NoChange (69)

NoChange (69)

NoChange (69)

None (69)

ConsoleOptions (69)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 5: 56 calls (0.04)

88 (20) 97 (14) 100 (7) 60 (5) 38 (4) 96 (2) 37 (1) 15 (1) 30 (1) 95 (1)

NoChange (56)

NoChange (56)

NoChange (56)

NoChange (56)

NoChange (56)

NoChange (56)

NoChange (56)

NoChange (56)

ConsoleOptions (56)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 6: 43 calls (0.03)

NoChange (43)

NoChange (43)

NoChange (43)

'center' (43)

NoChange (43)

NoChange (43)

NoChange (43)

NoChange (43)

NoChange (43)

ConsoleOptions (43)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 7: 31 calls (0.02)

NoChange (31)

NoChange (31)

NoChange (31)

NoChange (31)

NoChange (31)

NoChange (31)

NoChange (31)

NoChange (31)

None (31)

ConsoleOptions (31)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 8: 12 calls (0.01)

0 (1) 8 (1) 10 (1) 15 (1) 20 (1) 25 (1) 30 (1) 35 (1) 40 (1) 45 (1)

NoChange (12)

NoChange (12)

None (12)

None (12)

None (12)

None (12)

None (12)

None (12)

ConsoleOptions (12)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 9: 7 calls (0.0)

NoChange (7)

NoChange (7)

NoChange (7)

None (7)

None (7)

None (7)

None (7)

None (7)

5 (4) 10 (2) 12 (1)

ConsoleOptions (7)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 10: 7 calls (0.0)

8 (3) 18 (1) 58 (1) 28 (1) 78 (1)

NoChange (7)

NoChange (7)

NoChange (7)

NoChange (7)

NoChange (7)

False (7)

NoChange (7)

3 (5) 10 (1) 2 (1)

ConsoleOptions (7)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 11: 6 calls (0.0)

20 (6)

NoChange (6)

NoChange (6)

NoChange (6)

NoChange (6)

NoChange (6)

NoChange (6)

NoChange (6)

4 (3) 5 (3)

ConsoleOptions (6)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 12: 3 calls (0.0)

60 (2) 20 (1)

NoChange (3)

NoChange (3)

'left' (3)

NoChange (3)

NoChange (3)

NoChange (3)

NoChange (3)

None (3)

ConsoleOptions (3)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 13: 2 calls (0.0)

NoChange (2)

NoChange (2)

NoChange (2)

NoChange (2)

NoChange (2)

NoChange (2)

NoChange (2)

False (1) True (1)

NoChange (2)

ConsoleOptions (2)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 14: 1 calls (0.0)

NoChange (1)

5 (1)

15 (1)

'right' (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

ConsoleOptions (1)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options
            

Path 15: 1 calls (0.0)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

NoChange (1)

ConsoleOptions (1)

1def update(
2        self,
3        *,
4        width: Union[int, NoChange] = NO_CHANGE,
5        min_width: Union[int, NoChange] = NO_CHANGE,
6        max_width: Union[int, NoChange] = NO_CHANGE,
7        justify: Union[Optional[JustifyMethod], NoChange] = NO_CHANGE,
8        overflow: Union[Optional[OverflowMethod], NoChange] = NO_CHANGE,
9        no_wrap: Union[Optional[bool], NoChange] = NO_CHANGE,
10        highlight: Union[Optional[bool], NoChange] = NO_CHANGE,
11        markup: Union[Optional[bool], NoChange] = NO_CHANGE,
12        height: Union[Optional[int], NoChange] = NO_CHANGE,
13    ) -> "ConsoleOptions":
14        """Update values, return a copy."""
15        options = self.copy()
16        if not isinstance(width, NoChange):
17            options.min_width = options.max_width = max(0, width)
18        if not isinstance(min_width, NoChange):
19            options.min_width = min_width
20        if not isinstance(max_width, NoChange):
21            options.max_width = max_width
22        if not isinstance(justify, NoChange):
23            options.justify = justify
24        if not isinstance(overflow, NoChange):
25            options.overflow = overflow
26        if not isinstance(no_wrap, NoChange):
27            options.no_wrap = no_wrap
28        if not isinstance(highlight, NoChange):
29            options.highlight = highlight
30        if not isinstance(markup, NoChange):
31            options.markup = markup
32        if not isinstance(height, NoChange):
33            if height is not None:
34                options.max_height = height
35            options.height = None if height is None else max(0, height)
36        return options