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

Fix missing NoReturn annotations and incorrect try placements #12705

Merged
merged 5 commits into from
May 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more bad merge
  • Loading branch information
JelleZijlstra committed May 1, 2022
commit bb01e18a8834840dab3c02eedbdb95154ae4b33e
4 changes: 0 additions & 4 deletions mypy/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,6 @@ def is_errors_for_file(self, file: str) -> bool:
"""Are there any errors for the given file?"""
return file in self.error_info_map

def most_recent_error_location(self) -> Tuple[int, int]:
info = self.error_info_map[self.file][-1]
return info.line, info.column

def raise_error(self, use_stdout: bool = True) -> NoReturn:
"""Raise a CompileError with the generated messages.

Expand Down