Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lmdeploy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _ASNI_COLOR:

# copy from: https://github.com/termcolor/termcolor
@functools.cache
def can_colorize(*, no_color: bool | None = None, force_color: bool | None = None) -> bool:
def can_colorize(*, no_color: Optional[bool] = None, force_color: Optional[bool] = None) -> bool:
"""Check env vars and for tty/dumb terminal."""
import io
if no_color is not None and no_color:
Expand Down