Skip to content

Commit

Permalink
log: fix typing CI failure
Browse files Browse the repository at this point in the history
Fixes Incompatible return value type (got "Optional[Any]", expected "bool")
  • Loading branch information
kingosticks committed Jan 12, 2022
1 parent 02234a7 commit c36524a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy/internal/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __init__(self, logger_colors: Dict[str, LogColor]) -> None:
@property
def is_tty(self) -> bool:
isatty = getattr(self.stream, "isatty", None)
return isatty and isatty()
return isatty is not None and isatty()

def emit(self, record: LogRecord) -> None:
try:
Expand Down

0 comments on commit c36524a

Please sign in to comment.