From f454042d3fc02e0435effd58794a53e4443a6b65 Mon Sep 17 00:00:00 2001 From: "jimms.hsieh" Date: Tue, 6 Oct 2020 11:34:13 -0700 Subject: [PATCH] Fix typo and remove missing argument in comment --- rich/console.py | 2 +- rich/syntax.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rich/console.py b/rich/console.py index bf87522f..10873637 100644 --- a/rich/console.py +++ b/rich/console.py @@ -1413,7 +1413,7 @@ if __name__ == "__main__": # pragma: no cover "options": [ "New York Bulls", "Los Angeles Kings", - "Golden State Warriros", + "Golden State Warriors", "Huston Rocket", ], "answer": "Huston Rocket", diff --git a/rich/syntax.py b/rich/syntax.py index 48940209..8055730c 100644 --- a/rich/syntax.py +++ b/rich/syntax.py @@ -271,7 +271,6 @@ class Syntax(JupyterMixin): Args: path (str): Path to file to highlight. encoding (str): Encoding of file. - lexer_name (str): Lexer to use (see https://pygments.org/docs/lexers/) theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "emacs". dedent (bool, optional): Enable stripping of initial whitespace. Defaults to True. line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.