Skip to content

Commit 41cc14d

Browse files
committed
Merge branch 'master' of github.com:willmcgugan/rich
2 parents f7a66d7 + a0e90de commit 41cc14d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The log method could be used for logging to the terminal for long running applic
109109

110110
### Logging Handler
111111

112-
You can also use the builtin [Handler class](https://rich.readthedocs.io/en/latest/logging.html) to format and colorize output form Python's logging module. Here's an example of the output:
112+
You can also use the builtin [Handler class](https://rich.readthedocs.io/en/latest/logging.html) to format and colorize output from Python's logging module. Here's an example of the output:
113113

114114
![Logging](https://github.com/willmcgugan/rich/blob/master/imgs/logging.png)
115115

docs/source/protocol.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The ``__console__`` method should accept a :class:`~rich.console.Console` and a
3131
Here's an example of a ``__console__`` method::
3232

3333
from rich.console import Console, ConsoleOptions, RenderResult
34+
from rich.table import Table
3435

3536
@dataclass
3637
class Student:
@@ -39,7 +40,7 @@ Here's an example of a ``__console__`` method::
3940
age: int
4041
def __console__(self, console: Console, options: ConsoleOptions) -> RenderResult:
4142
yield f"[b]Student:[/b] #{self.id}"
42-
my_table = Table("Attribute, "Value")
43+
my_table = Table("Attribute", "Value")
4344
my_table.add_row("name", self.name)
4445
my_table.add_row("age", str(self.age))
4546
yield my_table

0 commit comments

Comments
 (0)