-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Ensure syntax error messages are capitalized #19107
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
Comments
Hi, can I work on this? |
@makridenko There is no process in the mypy repo for requiring permission to work on an issue. Therefore: you can! |
For additional context to the OP, here is an error that is (I intuit) capitalized correctly:
As you can see, the word after "error:" starts with a capital letter. |
HI, |
Fixes ##19107 Cause of Issue: ```ast3``` parser raises exception with error message which sometimes non-standardized. eg : ``` error: expected an indented block after function definition on line 1 [syntax] ``` Resolution: - standardize the exception error message before report generation for syntax exceptions specifically Contributors: - Me and [@aman ](https://github.com/amansomething) --------- Co-authored-by: Charulata Lodha <[email protected]> Co-authored-by: amansomething <[email protected]>
Fixed in #19114 (not auto-closed due to a typo in the magic). |
Feature
When there is a syntax error, the error message has often a lower-case initial letter:
Capitalize these error messages for consistency.
Pitch
Almost all other error messages are capitalized, so the current situation is inconsistent.
The text was updated successfully, but these errors were encountered: