File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -320,9 +320,7 @@ def __hash__(self) -> int:
320320)
321321
322322MISSING_RETURN_ANNOTATION = ErrorCode (
323- "missing-return-annotation" ,
324- "Function has no return type annotation" ,
325- "Optional" ,
323+ "missing-return-annotation" , "Function has no return type annotation" , "Optional"
326324)
327325
328326
Original file line number Diff line number Diff line change 5757
5858from mypy import errorcodes as codes , message_registry
5959from mypy .constant_fold import constant_fold_expr
60- from mypy .errorcodes import PROPERTY_DECORATOR , ErrorCode , MISSING_RETURN_ANNOTATION
60+ from mypy .errorcodes import MISSING_RETURN_ANNOTATION , PROPERTY_DECORATOR , ErrorCode
6161from mypy .errors import Errors , report_internal_error
6262from mypy .exprtotype import TypeTranslationError , expr_to_unanalyzed_type
6363from mypy .message_registry import ErrorMessage
@@ -943,7 +943,6 @@ def visit_func_def(self, defn: FuncDef) -> None:
943943 defn ,
944944 code = MISSING_RETURN_ANNOTATION ,
945945 )
946-
947946
948947 def function_fullname (self , fullname : str ) -> str :
949948 if self .current_overload_item is None :
You can’t perform that action at this time.
0 commit comments