Skip to content

Commit c8125cf

Browse files
committed
Fix critical bug
1 parent 5769fa6 commit c8125cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "wikidata-bot-framework"
7-
version = "7.0.4"
7+
version = "7.0.5"
88
description = "A framework for making Wikidata bots."
99
readme = "README.md"
1010
dependencies = [

wikidata_bot_framework/dataclasses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class ClaimShortcutMixin:
16-
"""A mixin class for PossibleValueTypething that takes a claim as the only required init argument."""
16+
"""A mixin class for anything that takes a claim as the only required init argument."""
1717

1818
@classmethod
1919
def from_property_id_and_value(
@@ -307,7 +307,7 @@ def add_reference(self, reference: ExtraReference):
307307

308308
@staticmethod
309309
def _qualifier_sorter(item: tuple[str, list[ExtraQualifier]]):
310-
return PossibleValueType(qual.make_new_if_conflicting for qual in item[1])
310+
return any(qual.make_new_if_conflicting for qual in item[1])
311311

312312
def sort_qualifiers(self):
313313
"""Sorts qualifiers so the ones with :attr:`.ExtraQualifier.make_new_if_conflicting` are first."""

0 commit comments

Comments
 (0)