Skip to content

Commit 6b0f0d8

Browse files
black
1 parent 021fc0a commit 6b0f0d8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mypy/errorcodes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ def __hash__(self) -> int:
273273
# Syntax errors are often blocking.
274274
SYNTAX: Final = ErrorCode("syntax", "Report syntax errors", "General")
275275

276-
UNTYPED_DECORATOR: Final = ErrorCode("untyped-decorator", "Error if an untyped decorator makes a typed function untyped", "General")
276+
UNTYPED_DECORATOR: Final = ErrorCode(
277+
"untyped-decorator", "Error if an untyped decorator makes a typed function untyped", "General"
278+
)
277279

278280
# This is an internal marker code for a whole-file ignore. It is not intended to
279281
# be user-visible.

mypy/messages.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,11 @@ def untyped_decorated_function(self, typ: Type, context: Context) -> None:
20082008
)
20092009

20102010
def typed_function_untyped_decorator(self, func_name: str, context: Context) -> None:
2011-
self.fail(f'Untyped decorator makes function "{func_name}" untyped', context, code=codes.UNTYPED_DECORATOR)
2011+
self.fail(
2012+
f'Untyped decorator makes function "{func_name}" untyped',
2013+
context,
2014+
code=codes.UNTYPED_DECORATOR,
2015+
)
20122016

20132017
def bad_proto_variance(
20142018
self, actual: int, tvar_name: str, expected: int, context: Context

0 commit comments

Comments
 (0)