Skip to content

Commit 3744402

Browse files
committed
typing fix
1 parent 1a11608 commit 3744402

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The [Rich API](https://rich.readthedocs.io/en/latest/) makes it easy to add colo
1010

1111
![Features](https://github.com/willmcgugan/rich/raw/master/imgs/features.png)
1212

13+
## Compatibility
14+
15+
Rich works with Linux, OSX, and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 8 colors.
16+
1317
## Installing
1418

1519
Install with `pip` or your favorite PyPi package manager.

rich/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def __init__(
279279
self._markup = markup
280280
self._emoji = emoji
281281
self._highlight = highlight
282-
self.legacy_windows = "WINDIR" in os.environ and not "WT_SESSION" in os.environ
282+
self.legacy_windows: bool = "WINDIR" in os.environ and not "WT_SESSION" in os.environ
283283

284284
self._color_system: Optional[ColorSystem]
285285
if self.legacy_windows:

0 commit comments

Comments
 (0)