added a comment

This commit is contained in:
2023-02-02 14:59:51 +01:00
parent 721f2a864a
commit 26c338c54e

View File

@ -16,7 +16,7 @@ class DictListItem(QListWidgetItem):
_sort_key = None
@classmethod
@classmethod # need to update the class so that all instances are always consistent
def set_sort_key(cls, sk):
cls._sort_key = staticmethod(sk) # need to attach as staticmethod, otherwise self is inserted as first argument