-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ban type comments in stubs #167
Conversation
This was what led me to open python/typeshed#7099, by the way — an early draft of this PR raised false positives for those commented-out classes. |
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.
Thanks!
|
||
for match, next_match in zip_longest(error_codes, error_codes[1:]): | ||
end_pos = len(line) if next_match is None else next_match.start() | ||
message = line[match.end() : end_pos].strip() |
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.
I guess this is needed to support nested "#" within errors.
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.
Yup, you got it.
Fixes #33