Skip to content

Commit 6c33bbf

Browse files
committed
Upgrade rich to 13.4.2
1 parent 50af834 commit 6c33bbf

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

news/rich.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade rich to 13.4.2

src/pip/_vendor/rich/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ def is_terminal(self) -> bool:
952952
force_color = self._environ.get("FORCE_COLOR")
953953
if force_color is not None:
954954
self._force_terminal = True
955+
return True
955956

956957
isatty: Optional[Callable[[], bool]] = getattr(self.file, "isatty", None)
957958
try:
@@ -2000,7 +2001,6 @@ def _check_buffer(self) -> None:
20002001
self._record_buffer.extend(self._buffer[:])
20012002

20022003
if self._buffer_index == 0:
2003-
20042004
if self.is_jupyter: # pragma: no cover
20052005
from .jupyter import display
20062006

src/pip/_vendor/rich/syntax.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ def _get_number_styles(self, console: Console) -> Tuple[Style, Style, Style]:
590590
def __rich_measure__(
591591
self, console: "Console", options: "ConsoleOptions"
592592
) -> "Measurement":
593-
594593
_, right, _, left = Padding.unpack(self.padding)
595594
padding = left + right
596595
if self.code_width is not None:
@@ -688,7 +687,7 @@ def _get_syntax(
688687
lines = (
689688
Text("\n")
690689
.join(lines)
691-
.with_indent_guides(self.tab_size, style=style)
690+
.with_indent_guides(self.tab_size, style=style + Style(italic=False))
692691
.split("\n", allow_blank=True)
693692
)
694693

@@ -830,7 +829,6 @@ def _get_code_index_for_syntax_position(
830829

831830

832831
if __name__ == "__main__": # pragma: no cover
833-
834832
import argparse
835833
import sys
836834

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ requests==2.31.0
1212
chardet==5.1.0
1313
idna==3.4
1414
urllib3==1.26.15
15-
rich==13.3.3
15+
rich==13.4.2
1616
pygments==2.14.0
1717
typing_extensions==4.6.0
1818
resolvelib==1.0.1

0 commit comments

Comments
 (0)