From 4976c939af7cf408c9b05a5478053d85b363a038 Mon Sep 17 00:00:00 2001 From: Vince Chan Date: Sat, 2 Oct 2021 13:43:08 +0100 Subject: [PATCH] Fix swapped defaults in docstring for json printing --- rich/json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rich/json.py b/rich/json.py index c51514f4..6266c92a 100644 --- a/rich/json.py +++ b/rich/json.py @@ -10,8 +10,8 @@ class JSON: Args: json (str): JSON encoded data. - indent (int, optional): Number of characters to indent by. Defaults to True. - highlight (bool, optional): Enable highlighting. Defaults to 2. + indent (int, optional): Number of characters to indent by. Defaults to 2. + highlight (bool, optional): Enable highlighting. Defaults to True. """ def __init__(self, json: str, indent: int = 2, highlight: bool = True) -> None: