-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub annotations format for --output
#17771
base: master
Are you sure you want to change the base?
Add GitHub annotations format for --output
#17771
Conversation
21efb22
to
70c8feb
Compare
This comment has been minimized.
This comment has been minimized.
70c8feb
to
b330d80
Compare
This comment has been minimized.
This comment has been minimized.
I assume this no longer needs to be marked as a draft? |
I've got a TODO comment in the diff that I want to address before opening the PR for review. |
b330d80
to
e03e7f1
Compare
This comment has been minimized.
This comment has been minimized.
b335987
to
fcdfa8f
Compare
::notice file=main,line=12,col=12,title=Mypy (misc)::Revealed type is "Overload(def (), def (x: builtins.int))". | ||
::error file=main,line=14,col=0,title=Mypy (call-overload)::No overload variant of "foo" matches argument type "str".%0A%0APossible overload variants:%0A def foo() -> None%0A def foo(x: int) -> None | ||
::error file=main,line=17,col=0,title=Mypy (call-arg)::Too many arguments for "bar". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing!
@@ -530,11 +530,7 @@ def add_invertible_flag( | |||
) | |||
|
|||
general_group.add_argument( | |||
"-O", | |||
"--output", | |||
metavar="FORMAT", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was preventing the choices from being displayed in the --help
output
This comment has been minimized.
This comment has been minimized.
fcdfa8f
to
f22bffa
Compare
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Adds a new output format as GitHub Workflow commands, aka annotations.
Refs:
Closes #17612