Skip to content

Commit 8679e54

Browse files
committed
Avoid union syntax in an isinstance check
This is a partial revert of commit 44f4bc8. The UP038 ruff rule was removed and using union syntax is no longer recommended.
1 parent 47a4caf commit 8679e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archinstall/lib/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def as_table(
100100
if '!' in key:
101101
value = '*' * len(value)
102102

103-
if isinstance(value, int | float) or (isinstance(value, str) and value.isnumeric()):
103+
if isinstance(value, (int, float)) or (isinstance(value, str) and value.isnumeric()):
104104
obj_data.append(unicode_rjust(str(value), width))
105105
else:
106106
obj_data.append(unicode_ljust(str(value), width))

0 commit comments

Comments
 (0)