Skip to content
Open
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
6 changes: 5 additions & 1 deletion IPython/core/kitty.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ def _supports_kitty_graphics() -> bool:
if forced is not None:
return forced

if sys.platform not in ("darwin", "linux"):
# Compare a copy of sys.platform: mypy treats checks on sys.platform itself as
# constant for the target platform, and with --platform win32 it would then
# flag the rest of this function as unreachable.
platform = sys.platform
if platform not in ("darwin", "linux"):
return False

isatty = getattr(sys.stdout, "isatty", None)
Expand Down
Loading