Skip to content

Commit

Permalink
Remove unused temp_message_builder (#11696)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Dec 9, 2021
1 parent a1f785e commit d5b66a8
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 d5b66a8

Please sign in to comment.