You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Suggestion]: Change QListWidgetItem data from dict to a class/dataclass #617
Code refactoring 🧹improving the structure and organization of the code; restructuring, cleaning upfeature/improvement 🆕Use this label to mark new feature or improvement requests
Because of increasing complexity of the data being stored, we could benefit from converting QListWidgetItem data to be a class rather than a dict.
Suggestion/proposed solution?
Convert QListWidgetItem data to be a class rather than a dict.
Alternatives considered
No response
Additional context
This may require you to also create a wrapper for QListWidgetItem and replace all instances of QListWidgetItem in the code to use this wrapper.
The reason for this (for me anyway) was that when .setData() was called with a dict it would trigger a signal. (If i remember correctly it would be QListWidget's itemChanged signal)
But when trying to call setData() with a class it would not trigger this signal. You might want to handle this in your wrapper, or come up with an alternative solution.
Code refactoring 🧹improving the structure and organization of the code; restructuring, cleaning upfeature/improvement 🆕Use this label to mark new feature or improvement requests
Activity
build(deps-dev): bump pytest-mock from 3.16.0 to 3.17.0 (RimSort#2567)