Skip to content

Commit 37cbcec

Browse files
committed
Fix ci
1 parent b47c1fa commit 37cbcec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/checkstrformat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,8 @@ def check_type(type: Type) -> bool:
10051005
assert expected_type is not None
10061006
if isinstance(format_expr, BytesExpr):
10071007
err_msg = '"%c" requires an integer in range(256) or a single byte'
1008+
else:
1009+
err_msg = '"%c" requires int or char'
10081010
return self.chk.check_subtype(
10091011
type,
10101012
expected_type,

0 commit comments

Comments
 (0)