mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-01 15:49:09 +00:00
fix: correct type hints for get_tag_categories
This commit is contained in:
@@ -146,9 +146,9 @@ class FieldContainers(QWidget):
|
||||
for c in self.containers:
|
||||
c.setHidden(True)
|
||||
|
||||
def get_tag_categories(self, tags: set[Tag]) -> dict[Tag, set[Tag | None]]:
|
||||
def get_tag_categories(self, tags: set[Tag]) -> dict[Tag | None, set[Tag]]:
|
||||
"""Get a dictionary of category tags mapped to their respective tags."""
|
||||
cats: dict[Tag, set[Tag | None]] = {}
|
||||
cats: dict[Tag | None, set[Tag]] = {}
|
||||
cats[None] = set()
|
||||
|
||||
# Initialize all categories from parents
|
||||
|
||||
Reference in New Issue
Block a user