From 2071e61e00e019b37cad4353060fb29d5e6ce511 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 9 Dec 2021 23:41:33 +0300 Subject: [PATCH] Remove unused `temp_message_builder` (#11696) --- mypy/messages.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mypy/messages.py b/mypy/messages.py index 72f53e1cf84e..da284cc88ba4 100644 --- a/mypy/messages.py +++ b/mypy/messages.py @@ -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'),