-
-
Notifications
You must be signed in to change notification settings - Fork 1.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 a comment about _typeshed to VERSIONS #5447
Conversation
Support inline comments in VERSIONS
Personally I would prefer to keep the syntax as simple as we can. Several file formats, such as For |
Comments at the end of the line are a common standard. Even Python supports them. :) The reason why I want to comment on |
Seems like this needs changes in mypy |
This comment has been minimized.
This comment has been minimized.
tests/mypy_test.py
Outdated
if line == "": | ||
continue | ||
m = _VERSION_LINE_RE.match(line) | ||
assert m, "invalid VERSIONS line :" + line |
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.
Nit:
assert m, "invalid VERSIONS line :" + line | |
assert m, "invalid VERSIONS line: " + line |
The primer reports lots of issues, similar to #5473. I'll postpone this until that PR merged cleanly. |
I noticed that too, seemed like something related to third-party packages. I'll look at it for a while. |
Looks like I broke typeshed CI with a mypy change I just merged. I'll fix it. |
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Support inline comments in VERSIONS