Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 29, 2021
1 parent cfb7532 commit 7e85a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def from_data(cls, data: Any, indent: int = 4, highlight: bool = True) -> "JSON"
indent (int, optional): Number of characters to indent by. Defaults to True.
highlight (bool, optional): Enable highlighting. Defaults to True.
"""
json_instance = cls.__new__(cls)
json_instance: "JSON" = cls.__new__(cls)
json = dumps(data, indent=indent)
highlighter = JSONHighlighter() if highlight else NullHighlighter()
json_instance.text = highlighter(json)
Expand Down

0 comments on commit 7e85a93

Please sign in to comment.