8000 syntax error messages capitalization by charulatalodha · Pull Request #19114 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

syntax error messages capitalization #19114

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

Merged
merged 8 commits into from
May 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
syntax error messages capitalization
  • Loading branch information
charulatalodha authored May 19, 2025
commit 766d4e7c95816b286964faee0c46131aec7b21c6
2 changes: 1 addition & 1 deletion mypy/fastparse.py
7F2F
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def parse(
raise e

except SyntaxError as e:
message = e.msg
message = e.msg.capitalize()
if feature_version > sys.version_info.minor and message.startswith("invalid syntax"):
python_version_str = f"{options.python_version[0]}.{options.python_version[1]}"
message += f"; you likely need to run mypy using Python {python_version_str} or newer"
Expand Down
Loading
0