Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Enable whole-file # type: ignore comments in Python 2.7.#7789

Merged
JukkaL merged 2 commits into
python:masterpython/mypy:masterfrom
brandtbucher:whole-file-ignores-27Copy head branch name to clipboard
Oct 30, 2019
Merged

Enable whole-file # type: ignore comments in Python 2.7.#7789
JukkaL merged 2 commits into
python:masterpython/mypy:masterfrom
brandtbucher:whole-file-ignores-27Copy head branch name to clipboard

Conversation

@brandtbucher

Copy link
Copy Markdown
Member

Fixes #7785. This was a mistake in my original PR that introduced the feature (#6830). I forgot to copy one of the changes in fastparse.py to fastparse2.py. 🙄

It's an embarrassingly simple fix. I also included a regression test for good measure.

@brandtbucher

Copy link
Copy Markdown
Member Author

@gvanrossum merged the original PR.

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.

Inconsistent behavior of # type: ignore for whole file between python versions

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.