Skip to content

Commit 05f77d6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 65ede8d commit 05f77d6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

mypy/errorcodes.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,14 @@ def __hash__(self) -> int:
5959
CALL_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")
6563
VAR_ANNOTATED: Final = ErrorCode(
6664
"var-annotated", "Require variable annotation if type can't be inferred", "General"
6765
)
6866
OVERRIDE: 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")
7470
RETURN_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
)
164160
NO_UNTYPED_CALL: Final = ErrorCode(

0 commit comments

Comments
 (0)