From 5a53db83010ab22d7a9403cccd1b96f9b0f97a3e Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Sat, 29 Jun 2024 16:21:00 +1000 Subject: [PATCH] More ruff fixes. --- setup.py | 2 +- tests/test_generators.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index c3940e29..a1e05a24 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ """Setup script.""" import time - from pathlib import Path + from setuptools import setup with Path('README.md').open() as f: diff --git a/tests/test_generators.py b/tests/test_generators.py index 5b2afabc..6a922bf6 100644 --- a/tests/test_generators.py +++ b/tests/test_generators.py @@ -98,10 +98,8 @@ def setUp(self): self.assertIn(clstype, classlist) args = inspect.getfullargspec(clstype.__init__).args - arglist = [] - for arg in args: - if dummy_arguments[arg] is not None: - arglist.append(dummy_arguments[arg]) + arglist = [dummy_arguments[arg] for arg in args if + dummy_arguments[arg] is not None] obj = clstype(*arglist) self.generators.append(obj)