From c587f185b3de172a140274c7bf9ada8e9d1022de Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 23 May 2024 10:33:57 +0300 Subject: [PATCH] Enforce ruff/refurb rule FURB110 FURB110 Replace ternary `if` expression with `or` operator --- setuptools/dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/dist.py b/setuptools/dist.py index b2250e3476a..5b2b4a4e958 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -363,7 +363,7 @@ def _normalize_requires(self): def _finalize_license_files(self) -> None: """Compute names of all license files which should be included.""" license_files: list[str] | None = self.metadata.license_files - patterns: list[str] = license_files if license_files else [] + patterns: list[str] = license_files or [] license_file: str | None = self.metadata.license_file if license_file and license_file not in patterns: