Method: rich.console.ScreenContext.update
Calls: 3, Exceptions: 0, Paths: 3Back
Path 1: 1 calls (0.33)
'blue' (1)
('foo',) (1)
1def update(
2 self, *renderables: RenderableType, style: Optional[StyleType] = None
3 ) -> None:
4 """Update the screen.
5
6 Args:
7 renderable (RenderableType, optional): Optional renderable to replace current renderable,
8 or None for no change. Defaults to None.
9 style: (Style, optional): Replacement style, or None for no change. Defaults to None.
10 """
11 if renderables:
12 self.screen.renderable = (
13 Group(*renderables) if len(renderables) > 1 else renderables[0]
14 )
15 if style is not None:
16 self.screen.style = style
17 self.console.print(self.screen, end="")
Path 2: 1 calls (0.33)
None (1)
('bar',) (1)
1def update(
2 self, *renderables: RenderableType, style: Optional[StyleType] = None
3 ) -> None:
4 """Update the screen.
5
6 Args:
7 renderable (RenderableType, optional): Optional renderable to replace current renderable,
8 or None for no change. Defaults to None.
9 style: (Style, optional): Replacement style, or None for no change. Defaults to None.
10 """
11 if renderables:
12 self.screen.renderable = (
13 Group(*renderables) if len(renderables) > 1 else renderables[0]
14 )
15 if style is not None:
16 self.screen.style = style
17 self.console.print(self.screen, end="")
Path 3: 1 calls (0.33)
None (1)
() (1)
1def update(
2 self, *renderables: RenderableType, style: Optional[StyleType] = None
3 ) -> None:
4 """Update the screen.
5
6 Args:
7 renderable (RenderableType, optional): Optional renderable to replace current renderable,
8 or None for no change. Defaults to None.
9 style: (Style, optional): Replacement style, or None for no change. Defaults to None.
10 """
11 if renderables:
12 self.screen.renderable = (
13 Group(*renderables) if len(renderables) > 1 else renderables[0]
14 )
15 if style is not None:
16 self.screen.style = style
17 self.console.print(self.screen, end="")