You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dmypy] special case stdout and stderr in show_stats too (#15881)
When running dmypy, the communication between client and server is via
JSON. The JSON contains the keys "out" and "err" for the actual result
of "check" command, and "stdout" and "stderr" for the any other stdout
and stderr text.
show_stats is shown when running with --verbose. It's meant to show
other keys in the JSON response, like python version or time taken. It
already had some special casing to only show 1 line of text for "out"
and "err". Let's add "stdout" and "stderr" to the special casing as
well. Also, let's show the remaining number of characters as well.
Finally, added a comment in code about stdout, stderr, out, err and how
we shouldn't confuse them. (I did)
Some more cleanup is needed in this area of the codebase, but will be a
separate PR.
show_stats outputs something like this:
```
err :
out : analytics/scripts/presto/report_query_lo ... 100 more characters
platform : linux
python_version : 3_9
roundtrip_time : 31.996
status : 2
stderr : \nLOG: Mypy Version: 1.6.0+de ... 50186630 more characters
stdout :
```
0 commit comments