Skip to content

Commit

Permalink
Remove unused temp_message_builder (python#11696)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored and tushar-deepsource committed Jan 20, 2022
1 parent 2dae74c commit 2071e61
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mypy/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,11 +2124,6 @@ def find_defining_module(modules: Dict[str, MypyFile], typ: CallableType) -> Opt
return None


def temp_message_builder() -> MessageBuilder:
"""Return a message builder usable for throwaway errors (which may not format properly)."""
return MessageBuilder(Errors(), {})


# For hard-coding suggested missing member alternatives.
COMMON_MISTAKES: Final[Dict[str, Sequence[str]]] = {
'add': ('append', 'extend'),
Expand Down

0 comments on commit 2071e61

Please sign in to comment.