Skip to content

Commit

Permalink
More ruff fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- committed Jun 29, 2024
1 parent 0536423 commit 5a53db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Setup script."""

import time

from pathlib import Path

from setuptools import setup

with Path('README.md').open() as f:
Expand Down
6 changes: 2 additions & 4 deletions tests/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5a53db8

Please sign in to comment.