🐶 fix linting issues

This commit is contained in:
Ondřej Samohel 2025-06-06 18:12:53 +02:00
parent 52678c2ca4
commit 0f539ec6ea
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -362,7 +362,7 @@ def test_representation_equality() -> None:
Planar(planar_configuration="RGBA"), Planar(planar_configuration="RGBA"),
]) ])
# lets assume ids are the same (because ids are randomly generated) # let's assume ids are the same (because ids are randomly generated)
rep_b.representation_id = rep_d.representation_id = rep_a.representation_id rep_b.representation_id = rep_d.representation_id = rep_a.representation_id
rep_c.representation_id = rep_e.representation_id = rep_a.representation_id rep_c.representation_id = rep_e.representation_id = rep_a.representation_id
rep_f.representation_id = rep_a.representation_id rep_f.representation_id = rep_a.representation_id
@ -379,6 +379,7 @@ def test_representation_equality() -> None:
# because of the trait difference # because of the trait difference
assert rep_d != rep_f assert rep_d != rep_f
def test_get_repre_by_name(): def test_get_repre_by_name():
"""Test getting representation by name.""" """Test getting representation by name."""
rep_a = Representation(name="test_a", traits=[ rep_a = Representation(name="test_a", traits=[
@ -401,4 +402,4 @@ def test_get_repre_by_name():
]) ])
representations = [rep_a, rep_b] representations = [rep_a, rep_b]
repre = next(rep for rep in representations if rep.name == "test_a") _ = next(rep for rep in representations if rep.name == "test_a")