From 3ee613617bff76dc8c894853be3864c1c498a539 Mon Sep 17 00:00:00 2001 From: cat-bro Date: Wed, 12 Jun 2024 12:24:41 +1000 Subject: [PATCH] lint --- tpv/core/entities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpv/core/entities.py b/tpv/core/entities.py index 1847ee8..e27a3f5 100644 --- a/tpv/core/entities.py +++ b/tpv/core/entities.py @@ -151,8 +151,8 @@ def score(self, other: TagSetManager) -> bool: """ def a_prefers_b(a_tags, b_tags): return any( - tag for tag in a_tags.filter(tag_type = TagType.PREFER) - if list(b_tags.filter(tag_type = [TagType.ACCEPT, TagType.PREFER, TagType.REQUIRE], tag_value = tag.value)) + tag for tag in a_tags.filter(tag_type=TagType.PREFER) + if list(b_tags.filter(tag_type=[TagType.ACCEPT, TagType.PREFER, TagType.REQUIRE], tag_value=tag.value)) ) score = 1 if a_prefers_b(self.tags, other.tags) or a_prefers_b(other.tags, self.tags) else 0 return score