(self, context: Context, format_call: bool = False)
| 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( |
no test coverage detected