From a9c5d57deaf77f18514abae0d95730a694a54d3c Mon Sep 17 00:00:00 2001 From: Katrina Connors Date: Mon, 29 Jul 2024 16:58:56 -0700 Subject: [PATCH] moving around error code --- mypy/errorcodes.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mypy/errorcodes.py b/mypy/errorcodes.py index ff6582828613..555e240665c5 100644 --- a/mypy/errorcodes.py +++ b/mypy/errorcodes.py @@ -262,12 +262,6 @@ def __hash__(self) -> int: default_enabled=False, ) -OVERLOADED_FUNCTION_MATCHING: Final[ErrorCode] = ErrorCode( - "overloaded-function-matching", - "Warn user about signature matching for overloaded functions.", - "General", - sub_code_of=MISC, -) # Syntax errors are often blocking. SYNTAX: Final[ErrorCode] = ErrorCode("syntax", "Report syntax errors", "General") @@ -280,6 +274,14 @@ def __hash__(self) -> int: # This is a catch-all for remaining uncategorized errors. MISC: Final[ErrorCode] = ErrorCode("misc", "Miscellaneous other checks", "General") +OVERLOADED_FUNCTION_MATCHING: Final[ErrorCode] = ErrorCode( + "overloaded-function-matching", + "Warn user about signature matching for overloaded functions.", + "General", + sub_code_of=MISC, +) + + OVERLOAD_OVERLAP: Final[ErrorCode] = ErrorCode( "overload-overlap", "Warn if multiple @overload variants overlap in unsafe ways",