Skip to content

Added json.dumps parameters#1644

Merged
willmcgugan merged 4 commits intomasterfrom
json-params
Nov 5, 2021
Merged

Added json.dumps parameters#1644
willmcgugan merged 4 commits intomasterfrom
json-params

Conversation

@willmcgugan
Copy link
Member

Closes #1638

@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #1644 (5d601fa) into master (5dddadb) will not change coverage.
The diff coverage is 97.82%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1644   +/-   ##
=======================================
  Coverage   99.69%   99.69%           
=======================================
  Files          71       71           
  Lines        6860     6860           
=======================================
  Hits         6839     6839           
  Misses         21       21           
Flag Coverage Δ
unittests 99.69% <97.82%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
rich/box.py 100.00% <ø> (ø)
rich/live.py 100.00% <ø> (ø)
rich/pager.py 90.00% <50.00%> (ø)
rich/__init__.py 100.00% <100.00%> (ø)
rich/columns.py 100.00% <100.00%> (ø)
rich/console.py 100.00% <100.00%> (ø)
rich/json.py 100.00% <100.00%> (ø)
rich/measure.py 100.00% <100.00%> (ø)
rich/panel.py 100.00% <100.00%> (ø)
rich/pretty.py 98.15% <100.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ad5191...5d601fa. Read the comment docs.

@willmcgugan willmcgugan merged commit 5f6cec2 into master Nov 5, 2021
@willmcgugan willmcgugan deleted the json-params branch November 5, 2021 11:13
skshetry added a commit to skshetry/dvc that referenced this pull request Nov 7, 2021
It comes with the support for no. of parameters that matches with json.dumps.
See: Textualize/rich#1547 and
Textualize/rich#1644.

Also added support for printing json to stderr. Before we used to use json.dumps
and rich.json.JSON based on isatty. Now we use rich.print_json on both
tty and non-tty conditions, which may avoid different behaviours in the
future.
efiop pushed a commit to treeverse/dvc that referenced this pull request Nov 7, 2021
It comes with the support for no. of parameters that matches with json.dumps.
See: Textualize/rich#1547 and
Textualize/rich#1644.

Also added support for printing json to stderr. Before we used to use json.dumps
and rich.json.JSON based on isatty. Now we use rich.print_json on both
tty and non-tty conditions, which may avoid different behaviours in the
future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQUEST]Printing Chinese characters in dictionary only shows me \u1234 when using print_json

1 participant