Path 1: 4 calls (1.0)

None (3) 'http://example.org' (1)

Style (4)

1def update_link(self, link: Optional[str] = None) -> "Style":
2        """Get a copy with a different value for link.
3
4        Args:
5            link (str, optional): New value for link. Defaults to None.
6
7        Returns:
8            Style: A new Style instance.
9        """
10        style: Style = self.__new__(Style)
11        style._ansi = self._ansi
12        style._style_definition = self._style_definition
13        style._color = self._color
14        style._bgcolor = self._bgcolor
15        style._attributes = self._attributes
16        style._set_attributes = self._set_attributes
17        style._link = link
18        style._link_id = f"{randint(0, 999999)}" if link else ""
19        style._hash = None
20        style._null = False
21        style._meta = self._meta
22        return style