Skip to content

Commit

Permalink
moving around error code
Browse files Browse the repository at this point in the history
  • Loading branch information
katconnors committed Jul 29, 2024
1 parent bf1cae5 commit a9c5d57
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions mypy/errorcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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",
Expand Down

0 comments on commit a9c5d57

Please sign in to comment.