@@ -59,18 +59,14 @@ def __hash__(self) -> int:
5959CALL_OVERLOAD : Final = ErrorCode (
6060 "call-overload" , "Check that an overload variant matches arguments" , "General"
6161)
62- VALID_TYPE : Final = ErrorCode (
63- "valid-type" , "Check that type (annotation) is valid" , "General"
64- )
62+ VALID_TYPE : Final = ErrorCode ("valid-type" , "Check that type (annotation) is valid" , "General" )
6563VAR_ANNOTATED : Final = ErrorCode (
6664 "var-annotated" , "Require variable annotation if type can't be inferred" , "General"
6765)
6866OVERRIDE : Final = ErrorCode (
6967 "override" , "Check that method override is compatible with base class" , "General"
7068)
71- RETURN : Final = ErrorCode (
72- "return" , "Check that function always returns a value" , "General"
73- )
69+ RETURN : Final = ErrorCode ("return" , "Check that function always returns a value" , "General" )
7470RETURN_VALUE : Final = ErrorCode (
7571 "return-value" , "Check that return value is compatible with signature" , "General"
7672)
@@ -158,7 +154,7 @@ def __hash__(self) -> int:
158154 "await-not-async" , 'Warn about "await" outside coroutine ("async def")' , "General"
159155)
160156# These error codes aren't enabled by default.
161- NO_UNTYPED_DEF : Final = ErrorCode (
157+ NO_UNTYPED_DEF : Final = ErrorCode (
162158 "no-untyped-def" , "Check that every function has an annotation" , "General"
163159)
164160NO_UNTYPED_CALL : Final = ErrorCode (
0 commit comments