diff options
Diffstat (limited to 'libs/rich/bar.py')
-rw-r--r-- | libs/rich/bar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rich/bar.py b/libs/rich/bar.py index ecd18743e..ed86a552d 100644 --- a/libs/rich/bar.py +++ b/libs/rich/bar.py @@ -1,4 +1,4 @@ -from typing import Union +from typing import Optional, Union from .color import Color from .console import Console, ConsoleOptions, RenderResult @@ -32,7 +32,7 @@ class Bar(JupyterMixin): begin: float, end: float, *, - width: int = None, + width: Optional[int] = None, color: Union[Color, str] = "default", bgcolor: Union[Color, str] = "default", ): |