Skip to content

Commit bd32a19

Browse files
committed
mypy: Fix all str-bytes-safe
1 parent 248ee13 commit bd32a19

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

distutils/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def make_file(
533533
timestamp checks.
534534
"""
535535
if skip_msg is None:
536-
skip_msg = f"skipping {outfile} (inputs unchanged)"
536+
skip_msg = f"skipping {outfile!r} (inputs unchanged)"
537537

538538
# Allow 'infiles' to be a single string
539539
if isinstance(infiles, str):
@@ -542,7 +542,7 @@ def make_file(
542542
raise TypeError("'infiles' must be a string, or a list or tuple of strings")
543543

544544
if exec_msg is None:
545-
exec_msg = "generating {} from {}".format(outfile, ', '.join(infiles))
545+
exec_msg = f"generating {outfile!r} from {', '.join(infiles)}"
546546

547547
# If 'outfile' must be regenerated (either because it doesn't
548548
# exist, is out-of-date, or the 'force' flag is true) then

mypy.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ disable_error_code =
3030
index,
3131
func-returns-value,
3232
union-attr,
33-
str-bytes-safe,
3433
misc,
3534

3635
# stdlib's test module is not typed on typeshed

0 commit comments

Comments
 (0)