From 0dca0fad05830d14249750224ec57f03ea6a606d 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 80ae589d4f..177fd0c2a1 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -388,7 +388,7 @@ def _normalize_requires(self): def _finalize_license_files(self) -> None: """Compute names of all license files which should be included.""" license_files: Optional[List[str]] = self.metadata.license_files - patterns: List[str] = license_files if license_files else [] + patterns: List[str] = license_files or [] license_file: Optional[str] = self.metadata.license_file if license_file and license_file not in patterns: