ruff: Fix E226 Missing whitespace around arithmetic operator.

This is a preview rule, not yet enabled by default.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-02-29 17:57:55 -08:00 committed by Tim Abbott
parent d748ec8d52
commit 82a9fd927b
4 changed files with 10 additions and 8 deletions

View File

@ -124,7 +124,9 @@ class ValidatorTestCase(ZulipTestCase):
to_non_negative_int("x", "-1")
with self.assertRaisesRegex(ValueError, re.escape("5 is too large (max 4)")):
to_non_negative_int("x", "5", max_int_size=4)
with self.assertRaisesRegex(ValueError, re.escape(f"{2**32} is too large (max {2**32-1})")):
with self.assertRaisesRegex(
ValueError, re.escape(f"{2**32} is too large (max {2**32 - 1})")
):
to_non_negative_int("x", str(2**32))
def test_check_float(self) -> None: