Skip to content

Commit 21e2790

Browse files
committed
[config] Explain why we don't use PrintBar or eprint here
1 parent 4fb71e8 commit 21e2790

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def __init__(self, source: str | Path, **kwargs: Any) -> None:
129129

130130
def warn(msg: Any) -> None:
131131
global n_warn
132+
# `config` is imported before `util`, so we cannot use a `PrintBar` or `eprint` here.
132133
print(f"{Fore.YELLOW}WARNING: {msg}{Style.RESET_ALL}", file=sys.stderr)
133134
n_warn += 1
134135

0 commit comments

Comments
 (0)