From 3f1c05e21fe732c79df5fb26107166ca256b026e Mon Sep 17 00:00:00 2001 From: bleudev <95937737+bleudev@users.noreply.github.com> Date: Sun, 10 Nov 2024 19:46:14 +0300 Subject: [PATCH] Use `or` operator instead of `if self.set else` Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- ufpy/algebra/sets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufpy/algebra/sets.py b/ufpy/algebra/sets.py index 53496ef..4722e23 100644 --- a/ufpy/algebra/sets.py +++ b/ufpy/algebra/sets.py @@ -47,7 +47,7 @@ def __update__(self): # Convert to other types def __repr__(self) -> str: - return f'u{self.set if self.set else '{}'}' + return f'u{self.set or '{}'}' def __str__(self) -> str: return repr(self.set) if self.set else '{}'