Skip to content
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

bpo-36878: Track extra text added to 'type: ignore' in the AST #13479

Merged
merged 1 commit into from
May 22, 2019

Conversation

msullivan
Copy link
Contributor

@msullivan msullivan commented May 21, 2019

#13238 made extra text after a # type: ignore accepted by the parser.
This finishes the job and actually plumbs the extra text through the
parser and makes it available in the AST.

https://bugs.python.org/issue36878

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@ilevkivskyi ilevkivskyi merged commit 933e150 into python:master May 22, 2019
@msullivan msullivan deleted the type_ignore branch May 22, 2019 15:52
jonafato added a commit to jonafato/typeshed that referenced this pull request Apr 22, 2021
This attribute was [added in 3.8]. This change lets mypy resolve the
type correctly instead of failing with an attr-defined error.

[added in 3.8]: python/cpython#13479
hauntsaninja pushed a commit to python/typeshed that referenced this pull request Apr 22, 2021
This attribute was [added in 3.8]. This change lets mypy resolve the
type correctly instead of failing with an attr-defined error.

[added in 3.8]: python/cpython#13479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants