From 5885e6698cfefddaa847fed602d3a1eb03a80c70 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 5 Dec 2022 16:08:00 +0000 Subject: [PATCH] tests/config: flake8 6.0.0 doesn't like var-name `l` But it's fine with `s`. --- tests/config/test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/config/test_config.py b/tests/config/test_config.py index 4f72d437..b6637623 100644 --- a/tests/config/test_config.py +++ b/tests/config/test_config.py @@ -41,7 +41,7 @@ def _fuzz_list(length: int) -> List[str]: _fuzz_generators = { # Type annotating this would be a nightmare. int: lambda i: random.randint(min(0, i), max(0, i)), # This doesn't cover unicode, or random bytes. Use them at your own peril - str: lambda l: "".join(random.choice(string.ascii_letters + string.digits + '\r\n') for _ in range(l)), + str: lambda s: "".join(random.choice(string.ascii_letters + string.digits + '\r\n') for _ in range(s)), bool: lambda _: bool(random.choice((True, False))), list: _fuzz_list, }