Skip to content

Commit eecfc7e

Browse files
committed
Fix invalid syntax for 3.4
Signed-off-by: Pedro Lacerda <[email protected]>
1 parent e4efd15 commit eecfc7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def parse_section(prefix: str, template: Options,
10211021
else:
10221022
v = section[key]
10231023
if not isinstance(v, ct): # type: ignore # No idea
1024-
raise ValueError(f"{v} is not an instance of {ct}")
1024+
raise ValueError("%s not an instance of %s" % (v, ct))
10251025
except (ValueError, KeyError) as err:
10261026
print("%s: %s: %s" % (prefix, key, err), file=sys.stderr)
10271027
continue

0 commit comments

Comments
 (0)