Skip to content

Commit 671e083

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1541653 commit 671e083

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

mypy/errorcodes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,7 @@ def __hash__(self) -> int:
320320
)
321321

322322
MISSING_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

mypy/semanal.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
from mypy import errorcodes as codes, message_registry
5959
from 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
6161
from mypy.errors import Errors, report_internal_error
6262
from mypy.exprtotype import TypeTranslationError, expr_to_unanalyzed_type
6363
from 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:

0 commit comments

Comments
 (0)