Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 261fb94

Browse files
committed
Fix calling cli_ui.dot() without fileobj argument
1 parent cb84374 commit 261fb94

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

cli_ui/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def info_3(*tokens: Token, **kwargs: Any) -> None:
325325
info(bold, blue, "*", reset, *tokens, **kwargs)
326326

327327

328-
def dot(*, last: bool = False, fileobj: Any = None) -> None:
328+
def dot(*, last: bool = False, fileobj: FileObj = sys.stdout) -> None:
329329
""" Print a dot without a newline unless it is the last one.
330330
331331
Useful when you want to display a progress with very little
@@ -400,10 +400,8 @@ def info_table(
400400
data: Any,
401401
*,
402402
headers: Union[str, Dict[str, str], Sequence[str]] = (),
403-
fileobj: Any = None
403+
fileobj: FileObj = sys.stdout
404404
) -> None:
405-
if not fileobj:
406-
fileobj = sys.stdout
407405
colored_data = list()
408406
plain_data = list()
409407
for row in data:

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
----------
33

4+
v0.10.2
5+
+++++++
6+
7+
* Fix calling `cli_ui.dot()` without `fileobj` argument.
8+
49
v0.10.1
510
+++++++
611

0 commit comments

Comments
 (0)