Skip to content

Commit b6b2ea2

Browse files
committed
Update furniture to Pydantic v2
1 parent 57720c4 commit b6b2ea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gm4_furniture/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from beet import Context, subproject, Cache, Language, Function
22
from pathlib import Path
3-
from typing import Any
3+
from typing import Any, Literal
44
from gm4.utils import CSV
55
from gm4.plugins.resource_pack import ContainerGuiOptions, GuiFont
66

@@ -109,7 +109,7 @@ def generate_furniture_data(ctx: Context, furniture_set: CSV, set_name: str):
109109
}))
110110

111111
class FurnitureStationGui(ContainerGuiOptions):
112-
container = "furniture_station"
112+
container: Literal["furniture_station"] = "furniture_station" # type: ignore
113113

114114
def process(self, config: GuiFont, counter_cache: Cache) -> tuple[str, list[dict[str, Any]]]:
115115
u1 = self.next_unicode(counter_cache)

0 commit comments

Comments
 (0)