Skip to content

Commit 30dee54

Browse files
Fix message text
1 parent 792331f commit 30dee54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/message_registry.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def format(self, *args: object, **kwargs: object) -> "ErrorMessage":
235235
'Invalid conversion type "{}", must be one of "r", "s" or "a"', codes.STRING_FORMATTING
236236
)
237237
FORMAT_STR_BYTES_USE_REPR: Final = ErrorMessage(
238-
"On Python 3 formatting \"b'abc'\" with \"{}\" produces \"b'abc'\", not 'abc'; use"
239-
" '{!r}'.format(b'abc') if this is desired behavior",
238+
'On Python 3 formatting "b\'abc\'" with "{}" produces "b\'abc\'", not "abc"; use'
239+
' "{!r}" if this is desired behavior',
240240
codes.STR_BYTES_PY3,
241241
)
242242
FORMAT_STR_BYTES_USE_REPR_OLD: Final = ErrorMessage(
@@ -355,7 +355,7 @@ def format(self, *args: object, **kwargs: object) -> "ErrorMessage":
355355
)
356356
NO_IMPLICIT_REEXPORT: Final = ErrorMessage(
357357
'Module "{}" does not explicitly export attribute "{}"; implicit reexport disabled',
358-
codes.ATTR_DEFINED
358+
codes.ATTR_DEFINED,
359359
)
360360
INCORRECT_RELATIVE_IMPORT: Final = ErrorMessage("Relative import climbs too many namespaces")
361361
INVALID_TYPE_ALIAS_TARGET: Final = ErrorMessage(

0 commit comments

Comments
 (0)