From c6d07276351eb5edeab873b2117a771594eed6db Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Fri, 28 Jun 2024 18:58:43 +0200 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 43762960ba4..c4bdd32e5e5 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -390,7 +390,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: