MCPcopy Create free account
hub / github.com/python/mypy / requires_int_or_single_byte

Method requires_int_or_single_byte

mypy/messages.py:1520–1527  ·  view source on GitHub ↗
(self, context: Context, format_call: bool = False)

Source from the content-addressed store, hash-verified

1518 )
1519
1520 def requires_int_or_single_byte(self, context: Context, format_call: bool = False) -> None:
1521 self.fail(
1522 '"{}c" requires an integer in range(256) or a single byte'.format(
1523 ":" if format_call else "%"
1524 ),
1525 context,
1526 code=codes.STRING_FORMATTING,
1527 )
1528
1529 def requires_int_or_char(self, context: Context, format_call: bool = False) -> None:
1530 self.fail(

Callers 1

check_exprMethod · 0.80

Calls 2

failMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected