Skip to content

Commit 766d4e7

Browse files
syntax error messages capitalization
1 parent 8ed16d1 commit 766d4e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/fastparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def parse(
263263
raise e
264264

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

0 commit comments

Comments
 (0)