mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
Fix RUF015 (next() instead of list comprehensions[0])
https://docs.astral.sh/ruff/rules/-iterable-allocation-for-first-element/
This commit is contained in:
@@ -106,7 +106,7 @@ class TestGetManualBooleans(NewFile):
|
||||
assert set(subject.get_booleans(element, representation)) == set(bools)
|
||||
assert len(subject.get_manual_booleans(element, representation)) == 0
|
||||
|
||||
bool1 = list(bools)[0]
|
||||
bool1 = bools[0]
|
||||
|
||||
subject.mark_manual_booleans(element, [bool1])
|
||||
assert set(subject.get_manual_booleans(element, representation)) == {bool1}
|
||||
|
||||
Reference in New Issue
Block a user