Fix DLCQuest Errors Generating on Latest Source, without any DLCQuest YAMLs (#1704)
This commit is contained in:
parent
f0324e60f8
commit
054d14baa4
|
@ -1,7 +1,7 @@
|
||||||
import csv
|
import csv
|
||||||
import enum
|
import enum
|
||||||
import math
|
import math
|
||||||
from typing import Protocol, Union, Dict, List
|
from typing import Protocol, Union, Dict, List, Set
|
||||||
from BaseClasses import Item, ItemClassification
|
from BaseClasses import Item, ItemClassification
|
||||||
from . import Options, data
|
from . import Options, data
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
|
@ -29,7 +29,7 @@ class ItemData:
|
||||||
code_without_offset: offset
|
code_without_offset: offset
|
||||||
name: str
|
name: str
|
||||||
classification: ItemClassification
|
classification: ItemClassification
|
||||||
groups: set[Group] = field(default_factory=frozenset)
|
groups: Set[Group] = field(default_factory=frozenset)
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if not isinstance(self.groups, frozenset):
|
if not isinstance(self.groups, frozenset):
|
||||||
|
|
Loading…
Reference in New Issue